邀请码显示修改

This commit is contained in:
lyp 2025-03-03 10:38:30 +08:00
parent 651043db89
commit 4d737af813
3 changed files with 33 additions and 11 deletions

View File

@ -229,9 +229,15 @@ export default function CapitalModal() {
title: <div style={{ textAlign: 'center' }}></div>, title: <div style={{ textAlign: 'center' }}></div>,
dataIndex: 'orderId', dataIndex: 'orderId',
// fixed: 'right', // fixed: 'right',
width: 300, // width: 200,
align: 'center', align: 'center',
key: 'orderId', key: 'orderId',
ellipsis: {
showTitle: false,
},
render: (text) => {
return <Tooltip placement="top" title={text}>{text}</Tooltip>
}
}, },
{ {
title: <div style={{ textAlign: 'center' }}></div>, title: <div style={{ textAlign: 'center' }}></div>,
@ -248,9 +254,11 @@ export default function CapitalModal() {
dataIndex: 'gmtCreate', dataIndex: 'gmtCreate',
key: 'gmtCreate', key: 'gmtCreate',
align: 'center', align: 'center',
}, },
{ {
title: <div style={{ textAlign: 'center' }}></div>, title: <div style={{ textAlign: 'center' }}></div>,
width: 400,
dataIndex: 'description', dataIndex: 'description',
key: 'description', key: 'description',
align: 'center', align: 'center',

View File

@ -198,9 +198,9 @@ export default function Head() {
// 邀请码返利比例 // 邀请码返利比例
const [icRebateRatio, seticRebateRatio] = useState('') const [icRebateRatio, seticRebateRatio] = useState('')
// 全托管分账 // 全托管分账
const [icPriceAll, seticPriceAll] = useState(0) // const [icPriceAll, seticPriceAll] = useState(0)
// 写材料分账 // 写材料分账
const [icPriceMaterial, seticPriceMaterial] = useState(0) // const [icPriceMaterial, seticPriceMaterial] = useState(0)
// 获取邀请码申请状态 // 获取邀请码申请状态
// const getIcStatus = () => { // const getIcStatus = () => {
// get<any>({ // get<any>({
@ -227,8 +227,8 @@ export default function Head() {
// setInvNum(data.ic) // setInvNum(data.ic)
setBindingInvNum(data.relationIc) setBindingInvNum(data.relationIc)
seticRebateRatio(data.icRebateRatio) seticRebateRatio(data.icRebateRatio)
seticPriceAll(Number(data.icPriceAll) / 100 * Number(data.icRebateRatio) / 100) // seticPriceAll(Number(data.icPriceAll) / 100 * Number(data.icRebateRatio) / 100)
seticPriceMaterial(Number(data.icPriceMaterial) / 100 * Number(data.icRebateRatio) / 100) // seticPriceMaterial(Number(data.icPriceMaterial) / 100 * Number(data.icRebateRatio) / 100)
if (data.ic == '') { if (data.ic == '') {
// getIcStatus() // getIcStatus()
} }
@ -1184,7 +1184,7 @@ export default function Head() {
{icRebateRatio ? {icRebateRatio ?
(<div> (<div>
<div> {icRebateRatio}%</div> <div> {icRebateRatio}%</div>
<div style={{ paddingBottom: 20 }}>:{icPriceAll}:{icPriceMaterial}</div> {/* <div style={{ paddingBottom: 20 }}>全托管佣金:{icPriceAll}元,写材料佣金:{icPriceMaterial}元</div> */}
</div> </div>
) )
@ -1200,7 +1200,9 @@ export default function Head() {
</div> </div>
<div className='invitation-box'> <div className='invitation-box'>
<div className='invBox-top'> <div className='invBox-top'>
<div className='invBox-title' style={{ fontSize: '24px' }}> <div className='invBox-title' style={{ fontSize: '24px',
width: bindingInvNum?264:362,
}}>
</div> </div>
<div className='invBox-line'></div> <div className='invBox-line'></div>
@ -1216,8 +1218,8 @@ export default function Head() {
</div> </div>
</div> </div>
</div> </div>
<div className='invBox-input' style={{ display: bindingInvNum ? 'block' : 'none' }}> <div className='invBox-inputl' style={{ display: bindingInvNum ? 'block' : 'none' }}>
<div className='invInput'> <div className='invInputl'>
<div className='invNum-box'> <div className='invNum-box'>
<div className='invNum' > <div className='invNum' >
{bindingInvNum} {bindingInvNum}

View File

@ -129,7 +129,7 @@
.invitation-box { .invitation-box {
width: 530px; width: 530px;
height: 175px; height:157px;
background: #F9F9F9; background: #F9F9F9;
margin-top: 16px; margin-top: 16px;
border: 1px solid #EEEEEE; border: 1px solid #EEEEEE;
@ -138,7 +138,7 @@
.invBox-top { .invBox-top {
display: flex; display: flex;
align-items: center; align-items: center;
height: 118px; height: 100px;
/* background-color: skyblue; */ /* background-color: skyblue; */
} }
@ -278,6 +278,7 @@
font-size: 18px; font-size: 18px;
height: 57px; height: 57px;
color: #818181; color: #818181;
} }
.invBox-tips { .invBox-tips {
@ -295,6 +296,10 @@
/* background-color: #fcc19d; */ /* background-color: #fcc19d; */
} }
.invBox-inputl{
width: 264px;
height: 118px;
}
.invInput { .invInput {
width: 362px; width: 362px;
@ -303,6 +308,13 @@
align-items: center; align-items: center;
justify-content: space-evenly; justify-content: space-evenly;
} }
.invInputl {
width: 264px;
height: 118px;
display: flex;
align-items: center;
justify-content: space-evenly;
}
.invImg { .invImg {
width: 31px; width: 31px;