Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
enterprise-serevice-platform-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
enterprise-serevice-platform-web
Commits
fb1a3261
Commit
fb1a3261
authored
Oct 26, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
15bb989e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
login.vue
src/views/login/login.vue
+16
-14
No files found.
src/views/login/login.vue
View file @
fb1a3261
...
...
@@ -80,19 +80,21 @@
</el-checkbox>
<span
style=
"color: #1A78E5;cursor: pointer;font-size: 15px"
@
click=
"showAgreement"
>
《石家庄高新区企业服务平台注册协议》
</span>
</el-form-item>
<el-form-item
v-if=
"loginType === 'forgetPasWord'"
class=
"forminput"
label=
"新密码"
prop=
"newPassword"
>
<el-input
v-model=
"loginForm.newPassword"
:maxlength=
"16"
:minlength=
"6"
type=
"password"
auto-complete=
"off"
oninput=
"this.value=this.value.replace(/\s+/g,'')"
placeholder=
"支持字母大小写、数字、长度6~16个字符"
>
<svg-icon
slot=
"prefix"
icon-class=
"password"
class=
"el-input__icon input-icon"
/>
</el-input>
</el-form-item>
<div
v-if=
"loginType === 'forgetPasWord'"
>
<el-form-item
class=
"forminput"
label=
"新密码"
prop=
"newPassword"
>
<el-input
v-model
.
trim=
"loginForm.newPassword"
:maxlength=
"16"
:minlength=
"6"
type=
"password"
auto-complete=
"off"
oninput=
"this.value=this.value.replace(/\s+/g,'')"
placeholder=
"支持字母大小写、数字、长度6~16个字符"
>
<svg-icon
slot=
"prefix"
icon-class=
"password"
class=
"el-input__icon input-icon"
/>
</el-input>
</el-form-item>
</div>
<div
class=
"phoneLoginBtn"
>
<el-button
v-if=
"loginType === 'password'"
class=
"typeBtn"
type=
"text"
@
click=
"handlePasswordLogin('phone')"
>
手机快捷登录
</el-button>
<el-button
v-if=
"loginType === 'phone'"
class=
"typeBtn"
type=
"text"
@
click=
"handlePasswordLogin('password')"
>
密码登录
</el-button>
...
...
@@ -408,7 +410,7 @@ export default {
}
},
handleLogin
()
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
this
.
$refs
[
'loginForm'
]
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
loading
=
true
if
(
this
.
loginType
===
'register'
)
{
...
...
Write
Preview
Markdown
is supported
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