Commit 5655ed7c authored by ‘yangmengxue’'s avatar ‘yangmengxue’

11

parent 13d8ff18
...@@ -36,14 +36,14 @@ ...@@ -36,14 +36,14 @@
examine_status: window.localStorage.getItem( examine_status: window.localStorage.getItem(
"examine_status" + this.$store.state.indexIdentity "examine_status" + this.$store.state.indexIdentity
), ),
examine_reason: "", examine_reason: window.localStorage.getItem(
"examine_reason" + this.$store.state.indexIdentity
),
signBackStatus: "", signBackStatus: "",
status_val: "",
status: "",
}; };
}, },
created() { created() {
this.signUpInit(this.status_val);
}, },
watch: {}, watch: {},
...@@ -61,94 +61,7 @@ ...@@ -61,94 +61,7 @@
paying() { paying() {
this.$emit("is_next", 1); this.$emit("is_next", 1);
}, },
signUpInit(status_val) {
signUpInit({}).then((res) => {
console.log(res, "signUpInit");
if (res.data.code != 200) {
if (res.data.code == 400001) {
this.status = 6;
this.type = "success";
}
return this.$message.error(res.data.msg);
}
this.status = res.data.status;
// 点击下一步传值给status,更新
if (status_val != null) {
this.status = status_val;
} else {
this.status = res.data.status;
}
// doubt_code,doubt_info,doubt_check。0为不填写,1为填写
if (this.status == 0) {
this.type = "examInfo";
} else if (this.status == 1) {
// 是否填写邀请码
if (this.doubt_code == 0) {
this.type = "referInfo";
this.status = 2;
} else {
this.type = "invitation";
this.status = 1;
}
} else if (this.status == 2) {
// 是否填写个人资料
if (this.doubt_info == 0) {
this.type = "check";
this.status = 3;
} else {
this.type = "referInfo";
this.status = 2;
}
} else if (this.status == 3) {
// 是否审核个人资料
if (this.doubt_check == 0) {
this.type = "pay";
this.status = 4;
} else {
this.type = "check";
this.status = 3;
}
} else if (this.status == 4) {
this.type = "check";
this.status = 3;
if (this.isNexts == 1) {
if (res.data.examine_status == 1) {
this.type = "pay";
this.status = 4;
} else if (res.data.examine_status == 2) {
this.type = "referInfo";
this.status = 2;
}
}
} else if (this.status == 5) {
this.type = "pay";
} else if (this.status == 6) {
this.type = "success";
}
this.$emit("getStatus", this.type);
const code = this.$store.state.indexIdentity;
//订单支付金额
window.localStorage.setItem("has_amount" + code, res.data.has_amount);
window.localStorage.setItem("campsite_id" + code, res.data.campsite_id);
window.localStorage.setItem("order_no" + code, res.data.order_no);
this.examine_status = res.data.examine_status;
window.localStorage.setItem("examine_status" + code, res.data.examine_status); //返回错误原因
// window.localStorage.setItem("examine_reason" + code, res.data.examine_reason); //资料审核状态
this.examine_reason = res.data.examine_reason
const aPath = res.data.achievement_path;
if (aPath) {
let arr = aPath.split(",");
let fileList = [];
fileList = arr.map((item) => {
let obj = {
url: item,
};
return obj;
});
window.localStorage.setItem("sign_up_file_" + window.localStorage.getItem("index-phone-all"), JSON.stringify(fileList)); //上传的图片
}
});
},
}, },
}; };
</script> </script>
......
...@@ -315,7 +315,7 @@ export default { ...@@ -315,7 +315,7 @@ export default {
this.isBank_infoFile == true && this.isBank_infoFile == true &&
JSON.parse(bank_infoFile).length > 0 JSON.parse(bank_infoFile).length > 0
) { ) {
console.log(JSON.parse(bank_infoFile)); // console.log(JSON.parse(bank_infoFile));
this.fileList = JSON.parse(bank_infoFile); this.fileList = JSON.parse(bank_infoFile);
} }
}, },
......
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