diff --git a/src/pages/UserCenter/components/UserInfo/components/WalletDialog.vue b/src/pages/UserCenter/components/UserInfo/components/WalletDialog.vue index 4806a81..85b0c50 100644 --- a/src/pages/UserCenter/components/UserInfo/components/WalletDialog.vue +++ b/src/pages/UserCenter/components/UserInfo/components/WalletDialog.vue @@ -63,7 +63,9 @@
-
¥
+
+ {{ values.type === 'USDT(TRC20)' ? '₮' : '¥' }} +
-
RMB
+
+ {{ values.type === 'USDT(TRC20)' ? 'USDT' : 'RMB' }} +
@@ -207,7 +211,9 @@ const onSubmit = handleSubmit(async (val) => { // 1. 基础校验 if (amount > props.commission / 100) return toast.error('佣金不足') - if (amount < 200) return toast.error('金额不能小于200') + const minAmount = val.type === 'USDT(TRC20)' ? 30 : 200 + if (amount < minAmount) + return toast.error(`金额不能小于${minAmount}${val.type === 'USDT(TRC20)' ? 'USDT' : 'RMB'}`) try { isPending.value = true