优化登录界面
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
size="large"
|
size="large"
|
||||||
v-decorator="['loginName',{initialValue:'', rules: validatorRules.loginName.rules}]"
|
v-decorator="['loginName',{initialValue:'', rules: validatorRules.loginName.rules}]"
|
||||||
type="text"
|
type="text"
|
||||||
|
@focus="initWeixin"
|
||||||
placeholder="请输入用户名">
|
placeholder="请输入用户名">
|
||||||
<a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }"/>
|
<a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }"/>
|
||||||
</a-input>
|
</a-input>
|
||||||
@@ -53,7 +54,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="showWeixinFlag" style="text-align: center; padding-top: 10px;">
|
<div v-if="showWeixinFlag" style="text-align: center; padding-top: 10px;">
|
||||||
<img src="/static/weixin.jpg" style="width:200px" />
|
<img src="/static/weixin.jpg" style="width:258px" />
|
||||||
</div>
|
</div>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -119,8 +120,8 @@
|
|||||||
created () {
|
created () {
|
||||||
this.currdatetime = new Date().getTime();
|
this.currdatetime = new Date().getTime();
|
||||||
Vue.ls.remove(ACCESS_TOKEN)
|
Vue.ls.remove(ACCESS_TOKEN)
|
||||||
this.getRouterData();
|
this.getRouterData()
|
||||||
this.getRegisterFlag();
|
this.getRegisterFlag()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions([ "Login", "Logout" ]),
|
...mapActions([ "Login", "Logout" ]),
|
||||||
@@ -284,6 +285,14 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
initWeixin() {
|
||||||
|
if(this.showWeixinSpan()) {
|
||||||
|
let that = this
|
||||||
|
setTimeout(function() {
|
||||||
|
that.showWeixin()
|
||||||
|
},3000)
|
||||||
|
}
|
||||||
|
},
|
||||||
showWeixinSpan() {
|
showWeixinSpan() {
|
||||||
let host = window.location.host
|
let host = window.location.host
|
||||||
if(host === 'cloud.huaxiaerp.vip') {
|
if(host === 'cloud.huaxiaerp.vip') {
|
||||||
|
|||||||
Reference in New Issue
Block a user