From 0344e669b49273f3a3546c4c7fb5643698100140 Mon Sep 17 00:00:00 2001 From: qijq <624811160@qq.com> Date: Mon, 18 Aug 2025 17:55:55 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BF=AE=E5=A4=8D=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- pagesub/index/store.vue | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) 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;