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,
......@@ -496,7 +502,7 @@ export default {
// 读取缓存 其实也没啥用 图大的话还是慢
let tempDataList = JSON.parse(sessionStorage.getItem("_pingan_index_datalist"));
let tempBannerList = JSON.parse(sessionStorage.getItem("_pingan_index_bannerlist"));
if (tempDataList) {
this.dataList = tempDataList;
}
......