diff --git a/src/pages/Container/Mobile/firstLevelDoor/PersonnelApplication/Apply/index.js b/src/pages/Container/Mobile/firstLevelDoor/PersonnelApplication/Apply/index.js index 9d759ce..b411719 100644 --- a/src/pages/Container/Mobile/firstLevelDoor/PersonnelApplication/Apply/index.js +++ b/src/pages/Container/Mobile/firstLevelDoor/PersonnelApplication/Apply/index.js @@ -69,6 +69,13 @@ function Apply(props) { }); return; } + if (values.accessType === "1" && values.vehicleLicensePhoto.length !== 2) { + Toast.show({ + icon: "fail", + content: "请上传两张行驶证照片", + }); + return; + } console.log(values); props.history.push(`./success?accessType=${values.accessType}&text=${values.accessType === "1" ? values.licensePlateNumber : values.phoneNumber}`); };