From 1f3fbde86edef1c3a6412ec7d888ead58a2c34b6 Mon Sep 17 00:00:00 2001 From: gaoxs Date: Tue, 28 Apr 2020 17:05:52 +0800 Subject: [PATCH] =?UTF-8?q?[bug]=E4=BF=AE=E6=94=B9=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E5=B0=8F=E6=A0=87=E4=B8=A2=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5;=E4=BF=AE=E6=94=B9=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6=E6=97=A0=E6=B3=95=E5=85=A8=E9=80=89=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/OrderSubmission/index.vue | 2 +- pages/shop/ShoppingCart/index.vue | 7 +++-- pages/user/User/index.vue | 19 +++++++------- store/index.js | 37 +++++++++++++++++---------- 4 files changed, 39 insertions(+), 26 deletions(-) diff --git a/pages/order/OrderSubmission/index.vue b/pages/order/OrderSubmission/index.vue index 05052d6..b151b14 100644 --- a/pages/order/OrderSubmission/index.vue +++ b/pages/order/OrderSubmission/index.vue @@ -327,7 +327,7 @@ }, mounted: function() { let that = this; - this.$store.dispatch('USERINFO', true) + this.$store.dispatch('getUser', true) that.getCartInfo(); if (that.$yroute.query.pinkid !== undefined) that.pinkId = that.$yroute.query.pinkid; diff --git a/pages/shop/ShoppingCart/index.vue b/pages/shop/ShoppingCart/index.vue index 94ec59f..970cd91 100644 --- a/pages/shop/ShoppingCart/index.vue +++ b/pages/shop/ShoppingCart/index.vue @@ -118,7 +118,7 @@ @@ -441,8 +441,10 @@ export default { }, //全选 allChecked: function(e) { + console.log(e) let that = this; - let selectAllStatus = e.mp.detail.value[0] ? true : false; + let selectAllStatus = e.mp.detail.value[0]=='allSelect' ? true : false; + console.log(selectAllStatus) // let selectAllStatus = that.isAllSelect; let checkedIds = []; // for (let i = 0; i < array.length; i++) { @@ -460,6 +462,7 @@ export default { }; that.cartList = []; that.cartList = cartList; + console.log(this.cartList) this.$set(this, 'cartList', this.cartList); this.$set(this, 'isAllSelect', selectAllStatus); this.checkedIds = checkedIds; diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue index ffed25d..0fb71d0 100644 --- a/pages/user/User/index.vue +++ b/pages/user/User/index.vue @@ -146,15 +146,12 @@ --> - By@意象 + By@Yshop Copyright © 2020 - - 漯河市大有前途网络科技有限公司 -