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

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

View File

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

View File

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

View File

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