修复服务分类购物车数量为0的问题
This commit is contained in:
parent
0fbde98412
commit
58f624cc81
|
@ -66,10 +66,6 @@ export default {
|
||||||
},
|
},
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
let pageConfig = getApp().globalData.pageConfig;
|
let pageConfig = getApp().globalData.pageConfig;
|
||||||
if (this.isLogin) {
|
|
||||||
this.$store.dispatch("cart/updateCount");
|
|
||||||
}
|
|
||||||
|
|
||||||
let x = pageConfig.windowWidth - this.$utils.rpx2px(94);
|
let x = pageConfig.windowWidth - this.$utils.rpx2px(94);
|
||||||
let y = pageConfig.windowHeight - this.$utils.rpx2px(94);
|
let y = pageConfig.windowHeight - this.$utils.rpx2px(94);
|
||||||
// H5平台减去tabBar高度
|
// H5平台减去tabBar高度
|
||||||
|
@ -92,6 +88,9 @@ export default {
|
||||||
this.loadCate();
|
this.loadCate();
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
if (this.isLogin) {
|
||||||
|
this.$store.dispatch("cart/updateCount");
|
||||||
|
}
|
||||||
this.newId = this.currentId = this.currentCateId;
|
this.newId = this.currentId = this.currentCateId;
|
||||||
},
|
},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
|
|
Loading…
Reference in New Issue