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 => {