Commit 9792cb6a authored by zL's avatar zL

bug修复

parent 24bf7bf9
...@@ -31,6 +31,8 @@ Vue.use(Radio) ...@@ -31,6 +31,8 @@ Vue.use(Radio)
Vue.use(RadioGroup) Vue.use(RadioGroup)
Vue.use(BreadcrumbItem) Vue.use(BreadcrumbItem)
Vue.use(FormItem) Vue.use(FormItem)
// Vue.use(Loading)
Vue.prototype.$loading = Loading; Vue.prototype.$loading = Loading;
// Loading
Vue.prototype.$message = Message; Vue.prototype.$message = Message;
Vue.prototype.$confirm = MessageBox //暂时先用着 Vue.prototype.$confirm = MessageBox //暂时先用着
\ No newline at end of file
...@@ -85,10 +85,10 @@ ...@@ -85,10 +85,10 @@
</template> </template>
<script> <script>
import Vue from "vue";
import CodeBtn from "./VerCode.vue"; import CodeBtn from "./VerCode.vue";
import { Loading } from "element-ui";
import { smsPerson, personVerify, get } from "./Api.service"; import { smsPerson, personVerify, get } from "./Api.service";
export default Vue.extend({ export default {
components: { components: {
CodeBtn, CodeBtn,
}, },
...@@ -158,7 +158,7 @@ export default Vue.extend({ ...@@ -158,7 +158,7 @@ export default Vue.extend({
this.verstatus = true; this.verstatus = true;
this.countDown(); this.countDown();
} else if (date.data.status === 1) { } else if (date.data.status === 1) {
this.loading = this.$loading({ this.loading = this.$loading.service({
lock: true, lock: true,
text: "认证中", text: "认证中",
spinner: "el-icon-loading", spinner: "el-icon-loading",
...@@ -192,6 +192,7 @@ export default Vue.extend({ ...@@ -192,6 +192,7 @@ export default Vue.extend({
JSON.parse(String(sessionStorage.getItem("user"))).id JSON.parse(String(sessionStorage.getItem("user"))).id
); );
if (res) { if (res) {
// 个人认证状态(0:未认证 1:认证中 2:认证成功 3:认证失败
if (res.data.status === 2) { if (res.data.status === 2) {
clearInterval(this.intervalHandle); clearInterval(this.intervalHandle);
this.$message({ this.$message({
...@@ -199,6 +200,14 @@ export default Vue.extend({ ...@@ -199,6 +200,14 @@ export default Vue.extend({
type: "success", type: "success",
}); });
this.loading.close(); this.loading.close();
this.countDown();
} else if (res.data.status === 3) {
clearInterval(this.intervalHandle);
this.$message({
message: res.data.message,
type: "warning",
});
this.loading.close();
this.$router.push({ this.$router.push({
path: "/userCenter", path: "/userCenter",
}); });
...@@ -238,10 +247,10 @@ export default Vue.extend({ ...@@ -238,10 +247,10 @@ export default Vue.extend({
// this.$notify.warning("手机号格式不正确!"); // this.$notify.warning("手机号格式不正确!");
}, },
}, },
}); };
</script> </script>
<style scoped> <style scoped lang="less">
.person-verify { .person-verify {
padding: 16px; padding: 16px;
min-height: calc(100vh - 95px); min-height: calc(100vh - 95px);
...@@ -286,15 +295,28 @@ export default Vue.extend({ ...@@ -286,15 +295,28 @@ export default Vue.extend({
min-height: calc(100vh - 95px); min-height: calc(100vh - 95px);
} }
.success-box { .success-box {
margin-top: -200px;
width: 250px;
text-align: center; text-align: center;
img {
padding-bottom: 28px;
}
p {
height: 17px;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #797d84;
padding-top: 9px;
padding-bottom: 19px;
line-height: 17px;
}
} }
h2 { h2 {
font-size: 18px; font-size: 18px;
font-family: PingFangSC-Medium; height: 25px;
font-weight: 600; font-family: PingFangSC-Medium, PingFang SC;
color: rgba(53, 53, 53, 1); font-weight: 500;
color: #353535;
line-height: 25px;
} }
</style> </style>
<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