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
df4a358f
Commit
df4a358f
authored
Mar 02, 2020
by
sjf1256754123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
8b0700ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
25 deletions
+81
-25
index.vue
pages/index/index.vue
+2
-0
leader.vue
pages/leader/leader.vue
+79
-25
No files found.
pages/index/index.vue
View file @
df4a358f
...
...
@@ -183,6 +183,8 @@
getUserInfo
(
code
)
{
this
.
$http
.
post
(
`/sict-ncov/user/auth?code=
${
code
}
`
).
then
(
res
=>
{
const
d
=
res
.
data
this
.
hiddenRegisterFlag
=
true
this
.
securityFlag
=
false
if
(
d
.
code
==
1
)
{
let
userInfo
=
d
.
object
this
.
park
=
userInfo
.
userOrg
?
userInfo
.
userOrg
.
park
:
''
...
...
pages/leader/leader.vue
View file @
df4a358f
...
...
@@ -15,6 +15,43 @@
<view
class=
"title"
><span
style=
"color:red;display: inline-block; vertical-align:inherit;margin-right:4upx"
>
*
</span>
身份证/护照号:
</view>
<input
placeholder=
"请输入身份证号码/护照号"
:value=
"form.idCard"
name=
"input"
@
input=
"updateInputVal($event,'idCard')"
></input>
</view>
<view
class=
"cu-form-group"
v-show=
"!isRead"
>
<view
class=
"uni-padding-wrap uni-common-mt"
>
<view
class=
"padding-top padding-bottom"
>
<checkbox-group
@
click=
"openModal"
>
<label>
<checkbox
value=
"A"
:checked=
"form.agree == 1"
class=
"fl"
style=
"margin-top:4upx"
/>
<view
style=
"padding-left:60upx;padding-top:6upx"
>
我已阅读并认可
<span
style=
"color:#0081FF"
@
click.stop=
"modalName = true"
>
《软件使用协议》
</span>
,承诺如实填报。
</view>
</label>
</checkbox-group>
</view>
</view>
</checkbox-group>
</view>
<view
class=
"cu-modal"
:class=
"modalName?'show':''"
>
<view
class=
"cu-dialog"
>
<view
class=
"cu-bar bg-white justify-end text-bold"
>
<view
class=
"content"
>
软件使用协议
</view>
<view
class=
"action"
@
tap=
"modalName = ''"
>
<text
class=
"cuIcon-close text-black"
></text>
</view>
</view>
<view
class=
"padding-xl green-word"
>
<div
class=
"text-left"
>
<p
class=
"content"
>
根据《中华人民共和国传染病防治法》、《中华人民共和国突发事件应对法》、《突发公共卫生事件应急条例》、国家卫生健康委员会公告(2020年第1号),并按照国务院常务会议提出的“分类有序复工复产”和上海疫情防控办及市政府《关于进一步落实各项疫情防控措施的通告》的相关要求,为做好新型冠状病毒感染的肺炎疫情防控工作,保障广大人民群众生命健康,现面向使用本系统的所有用户,特告知如下:所填信息须真实、有效,如若有任何瞒报情况,将依法追究法律责任,并被有关部门列为失信人员。本系统采集的用户信息,主要用于园区和企业的防控管理,必要时将与有关政府部门进行信息对接,或在去除个人隐私信息后用于疫情相关的科学研究。:
</p>
<p>
</p>
<p
class=
"content"
>
用户本人承诺:我已经认真阅读过,或者已经有人详细读给我听了。我理解其中的信息,我愿意接受检查,保证填报信息真实、有效,同意相关人员按照这份知情同意书的描述使用本人信息。
</p>
</div>
<button
@
click=
"modalName = ''"
class=
"cu-btn block bg-blue margin-tb-sm lg"
>
我知道了
</button>
</view>
</view>
</view>
<view
class=
"padding"
>
<button
@
click=
"formSubmit"
class=
"cu-btn block bg-blue margin-tb-sm lg"
>
提交
</button>
</view>
...
...
@@ -25,21 +62,32 @@
export
default
{
data
()
{
return
{
isRead
:
false
,
modalName
:
''
,
form
:{
name
:
''
,
phone
:
''
,
idCard
:
''
idCard
:
''
,
agree
:
''
}
}
},
methods
:
{
openModal
()
{
if
(
!
this
.
form
.
agree
)
{
this
.
form
.
agree
=
1
}
else
{
this
.
form
.
agree
=
0
}
},
// 更新输入框绑定的表单内容
updateInputVal
(
event
,
props
)
{
this
.
form
[
props
]
=
event
.
target
.
value
},
formSubmit
(){
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
=>
{
if
(
this
.
form
.
agree
==
1
){
if
(
this
.
form
.
name
&&
this
.
form
.
phone
.
length
==
11
&&
this
.
form
.
idCard
.
length
>
5
){
this
.
$http
.
post
(
`/sict-ncov/user/vip/register?name=
${
this
.
form
.
name
}
&phone=
${
this
.
form
.
phone
}
&idCard=
${
this
.
form
.
idCard
}
&agree=
${
this
.
form
.
agree
}
`
).
then
(
res
=>
{
const
d
=
res
.
data
if
(
d
.
code
==
1
){
uni
.
showToast
({
...
...
@@ -67,6 +115,12 @@
title
:
'
请填写完整真实资料!
'
})
}
}
else
{
uni
.
showToast
({
icon
:
'
none
'
,
title
:
'
请勾选软件使用协议!
'
})
}
}
}
}
...
...
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