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

1

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