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 {
this.bdYear.toString() +
this.bdMonth.toString() +
this.bdDay.toString(); //组装出生日期
console.log(this.referForm.birthday);
// console.log(this.referForm.birthday);
},
// 获取省份城市
......
......@@ -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) {
data['identity'] = store.state.indexIdentity;
......
......@@ -57,6 +57,7 @@ export default {
color: #1b1419;
line-height: 24px;
margin-bottom: 40px;
text-align: center;
}
}
.content {
......
......@@ -48,6 +48,7 @@ export default {
color: #1b1419;
line-height: 24px;
margin-bottom: 40px;
text-align: center;
}
}
.content {
......
......@@ -110,7 +110,7 @@ export default {
},
methods: {
getStatus(val) {
console.log(val, "index_type");
// console.log(val, "index_type");
this.index_status = val;
this.ToSignUp(this.campindex_type);
},
......
<template>
<div class="signUp">
<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>
<Breadcrumb :statusNum="status" > </Breadcrumb>
<Breadcrumb :statusNum="status"> </Breadcrumb>
</div>
</div>
<Confirm v-if="type == 'examInfo'" @getstatus="statuss"></Confirm>
......@@ -27,8 +42,7 @@ import ReferInfo from "c/index/SignUp/referInfo";
import Pass from "c/index/SignUp/pass";
import Paying from "c/index/SignUp/paying";
import Success from "c/index/SignUp/success";
import { signUpInit } from "r/index/signUp";
import { getWxConfig } from "r/index/pay";
import { signUpInit, signBack } from "r/index/signUp";
export default {
name: "signUp",
......@@ -45,9 +59,15 @@ export default {
return {
type: "examInfo",
status: "", //进度
doubt_code: window.localStorage.getItem("doubt_code"+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),
doubt_code: window.localStorage.getItem(
"doubt_code" + 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: "",
getExamine: "",
isNexts: "",
......@@ -58,7 +78,6 @@ export default {
// console.log(this.$route, "router");
this.statuss();
this.signUpInit();
},
watch: {
......@@ -77,6 +96,21 @@ export default {
},
},
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) {
this.isNexts = val;
// console.log(val, "isNexts");
......@@ -194,7 +228,9 @@ export default {
});
// let code = this.$store.state.indexIdentity;
window.localStorage.setItem(
"sign_up_file_" + window.localStorage.getItem("phone"+ code )+ code,
"sign_up_file_" +
window.localStorage.getItem("phone" + code) +
code,
JSON.stringify(fileList)
); //上传的图片
}
......@@ -205,7 +241,7 @@ export default {
</script>
<style lang="scss" >
@import "a/scss/lastBtn";
.flex {
display: flex;
}
......@@ -219,9 +255,10 @@ export default {
color: #1b1419;
line-height: 24px;
margin-bottom: 40px;
text-align: center;
}
.content {
padding: 50px 28px;
padding: 50px 55px;
}
}
</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