fix: 临时注释卡的语音白名单,通话
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 47s
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 47s
This commit is contained in:
@@ -138,7 +138,7 @@
|
||||
:class="{ active: selectedAmount === item.value }"
|
||||
@tap="selectAmount(item.value)"
|
||||
>
|
||||
<text class="amount-value">¥{{ item.label }}</text>
|
||||
<text class="amount-value">¥{{ formatDisplayMoney(item.label) }}</text>
|
||||
</view>
|
||||
<view
|
||||
class="amount-item custom"
|
||||
@@ -191,6 +191,12 @@
|
||||
return (amount / 100).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
||||
};
|
||||
|
||||
const formatDisplayMoney = (amount) => {
|
||||
if (!amount && amount !== 0) return '0';
|
||||
// 直接格式化显示的数字(已经是元),添加千分号
|
||||
return parseFloat(amount).toFixed(0).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
||||
};
|
||||
|
||||
const formatDateTime = (dateStr) => {
|
||||
if (!dateStr) return '-';
|
||||
const date = new Date(dateStr);
|
||||
|
||||
Reference in New Issue
Block a user