Commit c34c1ea6 authored by 吴冠's avatar 吴冠

验证

parent 45995ba7
<template>
<div class="home">
<div v-if="code==501">
<h1>你的公司还在审核,请耐心等待!</h1>
</div>
<div v-if="code==502">
<h1>对不起,你没有通过审核!</h1>
<!-- <div class="sty">{{msg}}</div> -->
</div>
</div>
</template>
<script>
import {powerLogin} from '~/api/bid/login';
import Cookies from 'js-cookie'
export default {
mounted(){
let status = Cookies.get("code")
this.code = status
/* this.powerLogin() */
},
data(){
return{
code:'',
msg:""
}
},
methods:{
/* async powerLogin(){
const {data,code,msg} = await powerLogin()
console.log(data)
this.code = code
this.msg = msg
},
backStage(){
} */
}
}
</script>
<style scoped>
.home{
width:100%;
height:200px;
}
h1{
text-align: center;
margin-top:100px
}
.sty{
text-align: center;
margin-top:30px
}
.Button {
width: 2rem;
height: 0.48rem;
background: rgba(4, 134, 254, 1);
border-radius: 0.04rem;
line-height: 0.46rem;
position: absolute;
left:45%;
margin-top: 0.45rem;
margin-bottom: 0.8rem;
color: #fff;
cursor: pointer;
}
</style>
\ No newline at end of file
......@@ -617,7 +617,7 @@
温馨提示 <br />
<br />
1.您可以登录系统查看审核进度 <br />
2.若超过一天未审核,请致电400-400-400咨询 <br />
2.若超过一天未审核,请致电13810057696咨询 <br />
</h5>
</div>
<div v-show="result == 1">
......@@ -641,9 +641,14 @@
v-if="active == 1">
提交></button>
</div>
<button @click="back" class="t2 nextButton" v-if="active == 2">
回到首页
</button>
<div class="flex">
<!-- <button @click="watchStatus" class="t2 nextButton" v-if="active == 2" style="margin-right:20px">
查看审核状态
</button> -->
<button @click="back" class="t2 nextButton" v-if="active == 2">
回到首页
</button>
</div>
</div>
</template>
......@@ -657,6 +662,7 @@ import {
checkAccount,
} from "~/api/common/list";
import { register } from "~/api/bid/login";
import {powerLogin} from '~/api/bid/login';
import Upload from "~/components/Upload/Upload";
import imgUpload from "~/components/Upload/imgUpload";
import Identify from "~/components/identify";
......@@ -673,6 +679,7 @@ export default {
this.flag = !this.flag;
this.getIndustryList();
this.getCompanyNatureList();
/* this.powerLogin() */
// this.getCordimg();
},
data() {
......@@ -777,7 +784,7 @@ export default {
};
//结算账号校验
let validateAccount = (rule, value, callback) => {
const realnameReg = /^([1-9]{1})(\d{14}|\d{17})$/;
const realnameReg = /^\d{12,30}$/;
if (!realnameReg.test(value)) {
return callback(new Error("您的输入有误,请重新输入!"));
} else {
......@@ -800,7 +807,7 @@ export default {
fileList: [],
flag: true, //该值变化,就会触发刷新
code: "", //刷新后的验证码
active: 1,
active: 0,
checked: true,
adminform: {
name: "",
......@@ -1077,6 +1084,9 @@ export default {
};
},
methods: {
/* watchStatus(){
this.$router.push("auditStatus")
}, */
prev(){
this.active--
},
......
......@@ -161,6 +161,16 @@
type: 'error'
});
}
//501审核中
if(code ==501){
this.$router.push("auditStatus")
cookies.set("code",501)
}
//502审核未通过
if(code ==502){
this.$router.push("auditStatus")
cookies.set("code",502)
}
}
} catch (err) {
console.log(err);
......
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