From 37f0e88add239e31a20ba2ae051fa16eb24a85c6 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Sat, 20 Jul 2024 09:24:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E5=8D=A1=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/member/components/card.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pages/member/components/card.vue b/pages/member/components/card.vue index a6c2994..eea9a89 100644 --- a/pages/member/components/card.vue +++ b/pages/member/components/card.vue @@ -13,10 +13,10 @@ VIP{{userInfo.code || '无'}} - VIP{{userInfo.isVip?userInfo.isVip:''}} + VIP{{userInfo.isVip||''}} + @click="clickEvent"> @@ -27,13 +27,15 @@ return {} }, mounted() { - console.log(this.userInfo,'调试1113') + console.log(this.userInfo, '调试1113') }, methods: { clickEvent() { - uni.navigateTo({ - url: '/pages/pay_code/pay_code?shopInfo='+JSON.stringify(this.userInfo) - }) + if (this.userInfo.amount) { + uni.navigateTo({ + url: '/pages/pay_code/pay_code?shopInfo=' + JSON.stringify(this.userInfo) + }) + } } } } @@ -145,7 +147,7 @@ color: #333333; display: flex; align-items: center; - + .towcontentitemtheretext { font-family: Source Han Sans CN, Source Han Sans CN; font-weight: bold;