fixbug必填

This commit is contained in:
scout 2025-03-04 15:32:17 +08:00
parent a0bb8245f3
commit 3f529bc96e
2 changed files with 15 additions and 0 deletions

View File

@ -59,6 +59,13 @@ const getPageData = async () => {
}
}
const rightClick = async () => {
if (!submitReturnData.value.artworkName) {
showToast({
message: '请输入作品名称',
className: 'particulars-detail-popup'
});
return
}
if (!/^1[3-9]\d{9}$/.test(submitReturnData.value.phoneNum)) {
showToast({
message: '请输入合规的手机号码',

View File

@ -126,6 +126,13 @@ const stepsClick = async (item) => {
case 2:
if (item.type === 'submit') {
if (!artWorkName.value) {
showToast({
message: '请输入作品名称',
className: 'particulars-detail-popup'
});
return;
}
if (!artworkFile.value) {
showToast({
message: '请上传作品',
@ -133,6 +140,7 @@ const stepsClick = async (item) => {
});
return;
}
submitClick()
active.value = 3
router.replace(`/page-forward/upload-id-card/${3}`)