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
f9390b24
You need to sign in or sign up before continuing.
Commit
f9390b24
authored
Feb 16, 2020
by
sjf1256754123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
f0f9db64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
index.vue
pages/index/index.vue
+20
-13
No files found.
pages/index/index.vue
View file @
f9390b24
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view
class=
"btnList"
>
<view
class=
"btnList"
>
<button
class=
"btnStaff"
type=
"primary"
@
click=
"staff"
>
首次填报
</button>
<button
class=
"btnStaff"
type=
"primary"
@
click=
"staff"
>
首次填报
</button>
<button
class=
"btnSecurity"
type=
"primary"
@
click=
"fillInDay"
>
每日签到
</button>
<button
class=
"btnSecurity"
type=
"primary"
@
click=
"fillInDay"
>
每日签到
</button>
<button
class=
"btnSecurity"
type=
"primary"
@
click=
"getScancode"
v-show=
"securityFlag"
>
安保测温
</button>
<button
class=
"btnSecurity"
type=
"primary"
@
click=
"getScancode"
>
安保测温
</button>
<image
class=
"img"
:src=
"imgSrc"
mode=
"widthFix"
@
click=
"modalName = 'Image'"
>
<image
class=
"img"
:src=
"imgSrc"
mode=
"widthFix"
@
click=
"modalName = 'Image'"
>
<view
class=
"tips"
>
入园请向门卫出示健康码
</view>
<view
class=
"tips"
>
入园请向门卫出示健康码
</view>
</view>
</view>
...
@@ -85,18 +85,25 @@
...
@@ -85,18 +85,25 @@
// })
// })
// },
// },
getScancode
(){
getScancode
(){
var
_this
=
this
;
if
(
userInfo
.
roleId
==
'
1003
'
){
// 允许从相机和相册扫码
var
_this
=
this
;
wx
.
scanCode
({
// 允许从相机和相册扫码
success
:
(
res
)
=>
{
wx
.
scanCode
({
_this
.
userId
=
res
.
result
;
success
:
(
res
)
=>
{
if
(
_this
.
securityFlag
&&
_this
.
userId
){
_this
.
userId
=
res
.
result
;
uni
.
navigateTo
({
if
(
_this
.
securityFlag
&&
_this
.
userId
){
url
:
`/pages/security/security?userId=
${
_this
.
userId
}
`
uni
.
navigateTo
({
})
url
:
`/pages/security/security?userId=
${
_this
.
userId
}
`
}
})
}
}
})
}
})
}
else
{
uni
.
showToast
({
icon
:
'
none
'
,
title
:
'
暂无权限,仅安保人员有此权限!
'
})
}
},
},
fillInDay
()
{
fillInDay
()
{
if
(
!
this
.
$store
.
state
.
user
.
userInfo
.
idCard
){
if
(
!
this
.
$store
.
state
.
user
.
userInfo
.
idCard
){
...
...
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