支付宝优化

This commit is contained in:
GaoHao
2024-10-29 18:27:43 +08:00
parent a868117cda
commit b2abe69e37
10 changed files with 89 additions and 42 deletions

View File

@@ -134,11 +134,17 @@
timer: null //定时器
};
},
onLoad(e) {
onLoad(options) {
// 隐藏首页按钮
if (e.q) {
this.shopId = this.getQueryString(decodeURIComponent(e.q), 'shopId')
// #ifdef MP-WEIXIN
if (options.q) {
this.shopId = this.getQueryString(decodeURIComponent(options.q), 'shopId')
}
// #endif
// #ifdef MP-ALIPAY
if (getApp().globalData.shopId) { this.shopId = getApp().globalData.shopId }
// #endif
},
computed: {},