对提现确认弹窗中银行卡号进行脱敏

This commit is contained in:
yezian 2024-07-01 12:09:05 +08:00
parent f03b870d62
commit af0e5c8ea2
1 changed files with 4 additions and 1 deletions

View File

@ -419,7 +419,10 @@ export default function Checkout() {
收款账号
<span className="text-secondary">
{receiptChannel === 10
? data?.detail?.bank_card_no
? data?.detail?.bank_card_no?.replace(
/(\d{4})\d+(\d{4})/,
"$1****$2"
)
: alipayAccount}
</span>
</p>