Commit ebd12b8c by qinjianhui
parents 537432fe fa2fa877
......@@ -2,7 +2,7 @@
<div class="login_bg">
<div class="contact-header">
<div class="header-image">
<img src="../assets/logo.png" height="40px" />
<img src="../assets/logo.png" height="40px"/>
</div>
<!-- <div class="user-info">
<div class="user-msg">
......@@ -16,14 +16,24 @@
</div>
<div class="login_content">
<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="'https://'+userInfo.erpKey+'.jomalls.com'" target="_blank" style="text-decoration: none"> {{userInfo.erpKey+'.jomalls.com'}}</a>
</div>
<h1
style="
style="
text-align: center;
color: #fff;
font-size: 50px;
line-height: 100px;
font-family: '微软雅黑';
">
" v-else>
您尚未开通erp权限,请联系您的商务经理
</h1>
<h2
......@@ -47,7 +57,7 @@
邮箱:nikki@jomalls.com
</h2>
<el-button
style="
style="
text-align: center;
font-size: 30px;
width: 160px;
......@@ -56,8 +66,8 @@
margin-top: 30px;
border-radius: 15px;
"
type="success"
@click="goBack">
type="success"
@click="goBack">
返回首页
</el-button>
</div>
......@@ -67,15 +77,18 @@
</template>
<script>
import { mapState } from 'vuex'
// import {mapState} from 'vuex'
export default {
name: 'contact',
components: {},
data() {
return {}
return {
userInfo:JSON.parse(localStorage.getItem('userInfo'))
}
},
computed: {
...mapState(['userInfo']),
// ...mapState(['userInfo']),
},
methods: {
goBack() {
......@@ -92,6 +105,7 @@ export default {
display: flex;
flex-direction: column;
}
.login_content {
flex: 1;
background: url(../assets/contact.jpg) center / cover no-repeat;
......
......@@ -293,8 +293,8 @@ export default {
password: passwordHash,
}).then((res) => {
if (res.code === 200) {
localStorage.setItem('userInfo', res.data)
this.setUserInfo(res.data)
localStorage.setItem('userInfo', JSON.stringify(res.data))
this.setUserInfo(JSON.parse(JSON.stringify(res.data)))
this.ruleForm = {}
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