diff --git a/App.vue b/App.vue index dd5eaba..d70beb3 100644 --- a/App.vue +++ b/App.vue @@ -47,7 +47,7 @@ export default { else if (options.query.store_id || options.store_id) { sceneParams = `store_id=${options.query.store_id}`; } - + // 只有拿到有效参数时才跳转 if (sceneParams) { wx.navigateTo({ diff --git a/pagesub/index/store.vue b/pagesub/index/store.vue index a5d7fc6..e1598c8 100644 --- a/pagesub/index/store.vue +++ b/pagesub/index/store.vue @@ -905,17 +905,23 @@ export default { }, initStorePageData: function (options) { var that = this; - + that.$.showLoading(); //that.commonTPL 全局有效,状态保留了。 清除上次数据 that.$set(that.commonTPL, "istop", false); that.$set(that.commonTPL, "pdlist", []); + if(options.scene){ + const decodedParam = decodeURIComponent(options.scene); + const [key, value] = decodedParam.split('='); + options.store_id = value; + } + this.setData({ options: options, distance: options.d || 0, - store_id: options.store_id || 1001, + store_id: options.store_id ||1001 , }); var w = that.$.getSystemInfoSync().windowWidth;