|
|
|
@ -160,11 +160,9 @@ |
|
|
|
|
}, |
|
|
|
|
onShow(){ |
|
|
|
|
this.$nextTick(()=>{ |
|
|
|
|
if(this.$refs.goodsList&&app.globalData.userInfo){ |
|
|
|
|
if(this.isLoading==false&&app.globalData.userInfo){ |
|
|
|
|
this.$refs.goodsList.refreshCartNum() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -194,7 +192,7 @@ |
|
|
|
|
length:_this.data_content.children.length |
|
|
|
|
}; |
|
|
|
|
// console.log(_this.selectObject,"_this.selectObject") |
|
|
|
|
await _this.get_goods_list(_this.data_content.children[_this.nav_active_item_two_index].key);//获取右侧商品 |
|
|
|
|
await _this.get_goods_list(_this.data_content.children[_this.nav_active_item_two_index].key,true);//获取右侧商品 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -247,7 +245,7 @@ |
|
|
|
|
this.get_goods_list(this.data_content.children[this.nav_active_item_two_index].key) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
get_goods_list(key){ |
|
|
|
|
get_goods_list(key,isRefreshCart=false){ |
|
|
|
|
|
|
|
|
|
let price =0; |
|
|
|
|
if(this.sortIndex ==3){ |
|
|
|
@ -276,6 +274,11 @@ |
|
|
|
|
getListGoodsDetail(params).then(res=>{ |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
this.isLoading = false; |
|
|
|
|
if(isRefreshCart&&app.globalData.userInfo){ |
|
|
|
|
this.$nextTick(()=>{ |
|
|
|
|
this.$refs.goodsList.refreshCartNum(); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
},200) |
|
|
|
|
// uni.hideLoading(); |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|