|
@@ -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')
|