Commit 66940518 authored by 吴冠's avatar 吴冠

更新

parent c34c1ea6
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<div v-if="code==502"> <div v-if="code==502">
<h1>对不起,你没有通过审核!</h1> <h1>对不起,你没有通过审核!</h1>
<!-- <div class="sty">{{msg}}</div> --> <!-- <div class="sty">{{msg}}</div> -->
<button class=" nextButton" @click="changeInfo">修改注册信息</button>
</div> </div>
</div> </div>
</template> </template>
...@@ -21,11 +22,16 @@ export default { ...@@ -21,11 +22,16 @@ export default {
}, },
data(){ data(){
return{ return{
code:'', code:'502',
msg:"" msg:""
} }
}, },
methods:{ methods:{
//点击修改返回之前页面
changeInfo(){
Cookies.set("auditStatus",1)
this.$router.push("/examine")
}
/* async powerLogin(){ /* async powerLogin(){
const {data,code,msg} = await powerLogin() const {data,code,msg} = await powerLogin()
console.log(data) console.log(data)
...@@ -39,6 +45,17 @@ export default { ...@@ -39,6 +45,17 @@ export default {
</script> </script>
<style scoped> <style scoped>
.nextButton {
width: 3rem;
height: 0.48rem;
background: rgba(4, 134, 254, 1);
border-radius: 0.04rem;
line-height: 0.46rem;
margin-top: 0.45rem;
margin-bottom: 0.8rem;
color: #fff;
cursor: pointer;
}
.home{ .home{
width:100%; width:100%;
height:200px; height:200px;
...@@ -63,7 +80,8 @@ h1{ ...@@ -63,7 +80,8 @@ h1{
margin-bottom: 0.8rem; margin-bottom: 0.8rem;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
position: relative;
left:50%
} }
</style> </style>
\ No newline at end of file
...@@ -667,6 +667,7 @@ import Upload from "~/components/Upload/Upload"; ...@@ -667,6 +667,7 @@ import Upload from "~/components/Upload/Upload";
import imgUpload from "~/components/Upload/imgUpload"; import imgUpload from "~/components/Upload/imgUpload";
import Identify from "~/components/identify"; import Identify from "~/components/identify";
import citySelect from "~/components/citySelect"; import citySelect from "~/components/citySelect";
import Cookies from "js-cookie"
export default { export default {
components: { components: {
Identify, Identify,
...@@ -681,6 +682,10 @@ export default { ...@@ -681,6 +682,10 @@ export default {
this.getCompanyNatureList(); this.getCompanyNatureList();
/* this.powerLogin() */ /* this.powerLogin() */
// this.getCordimg(); // this.getCordimg();
//如果是来自于auditStatus状态的话 说明有错误信息 重新把用户输入的信息自动填充
if(Cookies.get("auditStatus")=="1"){
this.perfectForm = Cookies.get("dataform")
}
}, },
data() { data() {
// 测试省份 // 测试省份
...@@ -766,7 +771,7 @@ export default { ...@@ -766,7 +771,7 @@ export default {
//身份证号校验 //身份证号校验
let validateRealId = (rule, value, callback) => { let validateRealId = (rule, value, callback) => {
const realnameReg = /(^\d{15}$)|(^\d{17}([0-9]|X|x)$)/; const realnameReg = /(^\d{17}([0-9]|X|x)$)/;
if (!realnameReg.test(value)) { if (!realnameReg.test(value)) {
return callback(new Error("您的输入有误,请重新输入!")); return callback(new Error("您的输入有误,请重新输入!"));
} else { } else {
...@@ -1193,6 +1198,8 @@ export default { ...@@ -1193,6 +1198,8 @@ export default {
if (code === 200) { if (code === 200) {
this.$message.success(msg); this.$message.success(msg);
this.active++; this.active++;
//储存步骤二数据
Cookies.set("dataform",this.perfectForm)
}else{ }else{
this.$message.error(error) this.$message.error(error)
} }
......
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