样式修改
This commit is contained in:
parent
6d45328382
commit
c8bfe44225
@ -420,41 +420,71 @@ export default function Payment(props: IPaymentProps) {
|
|||||||
}}>¥</span>
|
}}>¥</span>
|
||||||
<span style={{ fontWeight: 'bold', color: '#FF2222', fontSize: '18px' }}>{form.getFieldValue('rechargeMoney')}</span>
|
<span style={{ fontWeight: 'bold', color: '#FF2222', fontSize: '18px' }}>{form.getFieldValue('rechargeMoney')}</span>
|
||||||
<Button type="link" onClick={() => {
|
<Button type="link" onClick={() => {
|
||||||
setIsRechargeMoneyEdit(true);
|
if (packageInfoId) {
|
||||||
setshowPay('none')
|
messageApi.error('请先取消套餐包')
|
||||||
setPackageInfoId('');
|
} else {
|
||||||
|
setIsRechargeMoneyEdit(true);
|
||||||
|
setshowPay('none')
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}}>修改</Button>
|
}}>修改</Button>
|
||||||
</div>
|
</div>
|
||||||
<div className='moneyBox' >
|
<div className='moneyBox' >
|
||||||
<Tag style={{ cursor: 'pointer' }} onClick={() => {
|
<Tag style={{ cursor: 'pointer' }} onClick={() => {
|
||||||
form.setFieldValue('rechargeMoney', 100);
|
if (packageInfoId) {
|
||||||
setIsRechargeMoneyEdit(false)
|
messageApi.error('请先取消套餐包')
|
||||||
getPay(packageInfoId)
|
} else {
|
||||||
setPackageInfoId('');
|
form.setFieldValue('rechargeMoney', 100);
|
||||||
|
setIsRechargeMoneyEdit(false)
|
||||||
|
getPay(packageInfoId)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}} color="volcano">100</Tag>
|
}} color="volcano">100</Tag>
|
||||||
<Tag style={{ cursor: 'pointer', marginLeft: 10 }} onClick={() => {
|
<Tag style={{ cursor: 'pointer', marginLeft: 10 }} onClick={() => {
|
||||||
form.setFieldValue('rechargeMoney', 200);
|
if (packageInfoId) {
|
||||||
setIsRechargeMoneyEdit(false)
|
messageApi.error('请先取消套餐包')
|
||||||
getPay(packageInfoId)
|
} else {
|
||||||
setPackageInfoId('');
|
form.setFieldValue('rechargeMoney', 200);
|
||||||
|
setIsRechargeMoneyEdit(false)
|
||||||
|
getPay(packageInfoId)
|
||||||
|
setPackageInfoId('');
|
||||||
|
}
|
||||||
|
|
||||||
}} color="volcano">200</Tag>
|
}} color="volcano">200</Tag>
|
||||||
<Tag style={{ cursor: 'pointer', marginLeft: 10 }} onClick={() => {
|
<Tag style={{ cursor: 'pointer', marginLeft: 10 }} onClick={() => {
|
||||||
form.setFieldValue('rechargeMoney', 300);
|
if (packageInfoId) {
|
||||||
setIsRechargeMoneyEdit(false)
|
messageApi.error('请先取消套餐包')
|
||||||
getPay(packageInfoId)
|
} else {
|
||||||
setPackageInfoId('');
|
form.setFieldValue('rechargeMoney', 300);
|
||||||
|
setIsRechargeMoneyEdit(false)
|
||||||
|
getPay(packageInfoId)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}} color="volcano">300</Tag>
|
}} color="volcano">300</Tag>
|
||||||
<Tag style={{ cursor: 'pointer', marginLeft: 10 }} onClick={() => {
|
<Tag style={{ cursor: 'pointer', marginLeft: 10 }} onClick={() => {
|
||||||
form.setFieldValue('rechargeMoney', 400);
|
if (packageInfoId) {
|
||||||
setIsRechargeMoneyEdit(false)
|
messageApi.error('请先取消套餐包')
|
||||||
getPay(packageInfoId)
|
} else {
|
||||||
setPackageInfoId('');
|
form.setFieldValue('rechargeMoney', 400);
|
||||||
|
setIsRechargeMoneyEdit(false)
|
||||||
|
getPay(packageInfoId)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}} color="volcano">400</Tag>
|
}} color="volcano">400</Tag>
|
||||||
<Tag style={{ cursor: 'pointer', marginLeft: 10 }} onClick={() => {
|
<Tag style={{ cursor: 'pointer', marginLeft: 10 }} onClick={() => {
|
||||||
form.setFieldValue('rechargeMoney', 500);
|
if (packageInfoId) {
|
||||||
setIsRechargeMoneyEdit(false)
|
messageApi.error('请先取消套餐包')
|
||||||
getPay(packageInfoId)
|
} else {
|
||||||
setPackageInfoId('');
|
form.setFieldValue('rechargeMoney', 500);
|
||||||
|
setIsRechargeMoneyEdit(false)
|
||||||
|
getPay(packageInfoId)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}} color="volcano">500</Tag>
|
}} color="volcano">500</Tag>
|
||||||
</div>
|
</div>
|
||||||
{/* <div style={{
|
{/* <div style={{
|
||||||
@ -977,25 +1007,25 @@ export default function Payment(props: IPaymentProps) {
|
|||||||
if (packPage > 1) {
|
if (packPage > 1) {
|
||||||
setPackPage(packPage - 1);
|
setPackPage(packPage - 1);
|
||||||
getPackageList(value, packPage - 1);
|
getPackageList(value, packPage - 1);
|
||||||
}else{
|
} else {
|
||||||
messageApi.error('已经是第一页了');
|
messageApi.error('已经是第一页了');
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
style={{
|
style={{
|
||||||
cursor: packPage > 1 ? 'pointer' : 'not-allowed',
|
cursor: packPage > 1 ? 'pointer' : 'not-allowed',
|
||||||
background: packPage > 1? '#abc8ff' : '#BAC8DA',
|
background: packPage > 1 ? '#abc8ff' : '#BAC8DA',
|
||||||
}}
|
}}
|
||||||
>上一页</div>
|
>上一页</div>
|
||||||
<div className='clickPage' style={{
|
<div className='clickPage' style={{
|
||||||
marginLeft: 10,
|
marginLeft: 10,
|
||||||
cursor: packPage < packTotal / 7 ? 'pointer' : 'not-allowed',
|
cursor: packPage < packTotal / 7 ? 'pointer' : 'not-allowed',
|
||||||
background: packPage < packTotal / 7? '#abc8ff' : '#BAC8DA',
|
background: packPage < packTotal / 7 ? '#abc8ff' : '#BAC8DA',
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (packPage < packTotal / 7) {
|
if (packPage < packTotal / 7) {
|
||||||
setPackPage(packPage + 1);
|
setPackPage(packPage + 1);
|
||||||
getPackageList(value, packPage + 1);
|
getPackageList(value, packPage + 1);
|
||||||
}else{
|
} else {
|
||||||
messageApi.error('已经是最后一页了');
|
messageApi.error('已经是最后一页了');
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user