This commit is contained in:
@@ -137,7 +137,14 @@
|
||||
|
||||
const emit = defineEmits(['enter', 'sync']);
|
||||
|
||||
const walletText = computed(() => '钱包 ('+ (props.walletBalance ?? 0) + ')');
|
||||
const formatWalletBalance = (balance) => {
|
||||
const amount = Number(balance);
|
||||
if (!Number.isFinite(amount) || amount === 0) return '0';
|
||||
|
||||
return (amount / 100).toFixed(2).replace(/\.?0+$/, '');
|
||||
};
|
||||
|
||||
const walletText = computed(() => `钱包 (${formatWalletBalance(props.walletBalance)})`);
|
||||
|
||||
const handleBindPhone = () => {
|
||||
if (props.alreadyBindPhone) {
|
||||
|
||||
Reference in New Issue
Block a user