Commit c304ac09 by 李嘉林

扫码进入

parent 3e6e565d
......@@ -565,17 +565,18 @@ export default {
console.log('eloadEnterShopRule', this.h5Params)
// 进店规则--首次进店调用
if (this.h5Params && this.h5Params.offlineShopCode) {
// this.setPageLoading();
// return;
this.refreshInit();
wx.removeStorageSync("firstView");
return;
};
console.log('home-methods-reloadEnterShopRule')
if (wx.getStorageSync("firstView")) {
if (wx.getStorageSync("firstView") == 1) {
console.log('reloadEnterShopRule-------1')
wx.removeStorageSync("firstView");
this.enterStoreRule();
} else {
console.log('reloadEnterShopRule-------2')
// this.setPageLoading();
this.setPageLoading();
}
},
async enterStoreRule() {
......@@ -1128,14 +1129,16 @@ export default {
}
},
async refreshInit() {
log.info('onPullDownRefresh',this.$store.state.extConfig)
app.getShopInfo(this.$store.state.extConfig);
try {
await this.getThemeList();
} catch (error) {
}
wx.stopPullDownRefresh();
console.log("refreshInit");
this.pageData = [];
log.info('onPullDownRefresh',this.$store.state.extConfig)
app.getShopInfo(this.$store.state.extConfig);
try {
await this.getThemeList();
} catch (error) {
}
wx.stopPullDownRefresh();
}
},
async onShareAppMessage(res){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment