This commit is contained in:
lyp 2025-03-04 23:27:17 +08:00
parent 7c9248eeaf
commit 62e86a8705
2 changed files with 102 additions and 90 deletions

View File

@ -114,9 +114,15 @@ export default function Payment(props: IPaymentProps) {
} }
}, },
onBefore() {
setTableLoading(true);
},
onSuccess({ data }) { onSuccess({ data }) {
setPackList(data.rows); setPackList(data.rows);
setPackTotal(data.total); setPackTotal(data.total);
},
onFinally() {
setTableLoading(false)
} }
}) })
} }
@ -273,6 +279,7 @@ export default function Payment(props: IPaymentProps) {
const [messageApi, messageApiContext] = useMessage(); const [messageApi, messageApiContext] = useMessage();
const [isRechargeMoneyEdit, setIsRechargeMoneyEdit] = useState(false); const [isRechargeMoneyEdit, setIsRechargeMoneyEdit] = useState(false);
const [isLoading, setIsLoading] = useState(false); const [isLoading, setIsLoading] = useState(false);
const [tableLoading, setTableLoading] = useState(false);
const [rechargeVoucherArray, setRechargeVoucherArray] = useState<string[]>([]); const [rechargeVoucherArray, setRechargeVoucherArray] = useState<string[]>([]);
const [accountRechargeId, setAccountRechargeId] = useState(''); const [accountRechargeId, setAccountRechargeId] = useState('');
@ -981,11 +988,13 @@ export default function Payment(props: IPaymentProps) {
</div> </div>
<div> <div>
<Spin tip="正在加载..." spinning={tableLoading}>
<div style={{ <div style={{
display: packList.length > 0 ? 'unset' : 'none', display: packList.length > 0 ? 'unset' : 'none',
marginLeft: 90 marginLeft: 90
}}> }}>
<Table <Table
columns={packColumns} columns={packColumns}
dataSource={packList} dataSource={packList}
@ -1006,6 +1015,7 @@ export default function Payment(props: IPaymentProps) {
rowKey="packageInfoId" rowKey="packageInfoId"
/> />
<div style={{ <div style={{
display: packTotal > 7 ? 'unset' : 'none', display: packTotal > 7 ? 'unset' : 'none',
}}> }}>
@ -1044,6 +1054,7 @@ export default function Payment(props: IPaymentProps) {
></div> ></div>
</div> </div>
</div> </div>
</div> </div>
<div style={{ <div style={{
display: packList.length <= 0 ? 'unset' : 'none', display: packList.length <= 0 ? 'unset' : 'none',
@ -1067,6 +1078,7 @@ export default function Payment(props: IPaymentProps) {
marginLeft: 20 marginLeft: 20
}}></div> }}></div>
</div> </div>
</Spin>
</div> </div>
</div> </div>
<div className='payBoxRight'> <div className='payBoxRight'>

View File

@ -587,14 +587,14 @@ export default function ProjNew() {
top: 10, top: 10,
}}></a> }}></a>
<div style={{ <div style={{
position: 'absolute', left: 185, position: 'absolute', left: 165,
display: showTip ? 'unset' : 'none', display: showTip ? 'unset' : 'none',
color: 'green', color: 'green',
}}>APP</div> }}>APP</div>
</div> </div>
<div style={{ <div style={{
display: 'flex', display: 'flex',
marginTop: 10 marginTop: 20
}}> }}>
<div className='formItemOne' style={{ position: 'relative' }}> <div className='formItemOne' style={{ position: 'relative' }}>
@ -644,7 +644,7 @@ export default function ProjNew() {
</div> </div>
<div style={{ <div style={{
display: 'flex', display: 'flex',
marginTop: 10 marginTop: 20
}}> }}>
<div className='formItemOne' style={{}}> <div className='formItemOne' style={{}}>
<div className='formItem-title oneTitle'><span style={{color:'red'}}>*</span></div> <div className='formItem-title oneTitle'><span style={{color:'red'}}>*</span></div>
@ -693,7 +693,7 @@ export default function ProjNew() {
<div style={{ <div style={{
display: 'flex', display: 'flex',
marginTop: 10 marginTop: 20
}}> }}>
{/* <div className='formItemOne' style={{}}> {/* <div className='formItemOne' style={{}}>
@ -825,7 +825,7 @@ export default function ProjNew() {
</div> </div>
<div style={{ <div style={{
display: 'flex', display: 'flex',
marginTop: 10 marginTop: 20
}}> }}>
<div style={{ display: couponShow ? 'unset' : 'none' }}> <div style={{ display: couponShow ? 'unset' : 'none' }}>