Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
epidemic
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
史锦峰
epidemic
Commits
6dfece6b
Commit
6dfece6b
authored
5 years ago
by
sjf1256754123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update leader.vue
parent
4c98bba5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
leader.vue
pages/leader/leader.vue
+8
-13
No files found.
pages/leader/leader.vue
View file @
6dfece6b
...
...
@@ -6,11 +6,11 @@
<input
class=
"text-right"
placeholder=
"请输入姓名(注意简繁体)"
:value=
"form.name"
name=
"input"
@
input=
"updateInputVal($event,'name')"
></input>
</view>
<view
class=
"cu-form-group"
>
<view
class=
"title"
>
手机号码
</view>
<view
class=
"title"
>
<span
style=
"color:red;display: inline-block; vertical-align:inherit;margin-right:4upx"
>
*
</span>
手机号码
</view>
<input
class=
"text-right"
placeholder=
"请输入手机号码"
type=
"number"
:value=
"form.phone"
name=
"input"
@
input=
"updateInputVal($event,'phone')"
></input>
</view>
<view
class=
"cu-form-group"
>
<view
class=
"title"
>
身份证
</view>
<view
class=
"title"
>
<span
style=
"color:red;display: inline-block; vertical-align:inherit;margin-right:4upx"
>
*
</span>
身份证
</view>
<input
class=
"text-right"
type=
"idcard"
placeholder=
"请输入身份证号码"
:value=
"form.idCard"
name=
"input"
@
input=
"updateInputVal($event,'idCard')"
></input>
</view>
<view
class=
"padding"
>
...
...
@@ -37,17 +37,7 @@
this
.
form
[
props
]
=
event
.
target
.
value
},
formSubmit
(){
if
(
!
this
.
form
.
name
){
uni
.
showToast
({
icon
:
'
none
'
,
title
:
'
姓名必填
'
})
}
else
if
(
!
this
.
form
.
phone
&&
!
this
.
form
.
idCard
){
uni
.
showToast
({
icon
:
'
none
'
,
title
:
'
手机号码或者身份证必填其中一项
'
})
}
else
{
if
(
this
.
form
.
name
&&
this
.
form
.
phone
&&
this
.
form
.
idCard
){
this
.
$http
.
post
(
`/sict-ncov/user/vip/register?name=
${
this
.
form
.
name
}
&phone=
${
this
.
form
.
phone
}
&idCard=
${
this
.
form
.
idCard
}
`
).
then
(
res
=>
{
const
d
=
res
.
data
if
(
d
.
code
==
1
){
...
...
@@ -75,6 +65,11 @@
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
}
else
{
uni
.
showToast
({
icon
:
'
none
'
,
title
:
'
请填写完整资料!
'
})
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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