Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
499701bd
authored
2020-05-17 18:21:35 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
短信验证码锁定6位长度,过滤空格
1 parent
b49a9fb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
src/pages/login/login.js
src/pages/register/register.js
src/pages/login/login.js
View file @
499701b
...
...
@@ -320,7 +320,7 @@ export default {
}
let
data
=
{
mobile
:
this
.
loginForm
.
userId
,
lan
:
this
.
locale
lan
:
this
.
locale
}
this
.
_startTimeClick
();
httpPost
({
...
...
@@ -691,6 +691,10 @@ export default {
},
'loginForm.otp'
:
function
()
{
this
.
errorTips
.
oe2
=
""
;
this
.
loginForm
.
otp
=
this
.
loginForm
.
otp
.
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
);
if
(
this
.
loginForm
.
otp
.
length
>
0
)
{
this
.
loginForm
.
otp
=
this
.
loginForm
.
otp
.
substring
(
0
,
6
);
}
},
'loginForm.imageValue'
:
function
()
{
this
.
errorTips
.
oe3
=
""
;
...
...
src/pages/register/register.js
View file @
499701b
...
...
@@ -687,6 +687,11 @@ export default {
},
"registerForm.otp"
:
function
()
{
this
.
errorTips
.
p2
=
""
;
this
.
registerForm
.
otp
=
this
.
registerForm
.
otp
.
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
);
if
(
this
.
registerForm
.
otp
.
length
>
0
)
{
this
.
registerForm
.
otp
=
this
.
registerForm
.
otp
.
substring
(
0
,
6
);
}
},
"registerForm.imageValue"
:
function
()
{
this
.
errorTips
.
p3
=
""
;
...
...
Please
register
or
sign in
to post a comment