diff --git a/App.vue b/App.vue index a51e726..0c941ae 100644 --- a/App.vue +++ b/App.vue @@ -147,7 +147,6 @@ special: false, distance: this['globalData']['parameters'].distance }) - console.log(333333333333333333333333333333) store.commit('SETTOKEN', this['globalData']['parameters']['token']); }; } diff --git a/pages/restaurant/home/shop_home/shop_home.vue b/pages/restaurant/home/shop_home/shop_home.vue index e239c94..8b60207 100644 --- a/pages/restaurant/home/shop_home/shop_home.vue +++ b/pages/restaurant/home/shop_home/shop_home.vue @@ -515,24 +515,22 @@ // 挂载微信 async handleWechatShare() { - alert(this.getUrl(), '123') - const res = await wxconfig({ - url: this.getUrl() + wxconfig({ url: this.getUrl() }).then(res => { + let wxConfig = { + debug: res.data.debug, + appId: res.data.appId, + timestamp: res.data.timestamp || res.data.timestamp, + nonceStr: res.data.nonceStr, + signature: res.data.signature, + jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData', 'onMenuShareAppMessage', 'onMenuShareTimeline'] + } + + wx.config(wxConfig) + + Myspread().then(ress => { + this.initWechatShareData(ress.data.uid) + }) }) - let wxConfig = { - debug: res.data.debug, - appId: res.data.appId, // 必填,公众号的唯一标识 - timestamp: res.data.timestamp || res.data.timestamp, // 必填,生成签名的时间戳 - nonceStr: res.data.nonceStr, // 必填,生成签名的随机串 - signature: res.data.signature, // 必填,签名 - jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData'] // 必填,需要使用的JS接口列表 - } - - wx.config(wxConfig) - - Myspread().then(res => { - this.initWechatShareData(res.data.uid) - }) }, initWechatShareData(uid) { diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 6876780..fefdfc9 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@