From 2a5e686f2e4030afc9347253a2fd8f1148b78784 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Wed, 8 Jan 2025 09:13:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/components/contentlist.vue | 9 +++++++-- pages/me/index.vue | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pages/index/components/contentlist.vue b/pages/index/components/contentlist.vue index 4f4a336..588a505 100644 --- a/pages/index/components/contentlist.vue +++ b/pages/index/components/contentlist.vue @@ -44,7 +44,8 @@ }, //查看视频 seVideo(item) { - console.log(item,'dubyg2') + console.log(uni.getStorageSync('token')) + if(uni.getStorageSync('token')){ const time = 100; // #ifdef H5 if (returnIsSafari()) { @@ -74,7 +75,11 @@ }) // #endif - + }else{ + uni.navigateTo({ + url:'/pages/login/login' + }) + } }, } diff --git a/pages/me/index.vue b/pages/me/index.vue index c524ca4..fde5ea0 100644 --- a/pages/me/index.vue +++ b/pages/me/index.vue @@ -350,7 +350,7 @@ } }, onLoad() { - this.getBannerList() + // this.getBannerList() this.zxczxczxczsw(1212, 5) this.zzzzzzzzzzzzzzzzs(1212.5) @@ -359,7 +359,6 @@ this.wwrqx(1212, 5) }, onShow() { - this.ymfgetDataList() const systemInfo = uni.getSystemInfoSync(); const isIOS = /iOS/.test(systemInfo.platform); if (!isIOS) { @@ -371,6 +370,7 @@ this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否' this.token = uni.getStorageSync('token') if (this.token) { + this.ymfgetDataList() this.getMyMoney() this.getPoints() this.$u.api.userinfo().then(res => {