From 685cd681770e9168948c4953bc3583f5be53d42d Mon Sep 17 00:00:00 2001 From: xcw Date: Wed, 22 Feb 2023 10:59:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=8E=A8=E8=8D=90=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/login.vue | 1 + pages/tabbar/pagehome/pagehome.vue | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index 830c211..5f06120 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -61,6 +61,7 @@ onLoad() { // 进入登录 this.bindGetUserInfo('enter'); + console.log(uni.getStorageSync('invite_code')) }, methods: { // 查看免责声明 diff --git a/pages/tabbar/pagehome/pagehome.vue b/pages/tabbar/pagehome/pagehome.vue index 92f2731..d66870e 100644 --- a/pages/tabbar/pagehome/pagehome.vue +++ b/pages/tabbar/pagehome/pagehome.vue @@ -98,7 +98,6 @@ this.$store.commit('setAutoplay',true); // 判断视频是否隐藏 this.isVideoEv(); - console.log(op,'aaaaa') }, onHide() { // 关闭banner图自动轮播 @@ -113,7 +112,6 @@   return shareObj; }, onLoad(op) { - // 解码一:unescape("http%3A//www.baidu.com%3Fname%3Dzhang@xiao@jie%26order%3D1"); // 解码二:decodeURIComponent("http%3A%2F%2Fwww.baidu.com%3Fname%3Dzhang%40xiao%40jie%26order%3D1") if(op.q!=undefined){ @@ -123,6 +121,10 @@ this.getCourseCate(); // 调用获取首页banner图 this.getBanner(); + console.log(op) + if(op) { + uni.setStorageSync('invite_code',op.invite_code); + } }, methods: { // 判断视频是否隐藏