Commit 93a266c5 by yangzhi

fix:erpkey

parent 71100992
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="login_bg"> <div class="login_bg">
<div class="contact-header"> <div class="contact-header">
<div class="header-image"> <div class="header-image">
<img src="../assets/logo.png" height="40px" /> <img src="../assets/logo.png" height="40px"/>
</div> </div>
<!-- <div class="user-info"> <!-- <div class="user-info">
<div class="user-msg"> <div class="user-msg">
...@@ -16,14 +16,24 @@ ...@@ -16,14 +16,24 @@
</div> </div>
<div class="login_content"> <div class="login_content">
<div class="no-authority"> <div class="no-authority">
<div
style="
text-align: center;
color: #fff;
font-size: 50px;
line-height: 100px;
font-family: '微软雅黑';
" v-if="userInfo.erpKey">
<a :href="userInfo.erpKey+'.jomalls.com'" target="_blank" style="text-decoration: none"> {{userInfo.erpKey+'.jomalls.com'}}</a>
</div>
<h1 <h1
style=" style="
text-align: center; text-align: center;
color: #fff; color: #fff;
font-size: 50px; font-size: 50px;
line-height: 100px; line-height: 100px;
font-family: '微软雅黑'; font-family: '微软雅黑';
"> " v-else>
您尚未开通erp权限,请联系您的商务经理 您尚未开通erp权限,请联系您的商务经理
</h1> </h1>
<h2 style=" <h2 style="
...@@ -34,7 +44,7 @@ ...@@ -34,7 +44,7 @@
font-family: '微软雅黑'; font-family: '微软雅黑';
">联系电话:15399065167</h2> ">联系电话:15399065167</h2>
<el-button <el-button
style=" style="
text-align: center; text-align: center;
font-size: 30px; font-size: 30px;
width: 160px; width: 160px;
...@@ -43,8 +53,8 @@ ...@@ -43,8 +53,8 @@
margin-top: 30px; margin-top: 30px;
border-radius: 15px; border-radius: 15px;
" "
type="success" type="success"
@click="goBack"> @click="goBack">
返回首页 返回首页
</el-button> </el-button>
</div> </div>
...@@ -54,7 +64,8 @@ ...@@ -54,7 +64,8 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex' import {mapState} from 'vuex'
export default { export default {
name: 'contact', name: 'contact',
components: {}, components: {},
...@@ -64,12 +75,16 @@ export default { ...@@ -64,12 +75,16 @@ export default {
computed: { computed: {
...mapState(['userInfo']), ...mapState(['userInfo']),
}, },
mounted() {
console.log(this.userInfo,123)
},
methods: { methods: {
goBack() { goBack() {
this.$router.push('/') this.$router.push('/')
}, },
logout() {}, logout() {
},
}, },
} }
</script> </script>
...@@ -80,6 +95,7 @@ export default { ...@@ -80,6 +95,7 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.login_content { .login_content {
flex: 1; flex: 1;
background: url(../assets/contact.jpg) center / cover no-repeat; background: url(../assets/contact.jpg) center / cover no-repeat;
......
...@@ -293,8 +293,8 @@ export default { ...@@ -293,8 +293,8 @@ export default {
password: passwordHash, password: passwordHash,
}).then((res) => { }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
localStorage.setItem('userInfo', res.data) localStorage.setItem('userInfo', JSON.stringify(res.data))
this.setUserInfo(res.data) this.setUserInfo(JSON.parse(JSON.stringify(res.data)))
this.ruleForm = {} this.ruleForm = {}
this.$router.push('/contact') this.$router.push('/contact')
} }
......
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