From 74734052420de22af792b24603945687a2d369ae Mon Sep 17 00:00:00 2001 From: xin Date: Thu, 5 Feb 2026 19:49:02 +0800 Subject: [PATCH] fix: team page logic and withdraw status style --- pages/team/team.js | 12 ++++++++---- pages/team/team.wxml | 2 +- pages/withdraw/withdraw.wxss | 2 ++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/pages/team/team.js b/pages/team/team.js index 6fcf8cf..3e43c0d 100644 --- a/pages/team/team.js +++ b/pages/team/team.js @@ -81,11 +81,15 @@ Page({ directReferrals: Number(d.directReferrals || d.direct_referrals || 0), totalContribution: Number(d.totalContribution || d.total_contribution || 0).toFixed(2) }, - cardTitle: currentRoleText + cardTitle: currentRoleText, + isSoulmate: currentRoleText === '心伴会员' // 判断是否为心伴会员 }); } else { // API不成功,使用本地推断的角色 - this.setData({ cardTitle: currentRoleText }); + this.setData({ + cardTitle: currentRoleText, + isSoulmate: currentRoleText === '心伴会员' + }); } const res = await request({ url: '/api/commission?action=referrals&page=1&pageSize=50', method: 'GET' }); @@ -205,11 +209,11 @@ Page({ getCardTitle(type) { const map = { 'guardian_card': '守护会员', - 'companion_card': '心伴会员', + 'companion_card': '陪伴会员', 'soulmate_card': '心伴会员', 'listener_card': '倾听会员', 'guardian': '守护会员', - 'companion': '心伴会员', + 'companion': '陪伴会员', 'soulmate': '心伴会员', 'listener': '倾听会员', 'identity_card': '身份会员', diff --git a/pages/team/team.wxml b/pages/team/team.wxml index 0e83595..0dc5ec9 100644 --- a/pages/team/team.wxml +++ b/pages/team/team.wxml @@ -24,7 +24,7 @@ 直推人数 {{stats.directReferrals || list.length}} - + 团队总计 {{stats.totalReferrals}} diff --git a/pages/withdraw/withdraw.wxss b/pages/withdraw/withdraw.wxss index 3fad376..b48a5db 100644 --- a/pages/withdraw/withdraw.wxss +++ b/pages/withdraw/withdraw.wxss @@ -452,6 +452,8 @@ .status-processing { background: #DBEAFE; color: #2563EB; + font-size: 28rpx; + padding: 8rpx 24rpx; } .status-completed {