This commit is contained in:
刘亚磊 2022-07-18 18:23:40 +08:00
commit 27eb9d064c
1 changed files with 91 additions and 23 deletions

View File

@ -162,6 +162,7 @@
morePer: true, morePer: true,
perNumber: 1, perNumber: 1,
fileList3: [], fileList3: [],
ok: true,
} }
}, },
onShow() { onShow() {
@ -289,6 +290,72 @@
}) })
}, },
next() { next() {
this.ok = true
if(this.name == ''){
uni.showToast({
title: '请输入名称',
icon: "none",
});
this.ok = false
return
}
if(this.typeId == ''){
uni.showToast({
title: '请选择类型',
icon: "none",
});
this.ok = false
return
}
if(this.text1 == ''){
uni.showToast({
title: '请输入需求清单',
icon: "none",
});
this.ok = false
return
}
if(this.text2 == ''){
uni.showToast({
title: '请输入具体内容',
icon: "none",
});
this.ok = false
return
}
if(this.eTime == ''){
uni.showToast({
title: '请选择截止时间',
icon: "none",
});
this.ok = false
return
}
if(this.wTime == ''){
uni.showToast({
title: '请请选择活动时间',
icon: "none",
});
this.ok = false
return
}
if(this.userTypeValue == ''){
uni.showToast({
title: '请选择可接单用户',
icon: "none",
});
this.ok = false
return
}
if(this.fileList3.length == 0){
uni.showToast({
title: '请上传附件',
icon: "none",
});
this.ok = false
return
}
if(this.ok){
let image = [] let image = []
this.fileList3.forEach(function(item) { this.fileList3.forEach(function(item) {
image.push(item.url) image.push(item.url)
@ -316,6 +383,7 @@
}); });
}) })
} }
}
} }
} }