import { View, Text, Input } from '@tarojs/components'; import { useState } from 'react'; import NavBar from '@/components/NavBar'; export default function RebateWithdrawPage() { const [amount, setAmount] = useState(''); const [account, setAccount] = useState(''); const [name, setName] = useState(''); const [canWithdraw, setCanWithdraw] = useState(528.50); const handleWithdraw = () => { if (parseFloat(amount) > canWithdraw) { console.log('余额不足'); return; } if (parseFloat(amount) < 100) { console.log('最低提现金额¥100'); return; } console.log('申请提现', { amount, account, name }); }; return ( {/* 可提现金额 */} 可提现金额(元) {canWithdraw.toFixed(2)} 最低提现金额 ¥100.00 {/* 提现金额 */} 提现金额 ¥ setAmount(e.detail.value)} /> 手续费:¥0.00 setAmount(canWithdraw.toString())} > 全部提现 {/* 收款信息 */} 收款信息 收款人姓名 setName(e.detail.value)} /> 支付宝账号 setAccount(e.detail.value)} /> {/* 提现说明 */} 提现说明 提现申请将在1-3个工作日内审核 提现金额将打入您指定的支付宝账号 如有疑问,请联系客服 申请提现 ); }