This commit is contained in:
parent
d618042960
commit
cc9f0298f7
@ -63,7 +63,9 @@
|
|||||||
<div
|
<div
|
||||||
class="group relative flex h-[46px] items-center overflow-hidden rounded-[32px] bg-[#ADFF5B] p-[3px]"
|
class="group relative flex h-[46px] items-center overflow-hidden rounded-[32px] bg-[#ADFF5B] p-[3px]"
|
||||||
>
|
>
|
||||||
<div class="flex h-full items-center px-6 text-xl font-bold text-black">¥</div>
|
<div class="flex h-full items-center px-6 text-xl font-bold text-black">
|
||||||
|
{{ values.type === 'USDT(TRC20)' ? '₮' : '¥' }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<Input
|
||||||
@ -99,11 +101,13 @@
|
|||||||
}
|
}
|
||||||
"
|
"
|
||||||
class="h-full flex-1 rounded-[28px]! border-none bg-[#222222] px-4 text-center text-sm font-bold text-white placeholder:text-white/20 focus:ring-0! focus-visible:ring-0!"
|
class="h-full flex-1 rounded-[28px]! border-none bg-[#222222] px-4 text-center text-sm font-bold text-white placeholder:text-white/20 focus:ring-0! focus-visible:ring-0!"
|
||||||
placeholder="不小于200RMB"
|
:placeholder="values.type === 'USDT(TRC20)' ? '不小于30USDT' : '不小于200RMB'"
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
||||||
<div class="flex h-full items-center px-6 text-sm font-bold text-black">RMB</div>
|
<div class="flex h-full items-center px-6 text-sm font-bold text-black">
|
||||||
|
{{ values.type === 'USDT(TRC20)' ? 'USDT' : 'RMB' }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<FormMessage class="ml-4 text-red-400" />
|
<FormMessage class="ml-4 text-red-400" />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
@ -207,7 +211,9 @@ const onSubmit = handleSubmit(async (val) => {
|
|||||||
|
|
||||||
// 1. 基础校验
|
// 1. 基础校验
|
||||||
if (amount > props.commission / 100) return toast.error('佣金不足')
|
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 {
|
try {
|
||||||
isPending.value = true
|
isPending.value = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user