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