Commit 6460124c authored by 郭志伟's avatar 郭志伟

fix: 修正

parent 05377397
......@@ -206,12 +206,16 @@ export default {
this.popupShow = true;
},
onSubmit() {
if (localStorage.get("mongoToken")) {
this.goInsureState = true;
this.$refs.insureForm.getFamilyList();
} else {
const { selfPhone, selfCode } = this.formData;
if (localStorage.get("mongoToken")) return;
this.login(selfPhone, selfCode).then(() => {
this.goInsureState = true;
this.$refs.insureForm.getFamilyList();
});
}
// sessionStorage.setItem(
// "policyFormData",
// JSON.stringify(Object.assign(this.formData, { productNo: this.goodId }))
......
......@@ -215,12 +215,16 @@ export default {
this.popupShow = true;
},
onSubmit() {
if (localStorage.get("mongoToken")) {
this.goInsureState = true;
this.$refs.insureForm.getFamilyList();
} else {
const { selfPhone, selfCode } = this.formData;
if (localStorage.get("mongoToken")) return;
this.login(selfPhone, selfCode).then(() => {
this.goInsureState = true;
this.$refs.insureForm.getFamilyList();
});
}
},
onFailed(errorInfo) {
const { errors } = errorInfo;
......
......@@ -203,12 +203,16 @@ export default {
this.popupShow = true;
},
onSubmit() {
if (localStorage.get("mongoToken")) {
this.goInsureState = true;
this.$refs.insureForm.getFamilyList();
} else {
const { selfPhone, selfCode } = this.formData;
if (localStorage.get("mongoToken")) return;
this.login(selfPhone, selfCode).then(() => {
this.goInsureState = true;
this.$refs.insureForm.getFamilyList();
});
}
// sessionStorage.setItem("policyFormData", JSON.stringify(this.formData));
},
onFailed(errorInfo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment