import React from 'react' import { View, Text } from '@tarojs/components' import { Popup, Button } from '@nutui/nutui-react-taro' import { Close } from '@nutui/icons-react-taro' interface FreezeMoneyModalProps { visible: boolean amount: string onClose: () => void } /** * 待使用明细弹窗组件 * 展示待使用(冻结中)金额和解冻规则说明 */ const FreezeMoneyModal: React.FC = ({ visible, amount, onClose }) => { // 格式化金额,保留2位小数 const formatAmount = (value: string | number): string => { const num = typeof value === 'string' ? parseFloat(value) : value if (isNaN(num)) return '0.00' return num.toFixed(2) } return ( {/* 头部标题 */} 待使用明细 {/* 金额展示区域 */} 待使用(冻结中) ¥ {formatAmount(amount)} {/* 分隔线 */} {/* 温馨提示区域 */} 温馨提示: 需要直推用户进行下单配送后方可解冻到待提现资金组 {/* 底部按钮 */} ) } export default FreezeMoneyModal