Commit b5fbbd00 authored by 杨梦雪's avatar 杨梦雪

11

parent c11de485
...@@ -6,15 +6,13 @@ ...@@ -6,15 +6,13 @@
<i class="icon-icon"></i> <i class="icon-icon"></i>
</div> </div>
<div>同学你好,你的报名资料已提交</div> <div>同学你好,你的报名资料已提交</div>
<div> <div>请等待工作人员审核,审核结果将于1-3个工作日发布,请留意网站</div>
请等待工作人员审核,审核结果将于1-3个工作日发布,请留意网站
</div>
<div v-if="this.examine_status == 1">审核已通过</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 <div class="btn" v-show="this.examine_status == 2">
class="btn" <el-button @click="Lasting()">上一步 </el-button>
v-show="this.examine_status == 1 || this.examine_status == 2" </div>
> <div class="btn" v-show="this.examine_status == 1">
<el-button @click="paying()">下一步 </el-button> <el-button @click="paying()">下一步 </el-button>
</div> </div>
</div> </div>
...@@ -23,7 +21,8 @@ ...@@ -23,7 +21,8 @@
<script> <script>
/* eslint-disable */ /* eslint-disable */
import { signUpInit } from "r/index/signUp";
import { signUpInit, signBack } from "r/index/signUp";
export default { export default {
name: "Pass", name: "Pass",
data() { data() {
...@@ -34,20 +33,34 @@ export default { ...@@ -34,20 +33,34 @@ export default {
examine_reason: window.localStorage.getItem( examine_reason: window.localStorage.getItem(
"examine_reason" + this.$store.state.indexIdentity "examine_reason" + this.$store.state.indexIdentity
), ),
signBackStatus: "",
status_val: "",
}; };
}, },
created() { created() {
this.signUpInit(); this.signUpInit(this.status_val);
}, },
watch: {}, watch: {},
methods: { methods: {
Lasting() {
signBack({}).then((res) => {
console.log(res, "signBack");
if (res.data.code != 200) {
return this.$message.error(res.data.message);
}
// console.log(res.data.status, "signBack.status");
this.signBackStatus = res.data.status;
this.$emit("getstatus", res.data.status);
this.$message.success(res.data.message);
});
},
paying() { paying() {
this.$emit("is_next", 1); this.$emit("is_next", 1);
// console.log(is_next); // console.log(is_next);
}, },
signUpInit(status_val) { signUpInit(status_val) {
// console.log(status_val, "11111"); console.log(status_val, "11111");
// console.log(isNexts, "2222"); // console.log(isNexts, "2222");
signUpInit({}).then((res) => { signUpInit({}).then((res) => {
...@@ -81,14 +94,14 @@ export default { ...@@ -81,14 +94,14 @@ export default {
this.status = 1; this.status = 1;
} }
} else if (this.status == 2) { } else if (this.status == 2) {
// console.log(this.doubt_info, "doubt_info"); console.log(this.doubt_info, "doubt_info");
// 是否填写个人资料 // 是否填写个人资料
if (this.doubt_info == 0) { if (this.doubt_info == 0) {
this.type = "check"; this.type = "check";
this.status = 3; this.status = 3;
} else { } else {
this.type = "referInfo"; this.type = "referInfo";
// this.status = 2; this.status = 2;
} }
} else if (this.status == 3) { } else if (this.status == 3) {
// 是否审核个人资料 // 是否审核个人资料
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
@getstatus="statuss" @getstatus="statuss"
></Invitation> ></Invitation>
<ReferInfo v-else-if="type == 'referInfo'" @getstatus="statuss"></ReferInfo> <ReferInfo v-else-if="type == 'referInfo'" @getstatus="statuss"></ReferInfo>
<Pass v-else-if="type == 'check'" @is_next="is_nextevent"></Pass> <Pass v-else-if="type == 'check'" @is_next="is_nextevent" @getstatus="statuss"></Pass>
<Paying v-else-if="type == 'pay'" @getstatus="statuss"></Paying> <Paying v-else-if="type == 'pay'" @getstatus="statuss"></Paying>
<Success v-else-if="type == 'success'" @getstatus="statuss"></Success> <Success v-else-if="type == 'success'" @getstatus="statuss"></Success>
</div> </div>
...@@ -71,6 +71,7 @@ export default { ...@@ -71,6 +71,7 @@ export default {
status_val: "", status_val: "",
getExamine: "", getExamine: "",
isNexts: "", isNexts: "",
signBackStatus: "",
}; };
}, },
created() { created() {
...@@ -100,14 +101,18 @@ export default { ...@@ -100,14 +101,18 @@ export default {
lasStep() { lasStep() {
signBack({}).then((res) => { signBack({}).then((res) => {
console.log(res, "signBack"); console.log(res, "signBack");
// return
if (res.data.code != 200) { if (res.data.code != 200) {
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
} }
// return console.log(res.data.status, "signBack.status");
console.log(res.data.status,'signBack.status') this.signBackStatus = res.data.status;
// return this.signUpInit(this.signBackStatus);
this.signUpInit(res.data.status); // if (this.signBackStatus == 2) {
// return this.signUpInit(1);
// } else {
// this.signUpInit(this.signBackStatus);
// }
this.$message.success(res.data.message); this.$message.success(res.data.message);
}); });
}, },
...@@ -125,6 +130,7 @@ export default { ...@@ -125,6 +130,7 @@ export default {
}, },
// status=4,跳到审核页面;status=3时,根据doubt_check做判断 // status=4,跳到审核页面;status=3时,根据doubt_check做判断
signUpInit(status_val) { signUpInit(status_val) {
console.log(111111);
// console.log(status_val, "11111"); // console.log(status_val, "11111");
// console.log(isNexts, "2222"); // console.log(isNexts, "2222");
signUpInit({}).then((res) => { signUpInit({}).then((res) => {
...@@ -165,7 +171,7 @@ export default { ...@@ -165,7 +171,7 @@ export default {
this.status = 3; this.status = 3;
} else { } else {
this.type = "referInfo"; this.type = "referInfo";
// this.status = 2; this.status = 2;
} }
} else if (this.status == 3) { } else if (this.status == 3) {
// 是否审核个人资料 // 是否审核个人资料
......
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