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

返回上一步

parent 4b439e0f
.lastBtn {
// text-align: center;
.el-button {
width: 80px;
height: 30px;
background: var(--color);
border-radius: 4px;
border-color: var(--color);
opacity: 0.8;
line-height:30px;
// text-align: center;
color: #fff;
font-size: 14px;
padding: 0;
}
}
\ No newline at end of file
...@@ -657,7 +657,7 @@ export default { ...@@ -657,7 +657,7 @@ export default {
this.bdYear.toString() + this.bdYear.toString() +
this.bdMonth.toString() + this.bdMonth.toString() +
this.bdDay.toString(); //组装出生日期 this.bdDay.toString(); //组装出生日期
console.log(this.referForm.birthday); // console.log(this.referForm.birthday);
}, },
// 获取省份城市 // 获取省份城市
......
...@@ -14,6 +14,16 @@ export function signUpInit(data) { ...@@ -14,6 +14,16 @@ export function signUpInit(data) {
}) })
} }
// 状态回退
export function signBack(data) {
data['identity'] = store.state.indexIdentity;
return request({
method: 'post',
url: '/web/signUp/signBack',
params: data
})
}
// 确认报名须知 // 确认报名须知
export function setSignShould(data) { export function setSignShould(data) {
data['identity'] = store.state.indexIdentity; data['identity'] = store.state.indexIdentity;
......
...@@ -57,6 +57,7 @@ export default { ...@@ -57,6 +57,7 @@ export default {
color: #1b1419; color: #1b1419;
line-height: 24px; line-height: 24px;
margin-bottom: 40px; margin-bottom: 40px;
text-align: center;
} }
} }
.content { .content {
......
...@@ -48,6 +48,7 @@ export default { ...@@ -48,6 +48,7 @@ export default {
color: #1b1419; color: #1b1419;
line-height: 24px; line-height: 24px;
margin-bottom: 40px; margin-bottom: 40px;
text-align: center;
} }
} }
.content { .content {
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
}, },
methods: { methods: {
getStatus(val) { getStatus(val) {
console.log(val, "index_type"); // console.log(val, "index_type");
this.index_status = val; this.index_status = val;
this.ToSignUp(this.campindex_type); this.ToSignUp(this.campindex_type);
}, },
......
<template> <template>
<div class="signUp"> <div class="signUp">
<div class="content"> <div class="content">
<div class="signUp_titile">营地报名</div> <div class="">
<div
class="lastBtn"
v-show="
this.status == 2 ||
this.status == 3 ||
this.status == 4 ||
this.status == 5
"
>
<el-button @click="lasStep()">上一步 </el-button>
</div>
<div class="signUp_titile">营地报名</div>
</div>
<div> <div>
<Breadcrumb :statusNum="status" > </Breadcrumb> <Breadcrumb :statusNum="status"> </Breadcrumb>
</div> </div>
</div> </div>
<Confirm v-if="type == 'examInfo'" @getstatus="statuss"></Confirm> <Confirm v-if="type == 'examInfo'" @getstatus="statuss"></Confirm>
...@@ -27,8 +42,7 @@ import ReferInfo from "c/index/SignUp/referInfo"; ...@@ -27,8 +42,7 @@ import ReferInfo from "c/index/SignUp/referInfo";
import Pass from "c/index/SignUp/pass"; import Pass from "c/index/SignUp/pass";
import Paying from "c/index/SignUp/paying"; import Paying from "c/index/SignUp/paying";
import Success from "c/index/SignUp/success"; import Success from "c/index/SignUp/success";
import { signUpInit } from "r/index/signUp"; import { signUpInit, signBack } from "r/index/signUp";
import { getWxConfig } from "r/index/pay";
export default { export default {
name: "signUp", name: "signUp",
...@@ -45,9 +59,15 @@ export default { ...@@ -45,9 +59,15 @@ export default {
return { return {
type: "examInfo", type: "examInfo",
status: "", //进度 status: "", //进度
doubt_code: window.localStorage.getItem("doubt_code"+this.$store.state.indexIdentity), doubt_code: window.localStorage.getItem(
doubt_info: window.localStorage.getItem("doubt_info"+this.$store.state.indexIdentity), "doubt_code" + this.$store.state.indexIdentity
doubt_check: window.localStorage.getItem("doubt_check"+this.$store.state.indexIdentity), ),
doubt_info: window.localStorage.getItem(
"doubt_info" + this.$store.state.indexIdentity
),
doubt_check: window.localStorage.getItem(
"doubt_check" + this.$store.state.indexIdentity
),
status_val: "", status_val: "",
getExamine: "", getExamine: "",
isNexts: "", isNexts: "",
...@@ -58,7 +78,6 @@ export default { ...@@ -58,7 +78,6 @@ export default {
// console.log(this.$route, "router"); // console.log(this.$route, "router");
this.statuss(); this.statuss();
this.signUpInit(); this.signUpInit();
}, },
watch: { watch: {
...@@ -77,6 +96,21 @@ export default { ...@@ -77,6 +96,21 @@ export default {
}, },
}, },
methods: { methods: {
// 上一步回退
lasStep() {
signBack({}).then((res) => {
console.log(res, "signBack");
// return
if (res.data.code != 200) {
return this.$message.error(res.data.message);
}
// return
console.log(res.data.status,'signBack.status')
// return
this.signUpInit(res.data.status);
this.$message.success(res.data.message);
});
},
is_nextevent(val) { is_nextevent(val) {
this.isNexts = val; this.isNexts = val;
// console.log(val, "isNexts"); // console.log(val, "isNexts");
...@@ -194,7 +228,9 @@ export default { ...@@ -194,7 +228,9 @@ export default {
}); });
// let code = this.$store.state.indexIdentity; // let code = this.$store.state.indexIdentity;
window.localStorage.setItem( window.localStorage.setItem(
"sign_up_file_" + window.localStorage.getItem("phone"+ code )+ code, "sign_up_file_" +
window.localStorage.getItem("phone" + code) +
code,
JSON.stringify(fileList) JSON.stringify(fileList)
); //上传的图片 ); //上传的图片
} }
...@@ -205,7 +241,7 @@ export default { ...@@ -205,7 +241,7 @@ export default {
</script> </script>
<style lang="scss" > <style lang="scss" >
@import "a/scss/lastBtn";
.flex { .flex {
display: flex; display: flex;
} }
...@@ -219,9 +255,10 @@ export default { ...@@ -219,9 +255,10 @@ export default {
color: #1b1419; color: #1b1419;
line-height: 24px; line-height: 24px;
margin-bottom: 40px; margin-bottom: 40px;
text-align: center;
} }
.content { .content {
padding: 50px 28px; padding: 50px 55px;
} }
} }
</style> </style>
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