Commit 10cbb1a8 authored by 孟飞's avatar 孟飞

1

parent 021af906
...@@ -114,6 +114,7 @@ function checkCam(code, cb) { ...@@ -114,6 +114,7 @@ function checkCam(code, cb) {
"doubt_check", "doubt_check",
res.data.audit_individual_information res.data.audit_individual_information
); //是否审核个人资料 ); //是否审核个人资料
store.state.info = res.data;
cb && cb(true); cb && cb(true);
}).catch(() => { }).catch(() => {
cb && cb(false); cb && cb(false);
......
...@@ -15,6 +15,7 @@ let state = { ...@@ -15,6 +15,7 @@ let state = {
token: '', token: '',
showDialog: false, showDialog: false,
dialogType: 0, dialogType: 0,
info:{},
isLogin: localStorage.getItem("isLogin") || "0", // 只有1为已登录 isLogin: localStorage.getItem("isLogin") || "0", // 只有1为已登录
}; };
......
<template> <template>
<div class="login-index"> <div class="login-index">
<div class="big-img"> <div class="big-img" @click="toHome">
<img :src="bigImg" /> <img :src="bigImg" />
</div> </div>
<div class="big-right"> <div class="big-right">
...@@ -27,6 +27,12 @@ export default { ...@@ -27,6 +27,12 @@ export default {
this.$emit("getStatus", false); this.$emit("getStatus", false);
}, },
methods: {
toHome() {
let code = localStorage.getItem("index-identity");
this.$router.push("/"+code);
}
},
}; };
</script> </script>
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
/* eslint-disable */ /* eslint-disable */
import Header from "@/components/index/Header.vue"; import Header from "@/components/index/Header.vue";
import Footer from "@/components/index/Footer.vue"; import Footer from "@/components/index/Footer.vue";
import { getCam } from "r/index/login";
export default { export default {
name: "recruit", name: "recruit",
...@@ -58,29 +57,13 @@ export default { ...@@ -58,29 +57,13 @@ export default {
}; };
}, },
created() { created() {
this.getCams(); this.info = this.$store.state.info;
},
mounted() {
// 只刷新一次
if (location.href.indexOf("#reloaded") == -1) {
location.href = location.href + "#reloaded";
location.reload();
}
}, },
methods: { methods: {
toLogin() { toLogin() {
let code = localStorage.getItem("index-identity"); let code = localStorage.getItem("index-identity");
this.$router.push("/login?code="+code); this.$router.push("/login?code="+code);
}, },
getCams() {
getCam(false).then((res) => {
// console.log(res, "res");
if (res.data.code != 200) {
return this.$message.error(res.data.message);
}
this.info = res.data;
});
},
}, },
components: { components: {
Header, Header,
......
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