修复服务分类购物车数量为0的问题

This commit is contained in:
TOP糯米 2023-04-08 00:55:50 +08:00
parent 0fbde98412
commit 58f624cc81
1 changed files with 3 additions and 4 deletions

View File

@ -66,10 +66,6 @@ export default {
},
async onLoad() {
let pageConfig = getApp().globalData.pageConfig;
if (this.isLogin) {
this.$store.dispatch("cart/updateCount");
}
let x = pageConfig.windowWidth - this.$utils.rpx2px(94);
let y = pageConfig.windowHeight - this.$utils.rpx2px(94);
// H5tabBar
@ -92,6 +88,9 @@ export default {
this.loadCate();
},
onShow() {
if (this.isLogin) {
this.$store.dispatch("cart/updateCount");
}
this.newId = this.currentId = this.currentCateId;
},
onReady() {},