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

@ -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}`}>
@ -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,
}) })
}} }}