Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5fe5867d
authored
May 10, 2021
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
baa71016
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
src/views/User/login.vue
src/views/User/login.vue
View file @
5fe5867d
...
...
@@ -50,6 +50,7 @@
</
template
>
<
script
>
import
Vue
from
'vue'
;
import
{
Loading
}
from
'element-ui'
;
export
default
{
name
:
"index"
,
...
...
@@ -58,9 +59,9 @@
pwdFlag
:
true
,
active
:
false
,
errror_text
:
''
,
status1
:
false
,
status2
:
false
,
loading
:
true
,
status1
:
false
,
status2
:
false
,
loading
:
true
,
form
:
{
username
:
''
,
password
:
''
,
...
...
@@ -94,10 +95,16 @@
this
.
pwdFlag
=
!
this
.
pwdFlag
;
},
submit
()
{
var
myreg
=
/^
[
1
][
3,4,5,7,8
][
0-9
]{9}
$/
;
if
(
!
this
.
form
.
username
)
{
this
.
errror_text
=
'请输入手机号'
;
return
false
;
}
if
(
!
myreg
.
test
(
this
.
form
.
username
))
{
this
.
errror_text
=
'请输入正确的手机号'
;
return
false
;
}
if
(
!
this
.
form
.
password
)
{
this
.
errror_text
=
'请输入登录密码'
;
return
false
;
...
...
@@ -107,7 +114,13 @@
return
false
;
}
let
loadingInstance
=
Loading
.
service
({
background
:
'rgba(0, 0, 0, 0)'
});
setTimeout
(()
=>
{
loadingInstance
.
close
();
},
2000
);
}
}
...
...
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