From f80128032360fe629b6d0f27f983f437a92a9dc9 Mon Sep 17 00:00:00 2001 From: SelfRidicule Date: Tue, 14 May 2024 09:34:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=8F=E8=BF=B0:=E5=BE=AE=E4=BF=A1=E6=89=AB?= =?UTF-8?q?=E4=B8=80=E6=89=AB=E8=8E=B7=E5=8F=96=E5=9B=AD=E5=8C=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miniprogram/pages/index/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miniprogram/pages/index/index.js b/miniprogram/pages/index/index.js index 6135909..2eac384 100644 --- a/miniprogram/pages/index/index.js +++ b/miniprogram/pages/index/index.js @@ -169,6 +169,10 @@ Page({ if (options.q) { let url = decodeURIComponent(options.q) let urlParam = getUrlParamsObj(url); + // 自动绑定园区 + wx.setStorageSync('parkId', urlParam.parkId) + wx.setStorageSync('parkName', urlParam.parkName) + // 是否携带其他参数 if (!urlParam.noParam) { _this.setData({ qrcodeParam: urlParam