From fdbfb5fdfcdb0057753cd441a19681d2af159d46 Mon Sep 17 00:00:00 2001 From: whitechiina <1293616053@qq.com> Date: Fri, 19 Sep 2025 16:30:32 +0800 Subject: [PATCH] updata --- App.vue | 1 - pages/restaurant/home/shop_home/shop_home.vue | 32 +++++++++---------- unpackage/dist/build/web/index.html | 2 +- .../build/web/static/js/index.2b11801b.js | 1 + .../build/web/static/js/index.d741a54c.js | 1 - ...urant-home-shop_home-shop_home.0880dc2a.js | 1 + ...urant-home-shop_home-shop_home.5903fdc8.js | 1 - 7 files changed, 18 insertions(+), 21 deletions(-) create mode 100644 unpackage/dist/build/web/static/js/index.2b11801b.js delete mode 100644 unpackage/dist/build/web/static/js/index.d741a54c.js create mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-home-shop_home-shop_home.0880dc2a.js delete mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-home-shop_home-shop_home.5903fdc8.js 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 @@