Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
clapp
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
莫晓莉
clapp
Commits
f691e18d
Commit
f691e18d
authored
Nov 12, 2020
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxl
parent
9446e276
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
pages/comment/login/login.vue
+11
-1
No files found.
pages/comment/login/login.vue
View file @
f691e18d
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</view>
</view>
<view
class=
"login-item bt"
>
<view
class=
"login-item bt"
>
<image
class=
"login-icon"
src=
"../../../static/login/code.png"
></image>
<image
class=
"login-icon"
src=
"../../../static/login/code.png"
></image>
<input
v-model=
"loginForm.code"
class=
"login-item-input"
placeholder=
"请输入验证码"
/>
<input
type=
"number"
v-model=
"loginForm.code"
class=
"login-item-input"
placeholder=
"请输入验证码"
/>
<view
class=
"code-btn"
@
click=
"codeInfo.clickType ? getCode() : ''"
>
{{
codeInfo
.
msg
}}
</view>
<view
class=
"code-btn"
@
click=
"codeInfo.clickType ? getCode() : ''"
>
{{
codeInfo
.
msg
}}
</view>
</view>
</view>
<view
class=
"login-item bt"
>
<view
class=
"login-item bt"
>
...
@@ -122,6 +122,16 @@
...
@@ -122,6 +122,16 @@
});
});
return
;
return
;
}
}
var
myreg
=
/^
[
1
][
3,4,5,6,7,8,9
][
0-9
]{9}
$/
;
if
(
!
myreg
.
test
(
this
.
loginForm
.
phone
))
{
uni
.
showToast
({
icon
:
'none'
,
title
:
'请输入正确的手机号'
});
return
;
}
if
(
this
.
loginForm
.
code
==
undefined
)
{
if
(
this
.
loginForm
.
code
==
undefined
)
{
uni
.
showToast
({
uni
.
showToast
({
icon
:
'none'
,
icon
:
'none'
,
...
...
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