|
|
|
@ -94,16 +94,17 @@ |
|
|
|
|
}, |
|
|
|
|
submitte() { |
|
|
|
|
// 设置rules不生效,暂时先循环校验空值 |
|
|
|
|
this.detailForm.forEach(it => { |
|
|
|
|
if (!this.form[it.key]) { |
|
|
|
|
console.log("不完整"); |
|
|
|
|
return uni.showToast({ |
|
|
|
|
title: '请将报名表填写完整', |
|
|
|
|
icon: 'none' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
const toggle = this.form.some(item=>{return toggle === ""}) |
|
|
|
|
// this.detailForm.forEach(it => { |
|
|
|
|
// if (!this.form[it.key]) { |
|
|
|
|
// console.log("不完整"); |
|
|
|
|
// return uni.showToast({ |
|
|
|
|
// title: '请将报名表填写完整', |
|
|
|
|
// icon: 'none' |
|
|
|
|
// }) |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
const toggle = this.detailForm.some(item=>{return !this.form[item.key]}) |
|
|
|
|
console.log(toggle); |
|
|
|
|
if(toggle){ |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '请将报名表填写完整', |
|
|
|
|