From 42aed48ee1223c1cb9bcfc56c158403f369646c5 Mon Sep 17 00:00:00 2001 From: wood Date: Mon, 28 Aug 2023 18:27:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0"=E9=A2=84=E4=BB=98=E8=B4=B9"?= =?UTF-8?q?=E5=92=8C"=E5=90=8E=E4=BB=98=E8=B4=B9"=E7=9A=84=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=20Fixes=20#6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 01c737b..46faf03 100644 --- a/index.html +++ b/index.html @@ -492,10 +492,27 @@ } //获取是否绑卡 try { - isSubscrible = subscriptionData.plan.id.includes('payg') ? '✅' : '❌'; + if (subscriptionData.plan.id.includes('payg')) { + switch (subscriptionData.billing_mechanism) { + case 'advance': + isSubscrible = '✅预付费'; + break; + case 'arrears': + isSubscrible = '✅已欠费'; + break; + case null: + isSubscrible = '✅后付费'; + break; + default: + isSubscrible = '✅'; + } + } else { + isSubscrible = '❌'; + } } catch (error) { console.error(error); } + //获取绑卡信息 try { // 从 subscriptionData 中获取 SubscribleInformation 的值...