From cae3d6bc75595efb639cb7f037a0ea1ad208c133 Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Fri, 5 Jul 2024 17:21:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- my/vip/index.vue | 12 ++++++++---- pages/my/index.vue | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/my/vip/index.vue b/my/vip/index.vue index 5e9d031..454db7a 100644 --- a/my/vip/index.vue +++ b/my/vip/index.vue @@ -46,7 +46,9 @@ - + + + 到期时间 {{timeVipEnd}} @@ -123,7 +125,8 @@ showpay: false, vipData:[], vipShow:false, - rateStr:'' + rateStr:'', + vipNameType:'' } }, onLoad() { @@ -179,8 +182,9 @@ this.$Request.get("/app/UserVip/selectUserVip").then(res => { if (res.code == 0) { var data= res.data.endTime||{}; - this.$queue.setData('isVIP',res.data.isVip) - this.vipData=res.data.isVip + this.$queue.setData('isVIP',res.data.isVip); + this.vipNameType=res.data.vipNameType + this.vipData=res.data.isVip; console.log("isVIP------------------->",this.vipData) if(this.vipData=='1'){ this.vipShow=true; diff --git a/pages/my/index.vue b/pages/my/index.vue index bdca3a1..ae34ee0 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -10,8 +10,10 @@ {{userName}} - - 月会员 + + + + {{vipNameType=='0'?'月':vipNameType=='1'?'季':'年'}}会员 @@ -149,7 +151,8 @@ {urlImg:'../../static/my-gong-9.png',text:'我的团队',link:'/pages/my/myteam'}, ], token:'', - vipData:[] + vipData:[], + vipNameType:'' } }, onLoad(e) { @@ -455,7 +458,8 @@ getIsVip() { this.$Request.get("/app/UserVip/selectUserVip").then(res => { if (res.code == 0) { - this.isVip = res.data.isVip + this.vipNameType=res.data.vipNameType; + this.isVip = res.data.isVip; this.$queue.setData('isVIP',this.isVip) } });