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('点击太快了'); }