7968d17a by simon

修复首页表单校验

1 parent 9c776bb3
......@@ -409,9 +409,17 @@ export default {
// }
let errorTips = this.errorTips;
if (!(errorTips.e1 && errorTips.e2 && errorTips.e3 && errorTips.e4 && errorTips.e5)) {
if (errorTips.e1 || errorTips.e2 || errorTips.e3 || errorTips.e4 || errorTips.e5) {
} else {
resolve();
}
// if (!(errorTips.e1 && errorTips.e2 && errorTips.e3 && errorTips.e4 && errorTips.e5)) {
// console.log("11111");
// // resolve();
// }else{
// console.log("2222");
// }
});
},
/**
......@@ -423,9 +431,7 @@ export default {
}
// console.log("this.formData:", this.formData);
this.checkSubmit().then((result) => {
let formData = this.formData;
let data = {
sex: formData.title,
name: formData.name,
......