From bcbca1775bff6660384bf6dcf78d22a08a2caced Mon Sep 17 00:00:00 2001 From: santaner Date: Fri, 22 Dec 2023 15:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=80=E8=AF=B7=E5=A5=BD=E5=8F=8B-2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 5 ++++- pages/users/login/index.vue | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 3011f4d..4a4b954 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -475,7 +475,8 @@ export default { newData: {}, activeRouter: '', countNum: 0, - overflow: false + overflow: false, + tid:'' }; }, /** @@ -528,6 +529,8 @@ export default { }); }) that.pageLoad(options); + that.tid = options.spid; + uni.setStorageSync('tid',this.tid); }, created(options) { let routes = getCurrentPages(); // 获取当前打开过的页面路由数组 diff --git a/pages/users/login/index.vue b/pages/users/login/index.vue index ce28e1a..2bd1fcf 100644 --- a/pages/users/login/index.vue +++ b/pages/users/login/index.vue @@ -297,7 +297,8 @@ keyLock: true, auth_token: '', codeVal: '', - copyright: {} + copyright: {}, + tid:'' }; }, computed: configMap(['login_logo'], mapGetters(['viewColor'])), @@ -713,6 +714,7 @@ // #endif // #ifdef H5 user_type: 'h5', + tid:uni.getStorageSync('tid'), // #endif }) .then(res => {