motify sign

main
hcj 5 months ago
parent b2e67f9a15
commit 726ecb2c74
  1. 21
      pages/index/testtraining/teacherSign.vue

@ -94,16 +94,17 @@
}, },
submitte() { submitte() {
// rules, // rules,
this.detailForm.forEach(it => { // this.detailForm.forEach(it => {
if (!this.form[it.key]) { // if (!this.form[it.key]) {
console.log("不完整"); // console.log("");
return uni.showToast({ // return uni.showToast({
title: '请将报名表填写完整', // title: '',
icon: 'none' // icon: 'none'
}) // })
} // }
}) // })
const toggle = this.form.some(item=>{return toggle === ""}) const toggle = this.detailForm.some(item=>{return !this.form[item.key]})
console.log(toggle);
if(toggle){ if(toggle){
uni.showToast({ uni.showToast({
title: '请将报名表填写完整', title: '请将报名表填写完整',

Loading…
Cancel
Save