Commit ca916ded authored by ‘yangmengxue’'s avatar ‘yangmengxue’

审核回显

parent 41ed7570
......@@ -137,7 +137,7 @@
window.localStorage.removeItem("bank_first" + code);
window.localStorage.removeItem("bank_idcard" + code);
window.localStorage.removeItem(
"bank_info" + window.localStorage.getItem("index-phone-all") + code
"sign_up_payfile_" + window.localStorage.getItem("index-phone-all") + code
);
this.isLogin = false;
this.reload()
......
......@@ -5,15 +5,18 @@
<!-- <img src="@/assets/img/signUp/icon-shenhe.png" alt="" /> -->
<i class="icon-icon"></i>
</div>
<!-- {{!this.examine_status == 1}} -->
<div v-if="!this.examine_status == 1||!this.examine_status == 2">同学你好,你的报名资料已提交</div>
<div v-if="!this.examine_status == 1||!this.examine_status == 2">
<div v-if="this.examine_status != 1 || !this.examine_status != 2">
同学你好,你的报名资料已提交
</div>
<div v-if="this.examine_status != 1 || this.examine_status != 2">
请等待工作人员审核,审核结果将于24小时内发布,请留意网站。
</div>
<div v-if="this.examine_status == 1">
同学你好,你的材料已经通过审核,请点击“下一步”完成报名
</div>
<div v-if="this.examine_status == 2">同学你好,你的申请材料未能通过审核。原因是:{{ this.examine_reason }}</div>
<div v-if="this.examine_status == 2">
同学你好,你的申请材料未能通过审核。原因是:{{ this.examine_reason }}
</div>
<div class="btn" v-show="this.examine_status == 2">
<el-button @click="Lasting()">上一步</el-button>
</div>
......@@ -25,26 +28,25 @@
</template>
<script>
/* eslint-disable */
/* eslint-disable */
import {signBack, signUpInit} from "r/index/signUp";
import { signBack, signUpInit } from "r/index/signUp";
export default {
export default {
name: "Pass",
data() {
return {
examine_status: window.localStorage.getItem(
"examine_status" + this.$store.state.indexIdentity
),
examine_reason: "",
examine_reason: window.localStorage.getItem(
"examine_reason" + code,
res.data.examine_reason
),
signBackStatus: "",
status_val: "",
status: "",
};
},
created() {
this.signUpInit(this.status_val);
},
created() {},
watch: {},
methods: {
......@@ -61,120 +63,33 @@
paying() {
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>
<style lang="scss" scoped>
@import "a/scss/btn";
@import "a/scss/index";
@import "a/style";
@import "a/scss/btn";
@import "a/scss/index";
@import "a/style";
@font-face {
@font-face {
font-family: "icomoon";
src: url("../../../assets/fonts/icomoon.eot?dcunb6");
src: url("../../../assets/fonts/icomoon.eot?dcunb6#iefix") format("embedded-opentype"),
src: url("../../../assets/fonts/icomoon.eot?dcunb6#iefix")
format("embedded-opentype"),
url("../../../assets/fonts/icomoon.ttf?dcunb6") format("truetype"),
url("../../../assets/fonts/icomoon.woff?dcunb6") format("woff"),
url("../../../assets/fonts/icomoon.svg?dcunb6#icomoon") format("svg");
font-weight: normal;
font-style: normal;
font-display: block;
}
}
.btn {
.btn {
padding-bottom: 0 !important;
}
}
.pass {
.pass {
padding: 0 56px 65px 56px;
.p_content {
......@@ -199,5 +114,5 @@
margin: 0 0 50px 0;
}
}
}
}
</style>
......@@ -250,6 +250,7 @@
});
},
is_nextevent(val) {
console.log('is_nextevent')
this.isNexts = val;
this.signUpInit(this.status_val);
},
......@@ -260,6 +261,7 @@
},
// status=4,跳到审核页面;status=3时,根据doubt_check做判断
signUpInit(status_val = null) {
console.log('signUpInit')
signUpInit({}).then((res) => {
if (res.data.code != 200) {
return this.$message.error(res.data.msg);
......
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