Commit f9390b24 authored by sjf1256754123's avatar sjf1256754123

d

parent f0f9db64
...@@ -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,6 +85,7 @@ ...@@ -85,6 +85,7 @@
// }) // })
// }, // },
getScancode(){ getScancode(){
if(userInfo.roleId == '1003'){
var _this = this; var _this = this;
// 允许从相机和相册扫码 // 允许从相机和相册扫码
wx.scanCode({ wx.scanCode({
...@@ -97,6 +98,12 @@ ...@@ -97,6 +98,12 @@
} }
} }
}) })
}else{
uni.showToast({
icon: 'none',
title: '暂无权限,仅安保人员有此权限!'
})
}
}, },
fillInDay() { fillInDay() {
if(!this.$store.state.user.userInfo.idCard){ if(!this.$store.state.user.userInfo.idCard){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment