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
c5d8eee6
Commit
c5d8eee6
authored
Feb 19, 2020
by
sjf1256754123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
a4e815ee
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
17 deletions
+28
-17
index.vue
pages/index/index.vue
+24
-13
leader.vue
pages/leader/leader.vue
+2
-2
security.vue
pages/security/security.vue
+2
-2
8.png
static/8.png
+0
-0
9.png
static/9.png
+0
-0
No files found.
pages/index/index.vue
View file @
c5d8eee6
...
@@ -2,12 +2,15 @@
...
@@ -2,12 +2,15 @@
<view
class=
"index"
>
<view
class=
"index"
>
<view
class=
"temp"
>
<view
class=
"temp"
>
<view
class=
"btnList"
>
<view
class=
"btnList"
>
<view
class=
"btnStaff"
>
<
!--
<
view
class=
"btnStaff"
>
<image
src=
"../../static/5.png"
class=
"btnStaff2"
mode=
""
></image>
<image
src=
"../../static/5.png"
class=
"btnStaff2"
mode=
""
></image>
<image
src=
"../../static/4.png"
class=
"btnStaff2 margin-left-sm"
@
click=
"staff"
mode=
""
></image>
<image
src=
"../../static/4.png"
class=
"btnStaff2 margin-left-sm"
@
click=
"staff"
mode=
""
></image>
<image
src=
"../../static/3.png"
class=
"btnStaff2"
@
click=
"fillInDay"
mode=
""
></image>
<image
src=
"../../static/3.png"
class=
"btnStaff2"
@
click=
"fillInDay"
mode=
""
></image>
<image
src=
"../../static/6.png"
class=
"btnStaff2"
@
click=
"temperature"
mode=
""
></image>
<image
src=
"../../static/6.png"
class=
"btnStaff2"
@
click=
"temperature"
mode=
""
></image>
</view>
</view>
-->
<image
class=
"img"
:src=
"imgSrc"
mode=
"widthFix"
@
click=
"modalName = 'Image'"
>
<view
class=
"tips"
>
入园请向门卫出示通行证
</view>
<view
class=
"btnStaff"
>
<view
class=
"btnStaff"
>
<image
src=
"../../static/2.png"
class=
"btnStaff2"
mode=
""
></image>
<image
src=
"../../static/2.png"
class=
"btnStaff2"
mode=
""
></image>
<image
src=
"../../static/7.png"
class=
"btnStaff2 margin-left-sm"
@
click=
"getScancode"
style=
"width: 484upx;"
mode=
""
></image>
<image
src=
"../../static/7.png"
class=
"btnStaff2 margin-left-sm"
@
click=
"getScancode"
style=
"width: 484upx;"
mode=
""
></image>
...
@@ -17,9 +20,6 @@
...
@@ -17,9 +20,6 @@
<image
src=
"../../static/8.png"
class=
"btnStaff2"
mode=
""
></image>
<image
src=
"../../static/8.png"
class=
"btnStaff2"
mode=
""
></image>
<image
src=
"../../static/9.png"
class=
"btnStaff2 margin-left-sm"
@
click=
"leader"
style=
"width: 484upx;"
mode=
""
></image>
<image
src=
"../../static/9.png"
class=
"btnStaff2 margin-left-sm"
@
click=
"leader"
style=
"width: 484upx;"
mode=
""
></image>
</view>
</view>
<image
class=
"img"
:src=
"imgSrc"
mode=
"widthFix"
@
click=
"modalName = 'Image'"
>
<view
class=
"tips"
>
入园请向门卫出示健康码
</view>
</view>
</view>
</view>
</view>
<view
class=
"cu-modal"
:class=
"modalName=='Image'?'show':''"
@
tap=
"modalName=''"
>
<view
class=
"cu-modal"
:class=
"modalName=='Image'?'show':''"
@
tap=
"modalName=''"
>
...
@@ -41,6 +41,9 @@
...
@@ -41,6 +41,9 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getSampleId
}
from
'
@/utils/index.js
'
export
default
{
export
default
{
components
:
{},
components
:
{},
name
:
"
home
"
,
name
:
"
home
"
,
...
@@ -110,18 +113,26 @@
...
@@ -110,18 +113,26 @@
// })
// })
// },
// },
getScancode
(){
getScancode
(){
console
.
log
(
this
.
$store
.
state
.
user
.
userInfo
.
roleId
)
if
(
this
.
$store
.
state
.
user
.
userInfo
.
roleId
&&
this
.
$store
.
state
.
user
.
userInfo
.
roleId
==
'
1003
'
){
if
(
this
.
$store
.
state
.
user
.
userInfo
.
roleId
&&
this
.
$store
.
state
.
user
.
userInfo
.
roleId
==
'
1003
'
){
var
_this
=
this
;
var
_this
=
this
;
// 允许从相机和相册扫码
// 允许从相机和相册扫码
wx
.
scanCode
({
wx
.
scanCode
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
if
(
res
.
result
.
indexOf
(
'
userId
'
)
>-
1
){
if
(
res
.
result
.
indexOf
(
'
userId
'
)
>-
1
&&
res
.
result
.
indexOf
(
'
date
'
)
>-
1
){
_this
.
userId
=
res
.
result
;
_this
.
userId
=
res
.
result
;
if
(
_this
.
securityFlag
&&
_this
.
userId
){
let
arr
=
res
.
result
.
split
(
"
&
"
)
uni
.
navigateTo
({
_this
.
userId
=
arr
[
0
].
split
(
"
=
"
)[
1
]
url
:
`/pages/security/security?userId=
${
_this
.
userId
}
`
if
(
getSampleId
()
==
arr
[
1
].
split
(
"
=
"
)[
1
]){
})
if
(
_this
.
securityFlag
&&
_this
.
userId
){
uni
.
navigateTo
({
url
:
`/pages/security/security?userId=
${
_this
.
userId
}
`
})
}
}
else
{
uni
.
showToast
({
icon
:
'
none
'
,
title
:
'
二维码已失效!
'
})
}
}
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -213,14 +224,14 @@
...
@@ -213,14 +224,14 @@
color
:
#FFFFFF
;
color
:
#FFFFFF
;
}
}
.img
{
.img
{
margin-top
:
45upx
;
width
:
200upx
;
width
:
200upx
;
height
:
200upx
;
height
:
200upx
;
}
}
.tips
{
.tips
{
margin-top
:
25upx
;
margin-top
:
25upx
;
margin-bottom
:
45upx
;
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
28
upx
;
font-size
:
32
upx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
}
}
}
}
...
...
pages/leader/leader.vue
View file @
c5d8eee6
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
this
.
form
[
props
]
=
event
.
target
.
value
this
.
form
[
props
]
=
event
.
target
.
value
},
},
formSubmit
(){
formSubmit
(){
if
(
this
.
form
.
name
&&
this
.
form
.
phone
&&
this
.
form
.
idCard
){
if
(
this
.
form
.
name
&&
this
.
form
.
phone
.
length
==
11
&&
this
.
form
.
idCard
.
length
==
18
){
this
.
$http
.
post
(
`/sict-ncov/user/vip/register?name=
${
this
.
form
.
name
}
&phone=
${
this
.
form
.
phone
}
&idCard=
${
this
.
form
.
idCard
}
`
).
then
(
res
=>
{
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
const
d
=
res
.
data
if
(
d
.
code
==
1
){
if
(
d
.
code
==
1
){
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
icon
:
'
none
'
,
icon
:
'
none
'
,
title
:
'
请填写完整资料!
'
title
:
'
请填写完整
真实
资料!
'
})
})
}
}
}
}
...
...
pages/security/security.vue
View file @
c5d8eee6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view
class=
"temp"
>
<view
class=
"temp"
>
<view
v-show=
"!hiddenFlag"
>
<view
v-show=
"!hiddenFlag"
>
<view
class=
"btnList"
>
<view
class=
"btnList"
>
<span
style=
"font-weight: bold;color:#fff;font-size: 58upx;"
>
{{
obj
.
userName
}}
</span>
<span
style=
"font-weight: bold;color:#fff;font-size: 58upx;"
>
{{
obj
.
userName
?
obj
.
userName
:
''
}}
</span>
<button
class=
"btnNormal"
type=
"primary"
@
click=
"normal"
>
体温正常
</button>
<button
class=
"btnNormal"
type=
"primary"
@
click=
"normal"
>
体温正常
</button>
<button
class=
"btnAbnormal"
type=
"primary"
@
click=
"abnormal"
>
体温异常
</button>
<button
class=
"btnAbnormal"
type=
"primary"
@
click=
"abnormal"
>
体温异常
</button>
</view>
</view>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</view>
</view>
<view
v-show=
"hiddenFlag"
class=
"tip"
>
<view
v-show=
"hiddenFlag"
class=
"tip"
>
<view
class=
"tips"
>
<view
class=
"tips"
>
<span
style=
"font-weight: bold;"
>
{{
obj
.
userName
}}
</span>
<span
style=
"font-weight: bold;"
>
{{
obj
.
userName
?
obj
.
userName
:
''
}}
</span>
今日已测温
今日已测温
</view>
</view>
<view
class=
"tips"
v-show=
"obj.heat>0"
>
<view
class=
"tips"
v-show=
"obj.heat>0"
>
...
...
static/8.png
View replaced file @
a4e815ee
View file @
c5d8eee6
18.2 KB
|
W:
|
H:
29.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
static/9.png
View replaced file @
a4e815ee
View file @
c5d8eee6
11.6 KB
|
W:
|
H:
8.37 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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