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

fix: 修正

parent 05377397
...@@ -206,12 +206,16 @@ export default { ...@@ -206,12 +206,16 @@ export default {
this.popupShow = true; this.popupShow = true;
}, },
onSubmit() { onSubmit() {
if (localStorage.get("mongoToken")) {
this.goInsureState = true;
this.$refs.insureForm.getFamilyList();
} else {
const { selfPhone, selfCode } = this.formData; const { selfPhone, selfCode } = this.formData;
if (localStorage.get("mongoToken")) return;
this.login(selfPhone, selfCode).then(() => { this.login(selfPhone, selfCode).then(() => {
this.goInsureState = true; this.goInsureState = true;
this.$refs.insureForm.getFamilyList(); this.$refs.insureForm.getFamilyList();
}); });
}
// sessionStorage.setItem( // sessionStorage.setItem(
// "policyFormData", // "policyFormData",
// JSON.stringify(Object.assign(this.formData, { productNo: this.goodId })) // JSON.stringify(Object.assign(this.formData, { productNo: this.goodId }))
......
...@@ -215,12 +215,16 @@ export default { ...@@ -215,12 +215,16 @@ export default {
this.popupShow = true; this.popupShow = true;
}, },
onSubmit() { onSubmit() {
if (localStorage.get("mongoToken")) {
this.goInsureState = true;
this.$refs.insureForm.getFamilyList();
} else {
const { selfPhone, selfCode } = this.formData; const { selfPhone, selfCode } = this.formData;
if (localStorage.get("mongoToken")) return;
this.login(selfPhone, selfCode).then(() => { this.login(selfPhone, selfCode).then(() => {
this.goInsureState = true; this.goInsureState = true;
this.$refs.insureForm.getFamilyList(); this.$refs.insureForm.getFamilyList();
}); });
}
}, },
onFailed(errorInfo) { onFailed(errorInfo) {
const { errors } = errorInfo; const { errors } = errorInfo;
......
...@@ -203,12 +203,16 @@ export default { ...@@ -203,12 +203,16 @@ export default {
this.popupShow = true; this.popupShow = true;
}, },
onSubmit() { onSubmit() {
if (localStorage.get("mongoToken")) {
this.goInsureState = true;
this.$refs.insureForm.getFamilyList();
} else {
const { selfPhone, selfCode } = this.formData; const { selfPhone, selfCode } = this.formData;
if (localStorage.get("mongoToken")) return;
this.login(selfPhone, selfCode).then(() => { this.login(selfPhone, selfCode).then(() => {
this.goInsureState = true; this.goInsureState = true;
this.$refs.insureForm.getFamilyList(); this.$refs.insureForm.getFamilyList();
}); });
}
// sessionStorage.setItem("policyFormData", JSON.stringify(this.formData)); // sessionStorage.setItem("policyFormData", JSON.stringify(this.formData));
}, },
onFailed(errorInfo) { 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