首页接口更新&&支付页面调试

This commit is contained in:
Eamon-meng
2025-06-23 18:59:31 +08:00
parent f15cefff4d
commit e4556bfe60
11 changed files with 232 additions and 209 deletions

View File

@@ -6,17 +6,11 @@ import {Dialog} from '@/components/ui/dialog'
import {PaymentProps} from './type'
export type PaymentModalProps = {
onSuccess?: () => void
onConfirm?: () => Promise<void>
onClose?: () => void
} & PaymentProps
export function PaymentModal(props: PaymentModalProps) {
const handleClose = (success: boolean) => {
if (success && props.onSuccess) {
props.onSuccess()
}
}
return (
<Dialog
defaultOpen={true}