This commit is contained in:
lyp 2025-01-20 16:13:35 +08:00
parent 7abadfbed7
commit 28426205c4
4 changed files with 23 additions and 18 deletions

View File

@ -123,7 +123,7 @@ export default function CardProjType(props: ICardProj) {
setPkg(true); setPkg(true);
} else if (line.id == ProjAdditionalType.VIDEO_DEMO) { } else if (line.id == ProjAdditionalType.VIDEO_DEMO) {
setVideoDemo(true); setVideoDemo(true);
}else if(line.id ==ProjAdditionalType.URGENT){ } else if (line.id == ProjAdditionalType.URGENT) {
setUrgent(true) setUrgent(true)
} }
setChargeAmount(chargeAmount + line.price); setChargeAmount(chargeAmount + line.price);
@ -132,7 +132,7 @@ export default function CardProjType(props: ICardProj) {
setPkg(false); setPkg(false);
} else if (line.id == ProjAdditionalType.VIDEO_DEMO) { } else if (line.id == ProjAdditionalType.VIDEO_DEMO) {
setVideoDemo(false); setVideoDemo(false);
}else if(line.id ==ProjAdditionalType.URGENT){ } else if (line.id == ProjAdditionalType.URGENT) {
setUrgent(false) setUrgent(false)
} }
setChargeAmount(chargeAmount - line.price); setChargeAmount(chargeAmount - line.price);
@ -143,9 +143,11 @@ export default function CardProjType(props: ICardProj) {
if (!props.chargeLineArray || props.chargeLineArray.length == 0) { if (!props.chargeLineArray || props.chargeLineArray.length == 0) {
return <></> return <></>
} }
return ( return (
<> <>
<div className="proj-charge"> <div className="proj-charge">
{ {
props.chargeLineArray.map((line, index) => ( props.chargeLineArray.map((line, index) => (
<div className="chargeline" key={`charge_${index}`}> <div className="chargeline" key={`charge_${index}`}>
@ -174,7 +176,7 @@ export default function CardProjType(props: ICardProj) {
buy.handleClick(props.head, { buy.handleClick(props.head, {
pkg: pkg, pkg: pkg,
videoDemo: videoDemo, videoDemo: videoDemo,
urgent:urgent, urgent: urgent,
}); });
}} }}
style={{ style={{
@ -246,7 +248,7 @@ export default function CardProjType(props: ICardProj) {
return ( return (
<div className="proj" style={{ display: props.isShow == 1 ? 'block' : 'none', }}> <div className="proj" style={{ display: props.isShow == 1 ? 'block' : 'none', }}>
{/* <div className="proj" style={{ display: props.isShow ? 'block' : 'none', }}> */} {/* <div className="proj" style={{ display: props.isShow ? 'block' : 'none', }}> */}
<div className='projTop'> <div className='projTop'>
{/* <div className="proj-head" style={{ backgroundImage: `url(${ProjCardHeadBg})` }}> */} {/* <div className="proj-head" style={{ backgroundImage: `url(${ProjCardHeadBg})` }}> */}
<div className="proj-head"> <div className="proj-head">
@ -262,6 +264,7 @@ export default function CardProjType(props: ICardProj) {
<div className="proj-body"> <div className="proj-body">
<div>{renderLines()}</div> <div>{renderLines()}</div>
<div>{renderNew()}</div> <div>{renderNew()}</div>
<div style={{marginTop:20,color:'#989898'}}>{props.text}</div>
{renderCharge()} {renderCharge()}
</div> </div>

View File

@ -30,5 +30,6 @@ export interface ICardProj {
newArray:ICardProjBodyLine[]; newArray:ICardProjBodyLine[];
isShow:number isShow:number
isClickable:number, isClickable:number,
details:string details:string,
text?:string
} }

View File

@ -245,19 +245,20 @@ export default function ProjCreate() {
] ]
} }
chargeLineArray={[ chargeLineArray={[
{ // {
id: ProjAdditionalType.PKG, // id: ProjAdditionalType.PKG,
price: charge.pkg, // price: charge.pkg,
title: `安装包 ${charge.pkg / 100}` // title: `安装包 ${charge.pkg / 100} 元`
}, // },
{ // {
id: ProjAdditionalType.VIDEO_DEMO, // id: ProjAdditionalType.VIDEO_DEMO,
price: charge.videoDemo, // price: charge.videoDemo,
title: `系统演示视频文件 ${charge.videoDemo / 100}` // title: `系统演示视频文件 ${charge.videoDemo / 100} 元`
} // }
]} ]}
text='如需视频文件和安装包请在下证后购买下载'
buyArray={[ buyArray={[
{ {
id: ProjChargeType.MATERIAL, id: ProjChargeType.MATERIAL,

View File

@ -226,7 +226,7 @@ export default function ProjNew() {
name="basic" name="basic"
form={form} form={form}
initialValues={{ initialValues={{
projVersion: 'v1.0', projVersion: 'V1.0',
backendCodeLang: 'JAVA' backendCodeLang: 'JAVA'
}} // 添加 initialValues 属性 }} // 添加 initialValues 属性
layout={'vertical'} layout={'vertical'}
@ -241,7 +241,7 @@ export default function ProjNew() {
belongPeople: formData.belongPeople, belongPeople: formData.belongPeople,
contacts: formData.contacts, contacts: formData.contacts,
projDevCompleteDate: formData.projDevCompleteDate, projDevCompleteDate: formData.projDevCompleteDate,
projVersion: formData.projVersion ? formData.projVersion : 'v1.0', projVersion: formData.projVersion ? formData.projVersion : 'V1.0',
backendCodeLang: formData.backendCodeLang, backendCodeLang: formData.backendCodeLang,
}) })
}} }}