From b9b0707544ba83ed700b70132fba648ac4dd43e6 Mon Sep 17 00:00:00 2001 From: lanzhihui <503792708@qq.com> Date: Sun, 29 Sep 2024 16:57:45 +0800 Subject: [PATCH] update --- src/pages/tabBar/user.wpy | 32 +++++++++++++++++--------------- src/pages/users/upgradeVIP.wpy | 20 ++++++++++---------- src/pages/users/upgradeVIP2.wpy | 20 ++++++++++---------- 3 files changed, 37 insertions(+), 35 deletions(-) diff --git a/src/pages/tabBar/user.wpy b/src/pages/tabBar/user.wpy index cd10478..0f22487 100644 --- a/src/pages/tabBar/user.wpy +++ b/src/pages/tabBar/user.wpy @@ -182,7 +182,7 @@ - + @@ -389,16 +389,16 @@ vm.is_base_info = getApp().$wepy.$options.globalData.is_base_info // vm.getorderDetail() console.log('33333JJJJ') - if (!vm.token) { - vm.loginShow = true - wepy.$instance.pageLogin().then((data) => { - vm.token = data.token - vm.loginShow = false - vm.page = 1 - vm.onShow() - }) - return - } + // if (!vm.token) { + // vm.loginShow = true + // wepy.$instance.pageLogin().then((data) => { + // vm.token = data.token + // vm.loginShow = false + // vm.page = 1 + // vm.onShow() + // }) + // return + // } async function timi(res) { // await vm.getNewCount() @@ -717,7 +717,9 @@ let titles = ['好友', '关注', '粉丝', '访客'], {is_base_info} = app.globalData, vm = this, {id} = wx.getStorageSync('userInfo') // 校验是否完成注册资料 + console.log(vm.$signInVerify(), 'vm.$signInVerify()===') if (!vm.$signInVerify()) { + console.log('000') vm.loginShow = true return } @@ -752,10 +754,10 @@ loginCut(e) { this.loginShow = e.loginShow }, - loginDialogCut(e) { - // this.$parent.getEvent(this.config.navigationBarTitleText, `点击暂不登录`) - this.loginShow = e.loginShow - }, + // loginDialogCut(e) { + // // this.$parent.getEvent(this.config.navigationBarTitleText, `点击暂不登录`) + // this.loginShow = e.loginShow + // }, hideCut(e) { wx.showTabBar({ animation: true diff --git a/src/pages/users/upgradeVIP.wpy b/src/pages/users/upgradeVIP.wpy index 333fcce..8b3d847 100644 --- a/src/pages/users/upgradeVIP.wpy +++ b/src/pages/users/upgradeVIP.wpy @@ -17,7 +17,7 @@ - {{user.deadline?user.deadline+'到期':'未激活'}} + {{user.deadline_str?user.deadline_str+'到期':'未激活'}} @@ -240,15 +240,15 @@ vm.$get({url: `${service.host}/rank/list`}).then(({code, data}) => { vm.user = data.rank_info let {type, is_subscribe} = wx.getStorageSync('userInfo') - let userInfo = { - nickName: vm.user.nickname, - avatarUrl: vm.user.avatar, - type, - id: vm.user.id, - is_subscribe, - rank_id: vm.user.rank_id - } - wx.setStorageSync('userInfo', userInfo) + // let userInfo = { + // nickName: vm.user.nickname, + // avatarUrl: vm.user.avatar, + // type, + // id: vm.user.id, + // is_subscribe, + // rank_id: vm.user.rank_id + // } + // wx.setStorageSync('userInfo', userInfo) vm.specialVIP = data.ranks console.log(data, 'aaaaaaaa') vm.rankList = [] diff --git a/src/pages/users/upgradeVIP2.wpy b/src/pages/users/upgradeVIP2.wpy index ffcb685..e9f7b36 100644 --- a/src/pages/users/upgradeVIP2.wpy +++ b/src/pages/users/upgradeVIP2.wpy @@ -17,7 +17,7 @@ - {{user.deadline?user.deadline+'到期':'未开通'}} + {{user.deadline_str?user.deadline_str+'到期':'未开通'}} @@ -258,15 +258,15 @@ // vm.payData.remain_amount = data.remain_amount // vm.payData.coin = data.coin let {type, is_subscribe} = wx.getStorageSync('userInfo') - let userInfo = { - nickName: data.nickname, - avatarUrl: data.avatar, - type, - id: data.id, - is_subscribe, - rank_id: data.rank_id - } - wx.setStorageSync('userInfo', userInfo) + // let userInfo = { + // nickName: data.nickname, + // avatarUrl: data.avatar, + // type, + // id: data.id, + // is_subscribe, + // rank_id: data.rank_id + // } + // wx.setStorageSync('userInfo', userInfo) console.log(data) }) },