Browse Source

样式修改

lilei 4 years ago
parent
commit
8759495886
2 changed files with 15 additions and 6 deletions
  1. 9 0
      components/uni-cart-fix/uni-cart-fix.vue
  2. 6 6
      components/uni-coods/uni-coods.vue

+ 9 - 0
components/uni-cart-fix/uni-cart-fix.vue

@@ -9,6 +9,15 @@
 			computed: {
 				count() {
 					return this.$store.state.vuex_cartNums
+				},
+				hide_good_box(){
+					return this.$store.state.vuex_goodBox
+				},
+				bus_x(){
+					return this.$store.state.vuex_bus_x
+				},
+				bus_y(){
+					return this.$store.state.vuex_bus_y
 				}
 			},
 			methods: {

+ 6 - 6
components/uni-coods/uni-coods.vue

@@ -36,14 +36,17 @@
 		data() {
 			return {
 				loadingImg: '/static/loading.gif',
-				errorImg: '/static/imgError.png'
+				errorImg: '/static/imgError.png',
+				timer: null,
+				finger: {x:0,y:0},
+				linePos: null
 			}
 		},
 		methods: {
 			// 加入购物车
-			addCart() {
+			addCart(e) {
 				// 请求接口
-				this.$store.state.vuex_cartNums = Number(this.$store.state.vuex_cartNums) + 1
+				this.$store.state.vuex_cartNums = Number(this.$store.state.vuex_cartNums) + 1 
 			},
 			// 商品详情
 			toDetail(item){
@@ -65,9 +68,6 @@
 		background: #FFFFFF;
 		width: 48%;
 		margin-bottom: 5upx;
-		&:active{
-			opacity: 0.5;
-		}
 		.goods-imgs{
 			position: relative;
 			border-radius: 28upx 28upx 0 0;