lilei 4 yıl önce
ebeveyn
işleme
bf913e04e8
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 0
      pages/cart/cart.vue
  2. 1 2
      pages/index/index.vue

+ 1 - 0
pages/cart/cart.vue

@@ -183,6 +183,7 @@
 			uni.$on('getCarListSuccess',item => {
 			uni.$on('getCarListSuccess',item => {
 				this.cartList = JSON.parse(JSON.stringify(this.$store.state.vuex_cartList))
 				this.cartList = JSON.parse(JSON.stringify(this.$store.state.vuex_cartList))
 				this.loading = false
 				this.loading = false
+				console.log(this.isEdit,'this.isEdit')
 				// 默认全选
 				// 默认全选
 				if(!this.isEdit){
 				if(!this.isEdit){
 					this.checkAllChange()
 					this.checkAllChange()

+ 1 - 2
pages/index/index.vue

@@ -87,7 +87,6 @@
 			this.getCartList()
 			this.getCartList()
 			// 刷新购物车列表
 			// 刷新购物车列表
 			uni.$on("getCartList",item =>{
 			uni.$on("getCartList",item =>{
-				console.log('getCartList11112221')
 				this.getCartList()
 				this.getCartList()
 			})
 			})
 			// 加入购物车
 			// 加入购物车
@@ -193,7 +192,7 @@
 			// 查询购物车
 			// 查询购物车
 			getCartList(){
 			getCartList(){
 				getCartList({}).then(res => {
 				getCartList({}).then(res => {
-					console.log(res)
+					console.log(res,'getCartList----')
 					if(res.status == 200){
 					if(res.status == 200){
 						this.$u.vuex('vuex_cartList', res.data)
 						this.$u.vuex('vuex_cartList', res.data)
 						uni.$emit('getCarListSuccess')
 						uni.$emit('getCarListSuccess')