diff --git a/pages/restaurant/home/shop_home/shop_home.vue b/pages/restaurant/home/shop_home/shop_home.vue index 0d7b4d1..4e7396c 100644 --- a/pages/restaurant/home/shop_home/shop_home.vue +++ b/pages/restaurant/home/shop_home/shop_home.vue @@ -176,7 +176,12 @@ }, onLoad(param) { - self = this; + self = this; + + // #ifdef H5 + this.handleWechatShare(); + // #endif + console.log(param, 'onLoad参数ss'); const isWechat = getApp()['globalData']['parameters']?.isWechat; console.log(isWechat, getApp()['globalData']['parameters']?.brand_id, '是否需要分享'); @@ -309,10 +314,7 @@ // 设置微信分享标识 // wx.miniProgram.postMessage({ data: this['BrandInfor']['brand_id']}); }) - }); - - this.handleWechatShare(); - }, + }); }, // 打开规格选择弹框 SkuPopup(data) { @@ -516,8 +518,8 @@ // 挂载微信 handleWechatShare() { - console.log(this.getUrl(), 'ggg') - wxconfig({ url: 'https://tpoint.agrimedia.cn/privilege/pages/restaurant/home/shop_home/shop_home' }).then(res => { + console.log(this.getUrl(), '挂载微信挂载微信挂载微信挂载微信') + wxconfig({ url: this.getUrl() }).then(res => { let wxConfig = { debug: res.data.debug, appId: res.data.appId, diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 416db56..ad0b9a0 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@