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
9081568d
Commit
9081568d
authored
Feb 20, 2020
by
sjf1256754123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
699ee2ed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
leader.vue
pages/leader/leader.vue
+3
-3
request.js
utils/request.js
+2
-1
No files found.
pages/leader/leader.vue
View file @
9081568d
...
...
@@ -13,8 +13,8 @@
<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"
><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
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"
>
<button
form-type=
"submit"
class=
"cu-btn block bg-blue margin-tb-sm lg"
>
提交
</button>
...
...
@@ -40,7 +40,7 @@
this
.
form
[
props
]
=
event
.
target
.
value
},
formSubmit
(){
if
(
this
.
form
.
name
&&
this
.
form
.
phone
.
length
==
11
&&
this
.
form
.
idCard
.
length
==
18
){
if
(
this
.
form
.
name
&&
this
.
form
.
phone
.
length
==
11
){
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
){
...
...
utils/request.js
View file @
9081568d
...
...
@@ -10,7 +10,8 @@
import
store
from
'
../store
'
export
default
class
Request
{
config
=
{
baseUrl
:
'
https://health.sh-sict.com/ncov-api
'
,
// baseUrl: 'https://health.sh-sict.com/ncov-api',
baseUrl
:
'
https://health.sh-sict.com/ncov-test-api
'
,
// baseUrl: 'http://139.9.163.126/ncov-api',
header
:
{
'
content-type
'
:
'
application/json;charset=UTF-8
'
,
...
...
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