From ef05d4fed69146920de5e94e8502b8cab7338b29 Mon Sep 17 00:00:00 2001 From: milky0217 Date: Tue, 2 Jun 2026 13:21:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=AD=E8=B4=B9=E9=A1=B5=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=96=87=E6=A1=88=E6=8C=89=E7=94=A8=E6=88=B7=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=8C=BA=E5=88=86(=E7=BB=AD=E8=B4=B9/=E5=BC=80?= =?UTF-8?q?=E9=80=9A)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handlers/payment.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/handlers/payment.rs b/src/handlers/payment.rs index f4386b0..21e64f0 100644 --- a/src/handlers/payment.rs +++ b/src/handlers/payment.rs @@ -571,7 +571,7 @@ pub async fn payment_index() -> Result { document.getElementById('paidSection').style.display = 'block'; document.getElementById('paidBadge').textContent = '付费会员'; document.getElementById('pkgsTitle').textContent = '续费套餐'; - document.getElementById('pkgsSub').textContent = '选择套餐延长会员有效期,现有权益不受影响'; + document.getElementById('pkgsSub').textContent = '选择套餐延长有效期,现有权益不受影响'; if (paidExpiresAt) { document.getElementById('paidExpires').textContent = new Date(paidExpiresAt).toLocaleString('zh-CN'); document.getElementById('expiresRow').style.display = 'flex'; @@ -620,7 +620,8 @@ pub async fn payment_index() -> Result { document.querySelectorAll('.pkg-card').forEach(c => c.classList.remove('selected')); document.querySelector('[data-package="' + pkg + '"]').classList.add('selected'); var btn = document.getElementById('payBtn'); - var labels = { monthly: '立即开通 - ¥5.9/月', quarterly: '立即开通 - ¥16.8/季', half_year: '立即开通 - ¥31.9/半年', yearly: '立即开通 - ¥60.2/年' }; + var labels = { monthly: '立即续费 - ¥5.9/月', quarterly: '立即续费 - ¥16.8/季', half_year: '立即续费 - ¥31.9/半年', yearly: '立即续费 - ¥60.2/年' }; + if (isPaidActive) labels = { monthly: '续费 - ¥5.9/月', quarterly: '续费 - ¥16.8/季', half_year: '续费 - ¥31.9/半年', yearly: '续费 - ¥60.2/年' }; btn.textContent = labels[pkg]; btn.disabled = false; btn.className = 'btn-pay';