From 038c9ecda55cf3bb9a24351eeb4e8e58931eea3b Mon Sep 17 00:00:00 2001 From: qijq <624811160@qq.com> Date: Fri, 15 Aug 2025 08:22:42 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BF=AE=E5=A4=8D=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E8=B7=B3=E8=BD=ACBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 ++-- pages.json | 1 + pagesub/index/store.vue | 37 ++++++++++++++++++++++++++++++++++++- store/index.js | 8 ++++---- 4 files changed, 43 insertions(+), 7 deletions(-) diff --git a/App.vue b/App.vue index 2159264..2dbdc4a 100644 --- a/App.vue +++ b/App.vue @@ -37,8 +37,8 @@ export default { // 处理扫码进入小程序的场景值 if (options.ulr = 'pagesub/index/store') { - const scene = decodeURIComponent(options.query.scene); - + const scene = decodeURIComponent(options.query.scene || `store_id=${options.query.store_id}`); + wx.navigateTo({ url: `/${options.path}?${scene}` }); diff --git a/pages.json b/pages.json index 7901e4f..eb3e319 100644 --- a/pages.json +++ b/pages.json @@ -865,6 +865,7 @@ "path": "index/store", "style": { "navigationBarTitleText": "", + "navigationStyle": "custom", "onReachBottomDistance": 60, "enablePullDownRefresh": true } diff --git a/pagesub/index/store.vue b/pagesub/index/store.vue index 6475dda..9a83d41 100644 --- a/pagesub/index/store.vue +++ b/pagesub/index/store.vue @@ -1,5 +1,30 @@ @@ -659,6 +684,7 @@ export default { index: 0, shareImg: "", shareTitle: "", + navTitle:"", refresh: true, ispage: true, flag: true, @@ -706,6 +732,7 @@ export default { onBackPress({ from }) { console.log("=======", from); + debugger; if (from == "backbutton") { uni.switchTab({ url: "/pages/index/index" }); } @@ -734,6 +761,8 @@ export default { }); this.notice.removeNotification("RefreshProduct", that); + + }, /** @@ -813,6 +842,11 @@ export default { goShopDetail(url) { this.$.gopage(url) }, + handerSkip(){ + uni.navigateBack(-1) + uni.switchTab({ url: "/pages/index/index" }); + console.log("跳转成功") + }, async addCart(item) { var that = this; @@ -908,6 +942,7 @@ export default { that.setData({ shareImg: store.WapLogoPath, shareTitle: store.store_name, + navTitle:store.store_name, store_info: store, loadStoreInfoComplete: true, }); diff --git a/store/index.js b/store/index.js index 1d8645e..18a9fef 100644 --- a/store/index.js +++ b/store/index.js @@ -972,10 +972,10 @@ const store = new Vuex.Store({ provider.callback && provider.callback(data, status, msg, code); } else { - uni.showModal({ - title: '友情提示', - content: msg - }); + uni.showModal({ + title: '友情提示', + content: msg, + }); // $.alert(msg); // $.alert('点击太快了'); }