fix: 优化体验
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 1m37s

This commit is contained in:
sexygoat
2026-05-09 16:14:06 +08:00
parent c798cdba7f
commit 3f997063f4
27 changed files with 1191 additions and 62 deletions

View File

@@ -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) {