|
@@ -14,6 +14,10 @@
|
|
|
<img class="button-img" src="@/pages/images/newImage/icon_sy_aqzr@1x.png">
|
|
|
<view class="button-name">安全准入</view>
|
|
|
</view>
|
|
|
+ <view class="button-min" @click="goPage('securityCheck')">
|
|
|
+ <img class="button-img" src="@/pages/images/newImage/icon_sy_aqjc@1x.png">
|
|
|
+ <view class="button-name">安全检查</view>
|
|
|
+ </view>
|
|
|
<view class="button-min" @click="goPage()">
|
|
|
<img class="button-img" src="@/pages/images/newImage/icon_sy_hxp@1x.png">
|
|
|
<view class="button-name">化学品</view>
|
|
@@ -25,15 +29,14 @@
|
|
|
</view>
|
|
|
<view class="button-two-box">
|
|
|
<view class="button-big-box" @click="goPage('snapshotPupil')"
|
|
|
- style="background-color: #DFF0FF;margin-right:20rpx;">
|
|
|
+ style="background-color: #DFF0FF;margin-right:20rpx;">
|
|
|
<img src="@/pages/images/newImage/icon_sy_ssp@1x.png">
|
|
|
<view class="button-min-box">
|
|
|
<view>随手拍</view>
|
|
|
<view>发现隐患</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="button-big-box" @click="goPage('leaveCheckPupil')"
|
|
|
- style="background-color: #D6EBDA;">
|
|
|
+ <view class="button-big-box" @click="goPage('leaveCheckPupil')" style="background-color: #D6EBDA;">
|
|
|
<img src="@/pages/images/newImage/img_sy_lkjc@1x.png">
|
|
|
<view class="button-min-box">
|
|
|
<view>离开检查</view>
|
|
@@ -62,30 +65,31 @@
|
|
|
import {
|
|
|
tabBar
|
|
|
} from '@/pages/component/tabBar.vue'
|
|
|
- import {navBar} from '@/pages/component/navbar.vue'
|
|
|
+ import {
|
|
|
+ navBar
|
|
|
+ } from '@/pages/component/navbar.vue'
|
|
|
export default {
|
|
|
name: "pupilHome",
|
|
|
components: {
|
|
|
- tabBar,
|
|
|
- navBar,
|
|
|
+ tabBar,
|
|
|
+ navBar,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- pageType:2,
|
|
|
- navHeight: uni.getStorageSync('navHeight'),
|
|
|
- title: '实验室安全智慧化管控系统',
|
|
|
+ pageType: 2,
|
|
|
+ navHeight: uni.getStorageSync('navHeight'),
|
|
|
+ title: '实验室安全智慧化管控系统',
|
|
|
background: '#0183FA',
|
|
|
- rectangleLogo:uni.getStorageSync('rectangleLogo')
|
|
|
+ rectangleLogo: uni.getStorageSync('rectangleLogo')
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
- },
|
|
|
+ created() {},
|
|
|
mounted() {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- goPage(type){
|
|
|
- if(!type){
|
|
|
+ goPage(type) {
|
|
|
+ if (!type) {
|
|
|
uni.showToast({
|
|
|
title: '暂未开放',
|
|
|
icon: "none",
|
|
@@ -103,31 +107,36 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- if(type == 'securityExaminationPupil'){
|
|
|
+ if (type == 'securityExaminationPupil') {
|
|
|
//安全考试
|
|
|
-
|
|
|
- }else if(type == 'securityAdmittancePupil'){
|
|
|
+
|
|
|
+ } else if (type == 'securityAdmittancePupil') {
|
|
|
//安全准入
|
|
|
uni.navigateTo({
|
|
|
url: "/pages_student/views/accessApplication/safeAccess",
|
|
|
});
|
|
|
- }else if(type == 'chemicalsPupil'){
|
|
|
+ } else if (type == 'securityCheck') {
|
|
|
+ //安全检查
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages_safetyCheck/views/safetyCheck",
|
|
|
+ });
|
|
|
+ } else if (type == 'chemicalsPupil') {
|
|
|
//化学品
|
|
|
-
|
|
|
- }else if(type == 'cageSiteSubscribePupil'){
|
|
|
+
|
|
|
+ } else if (type == 'cageSiteSubscribePupil') {
|
|
|
//笼位预约
|
|
|
-
|
|
|
- }else if(type == 'snapshotPupil'){
|
|
|
+
|
|
|
+ } else if (type == 'snapshotPupil') {
|
|
|
//随手拍
|
|
|
uni.navigateTo({
|
|
|
url: "/pages_safetyExamine/views/snapshotManage/snapshotAdd",
|
|
|
});
|
|
|
- }else if(type == 'leaveCheckPupil'){
|
|
|
+ } else if (type == 'leaveCheckPupil') {
|
|
|
//离开检查
|
|
|
uni.navigateTo({
|
|
|
url: "/pages_basics/views/photoInspection",
|
|
|
});
|
|
|
- }else if(type == 'violationRecordPupil'){
|
|
|
+ } else if (type == 'violationRecordPupil') {
|
|
|
//违规记录
|
|
|
uni.navigateTo({
|
|
|
url: "/pages_student/views/meViolation/meViolation",
|
|
@@ -145,13 +154,14 @@
|
|
|
list.forEach((item) => {
|
|
|
codeData[item.split("=")[0]] = item.split("=")[1];
|
|
|
})
|
|
|
- if(codeData.type == 1 || codeData.type == 2 || codeData.type == 3 || codeData.type == 5 || codeData.type == 7 ||
|
|
|
- codeData.type == 8 || codeData.type == 9 || codeData.type == 10 ||
|
|
|
- codeData.type == 11 || codeData.type == 12){
|
|
|
+ if (codeData.type == 1 || codeData.type == 2 || codeData.type == 3 || codeData.type ==
|
|
|
+ 5 || codeData.type == 7 ||
|
|
|
+ codeData.type == 8 || codeData.type == 9 || codeData.type == 10 ||
|
|
|
+ codeData.type == 11 || codeData.type == 12) {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/views/saoCode/saoCode?q=' + encodeURIComponent(res.result)
|
|
|
});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
uni.showToast({
|
|
|
mask: true,
|
|
|
icon: "none",
|
|
@@ -169,13 +179,13 @@
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
.pupilHome {
|
|
|
- height:100%;
|
|
|
+ height: 100%;
|
|
|
flex: 1;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
overflow-y: scroll;
|
|
|
overflow-x: hidden;
|
|
|
- padding-bottom:200rpx;
|
|
|
+ padding-bottom: 200rpx;
|
|
|
|
|
|
.top-page-title {
|
|
|
text-align: center;
|
|
@@ -328,8 +338,9 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.scan_btn {
|
|
|
- z-index:10;
|
|
|
+ z-index: 10;
|
|
|
position: fixed;
|
|
|
bottom: 210rpx;
|
|
|
right: 0rpx;
|
|
@@ -337,4 +348,4 @@
|
|
|
height: 140rpx;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|