Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
be28d670
Commit
be28d670
authored
May 03, 2022
by
神话
Browse files
优化登录界面
parent
0673d427
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/user/Login.vue
View file @
be28d670
...
...
@@ -7,6 +7,7 @@
size=
"large"
v-decorator=
"['loginName',
{initialValue:'', rules: validatorRules.loginName.rules}]"
type="text"
@focus="initWeixin"
placeholder="请输入用户名">
<a-icon
slot=
"prefix"
type=
"user"
:style=
"
{ color: 'rgba(0,0,0,.25)' }"/>
</a-input>
...
...
@@ -53,7 +54,7 @@
</div>
<div
v-if=
"showWeixinFlag"
style=
"text-align: center; padding-top: 10px;"
>
<img
src=
"/static/weixin.jpg"
style=
"width:2
00
px"
/>
<img
src=
"/static/weixin.jpg"
style=
"width:2
58
px"
/>
</div>
</a-form>
</div>
...
...
@@ -119,8 +120,8 @@
created
()
{
this
.
currdatetime
=
new
Date
().
getTime
();
Vue
.
ls
.
remove
(
ACCESS_TOKEN
)
this
.
getRouterData
()
;
this
.
getRegisterFlag
()
;
this
.
getRouterData
()
this
.
getRegisterFlag
()
},
methods
:
{
...
mapActions
([
"
Login
"
,
"
Logout
"
]),
...
...
@@ -284,6 +285,14 @@
}
})
},
initWeixin
()
{
if
(
this
.
showWeixinSpan
())
{
let
that
=
this
setTimeout
(
function
()
{
that
.
showWeixin
()
},
3000
)
}
},
showWeixinSpan
()
{
let
host
=
window
.
location
.
host
if
(
host
===
'
cloud.huaxiaerp.vip
'
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment