接口键名修改
This commit is contained in:
parent
3059b19113
commit
5de0c6af70
@ -121,12 +121,14 @@ export default function CardProj(props: any) {
|
|||||||
const URGENTvalue: number | null = URGENT ? parseInt(URGENT[1], 10) / 100 : null;
|
const URGENTvalue: number | null = URGENT ? parseInt(URGENT[1], 10) / 100 : null;
|
||||||
// const basicsValue: number | null = basics ? parseInt(basics[1], 10)/100 : null;
|
// const basicsValue: number | null = basics ? parseInt(basics[1], 10)/100 : null;
|
||||||
const [projId] = useState(data.projId)
|
const [projId] = useState(data.projId)
|
||||||
const isShow = data.pay.chargeAdditionals.includes('PKG') || data.pay.charge.includes('ALL')
|
// 修改
|
||||||
|
const isShow = data.pay.chargeAdditionals.includes('PKG') || data.pay.chargeType=='ALL'
|
||||||
|
|
||||||
|
|
||||||
const [messageApi, messageContext] = useMessage();
|
const [messageApi, messageContext] = useMessage();
|
||||||
// const [projCategoryId, setProjCategoryId] = useState(data.projCategoryId);
|
// const [projCategoryId, setProjCategoryId] = useState(data.projCategoryId);
|
||||||
// const [projCategoryName, setProjCategoryName] = useState(data.projCategoryName);
|
// const [projCategoryName, setProjCategoryName] = useState(data.projCategoryName);
|
||||||
const [charge, setCharge] = useState('');
|
// const [charge, setCharge] = useState('');
|
||||||
const [payCharge, setPayCharge] = useState('');
|
const [payCharge, setPayCharge] = useState('');
|
||||||
// const indexListContext = useContext(IndexListContext);
|
// const indexListContext = useContext(IndexListContext);
|
||||||
/**
|
/**
|
||||||
@ -152,9 +154,9 @@ export default function CardProj(props: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const goEdit = () => {
|
const goEdit = () => {
|
||||||
if (charge == ProjChargeType.ALL) {
|
if (data.pay.chargeType == 'ALL') {
|
||||||
nav(`/proj-eall/${data.projId}`);
|
nav(`/proj-eall/${data.projId}`);
|
||||||
} else if (charge == ProjChargeType.FREE) {
|
} else if (data.pay.chargeType == 'FREE') {
|
||||||
nav(`/proj-efree/${data.projId}`);
|
nav(`/proj-efree/${data.projId}`);
|
||||||
} else {
|
} else {
|
||||||
nav(`/proj-edit/${data.projId}`);
|
nav(`/proj-edit/${data.projId}`);
|
||||||
@ -162,20 +164,22 @@ export default function CardProj(props: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const charge = props.item.pay.charge.split(':')[0];
|
// 修改
|
||||||
|
// const charge = props.item.pay.charge.split(':')[0];
|
||||||
let chargeName = '';
|
let chargeName = '';
|
||||||
if (charge == ProjChargeType.ALL) {
|
if (data.pay.chargeType == 'ALL') {
|
||||||
chargeName = '全托管';
|
chargeName = '全托管';
|
||||||
} else if (charge == ProjChargeType.MATERIAL_AGENT) {
|
} else if (data.pay.chargeType =='MATERIAL_AGENT') {
|
||||||
chargeName = '写材料+代理';
|
chargeName = '写材料+代理';
|
||||||
} else if (charge == ProjChargeType.MATERIAL_AGENT_URGENT) {
|
} else if (data.pay.chargeType == 'MATERIAL_AGENT_URGENT') {
|
||||||
chargeName = '写材料+代理(加急)';
|
chargeName = '写材料+代理(加急)';
|
||||||
} else if (charge == ProjChargeType.MATERIAL) {
|
} else if (data.pay.chargeType == 'MATERIAL') {
|
||||||
chargeName = '写材料';
|
chargeName = '写材料';
|
||||||
} else {
|
} else {
|
||||||
chargeName = '免费试用';
|
chargeName = '免费试用';
|
||||||
}
|
}
|
||||||
setCharge(charge)
|
// data.pay.chargeType
|
||||||
|
// setCharge(charge)
|
||||||
setPayCharge(chargeName);
|
setPayCharge(chargeName);
|
||||||
// console.log('额外收费安装包',pkgValue);
|
// console.log('额外收费安装包',pkgValue);
|
||||||
// console.log('额外收费视频',videoDemoValue);
|
// console.log('额外收费视频',videoDemoValue);
|
||||||
@ -312,7 +316,9 @@ export default function CardProj(props: any) {
|
|||||||
<span className='num'
|
<span className='num'
|
||||||
style={{ color: data.projStatus == 'NORMAL' || data.projStatus == 'EXPIRED' ? '#FF5D15' : '#8a8a8a' }}
|
style={{ color: data.projStatus == 'NORMAL' || data.projStatus == 'EXPIRED' ? '#FF5D15' : '#8a8a8a' }}
|
||||||
|
|
||||||
>{data.pay.payment / 100}</span>
|
>
|
||||||
|
{data.pay.payment / 100}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className='otherMoney'>
|
<div className='otherMoney'>
|
||||||
{/* <div>基础费用:{basicsValue}</div> */}
|
{/* <div>基础费用:{basicsValue}</div> */}
|
||||||
|
@ -62,7 +62,8 @@ export default function ListProj() {
|
|||||||
page: currentPage,
|
page: currentPage,
|
||||||
rows: 10,
|
rows: 10,
|
||||||
keywords: keywords,
|
keywords: keywords,
|
||||||
charge: type,
|
// charge: type,
|
||||||
|
chargeType: type,
|
||||||
chargeAdditionals: chargeAdditionals,
|
chargeAdditionals: chargeAdditionals,
|
||||||
tagDataId: tagDataId,
|
tagDataId: tagDataId,
|
||||||
authorId: authorId,
|
authorId: authorId,
|
||||||
|
Loading…
Reference in New Issue
Block a user