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
e729fb53
Commit
e729fb53
authored
Jul 21, 2022
by
季圣华
Browse files
优化登录和注册界面
parent
71860179
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/user/Login.vue
View file @
e729fb53
...
...
@@ -48,7 +48,7 @@
<a-col>
© 2015-2030
{{
systemTitle
}}
- Powered By
<a
style=
"color:#00458a;"
:href=
"systemUrl"
target=
"_blank"
>
官方网站
</a>
<span
v-if=
"showWeixinSpan()"
class=
"weixin"
@
mouseover=
"showWeixin"
@
click=
"
hid
eWeixin"
>
微信小程序
</span>
<span
v-if=
"showWeixinSpan()"
class=
"weixin"
@
mouseover=
"showWeixin"
@
click=
"
chang
eWeixin
Status
"
>
微信小程序
</span>
</a-col>
</a-row>
</div>
...
...
@@ -304,9 +304,13 @@
showWeixin
()
{
this
.
showWeixinFlag
=
true
},
hideWeixin
()
{
this
.
showWeixinFlag
=
false
}
changeWeixinStatus
()
{
if
(
this
.
showWeixinFlag
)
{
this
.
showWeixinFlag
=
false
}
else
{
this
.
showWeixinFlag
=
true
}
},
}
}
</
script
>
...
...
jshERP-web/src/views/user/Register.vue
View file @
e729fb53
...
...
@@ -5,7 +5,7 @@
<a-form-item
fieldDecoratorId=
"username"
:fieldDecoratorOptions=
"
{rules: [{ required: true, message: '用户名不能为空'}, { validator: this.handleUserName}], validateTrigger: ['change', 'blur'], validateFirst: true}">
<a-input
size=
"large"
type=
"text"
autocomplete=
"false"
placeholder=
"请输入用户名"
></a-input>
<a-input
size=
"large"
type=
"text"
@
focus=
"initWeixin"
autocomplete=
"false"
placeholder=
"请输入用户名"
></a-input>
</a-form-item>
<a-popover
placement=
"rightTop"
trigger=
"click"
:visible=
"state.passwordLevelChecked"
>
...
...
@@ -69,9 +69,14 @@
<a-col>
© 2015-2030 {{systemTitle}} - Powered By
<a
style=
"color:#00458a;"
:href=
"systemUrl"
target=
"_blank"
>
官方网站
</a>
<span
v-if=
"showWeixinSpan()"
class=
"weixin"
@
mouseover=
"showWeixin"
@
click=
"changeWeixinStatus"
>
微信小程序
</span>
</a-col>
</a-row>
</div>
<div
v-if=
"showWeixinFlag"
style=
"text-align: center; padding-top: 10px;"
>
<img
src=
"/static/weixin.jpg"
style=
"width:258px"
/>
</div>
</a-form>
</div>
</template>
...
...
@@ -120,7 +125,8 @@
percent
:
10
,
progressColor
:
'
#FF0000
'
},
registerBtn
:
false
registerBtn
:
false
,
showWeixinFlag
:
false
,
}
},
computed
:
{
...
...
@@ -280,6 +286,32 @@
});
this
.
registerBtn
=
false
;
},
initWeixin
()
{
if
(
this
.
showWeixinSpan
())
{
let
that
=
this
setTimeout
(
function
()
{
that
.
showWeixin
()
},
1000
)
}
},
showWeixinSpan
()
{
let
host
=
window
.
location
.
host
if
(
host
===
'
cloud.huaxiaerp.vip
'
)
{
return
true
}
else
{
return
false
}
},
showWeixin
()
{
this
.
showWeixinFlag
=
true
},
changeWeixinStatus
()
{
if
(
this
.
showWeixinFlag
)
{
this
.
showWeixinFlag
=
false
}
else
{
this
.
showWeixinFlag
=
true
}
},
},
watch
:
{
'
state.passwordLevel
'
(
val
)
{
...
...
@@ -343,4 +375,10 @@
.login-copyright, .login-copyright a {
color: #666
}
.login-copyright .weixin {
padding-left:10px;
color: red;
cursor:pointer
}
</
style
>
\ No newline at end of file
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