From a649839feb4b362f097dd3a1163ccf54cfad895c Mon Sep 17 00:00:00 2001 From: Vinjor Date: Thu, 29 May 2025 16:02:11 +0800 Subject: [PATCH] 1 --- pages/mine/mine-index.vue | 51 ++++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 11 deletions(-) diff --git a/pages/mine/mine-index.vue b/pages/mine/mine-index.vue index bdf82e5..811bf90 100644 --- a/pages/mine/mine-index.vue +++ b/pages/mine/mine-index.vue @@ -28,6 +28,9 @@ {{userInfo.tfansNum||'0'}} + + {{userInfo.identityName||'未认证身份'}} + @@ -37,7 +40,7 @@ - + @@ -48,7 +51,7 @@ - + + --> + @@ -74,8 +77,8 @@ - - + + 会员{{memberEndDate}}日到期 @@ -103,7 +106,13 @@ 个人信息 - + + + 积分 {{" "+userInfo.pointsBalance||'0'}} + + + + 通告主认证 @@ -180,6 +189,11 @@ + + + + @@ -264,6 +278,17 @@ } }, methods: { + //判断是否已有身份 + checkIfAuth() { + if (this.userInfo.identityName) { + this.$refs.alertDialogAuth.open() + } else { + this.goAuth() + } + }, + dialogConfirmAuth() { + this.goAuth() + }, /** * 查询发布通告送多少积分 */ @@ -324,6 +349,7 @@ this.userInfo.addNotice = res.data.addNotice.toString() this.userInfo.avatar = this.imageUrl + res.data.avatar this.userInfo.cardName = res.data.cardName + this.userInfo.identityName = res.data.identityName if (res.data.memberEndDate && null != res.data.memberEndDate) { this.ifHasCard = true this.memberEndDate = res.data.memberEndDate @@ -765,9 +791,6 @@ height: 100rpx; } - .red-text { - color: #FC1F3E; - } } } @@ -879,6 +902,7 @@ padding-bottom: 10rpx; image { + border-radius: 50%; width: 60rpx; height: 60rpx; margin-bottom: 0 !important; @@ -903,5 +927,10 @@ } } } + + .red-text { + padding-left: 5px; + color: #FC1F3E; + } } - + \ No newline at end of file