|
@@ -115,7 +115,7 @@
|
|
|
created() {
|
|
|
if (pageRestrictVerify('dataBoard')) {
|
|
|
this.dataPageType = true;
|
|
|
- if(!uni.getStorageSync('dataBoardType')){
|
|
|
+ if (!uni.getStorageSync('dataBoardType')) {
|
|
|
this.pageType = 1;
|
|
|
uni.setStorageSync('dataBoardType', true);
|
|
|
}
|
|
@@ -125,7 +125,7 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- goHome(){
|
|
|
+ goHome() {
|
|
|
this.pageType = 2;
|
|
|
},
|
|
|
goPage(type) {
|
|
@@ -150,8 +150,8 @@
|
|
|
if (type == 'dataBoard') {
|
|
|
//数据看板
|
|
|
this.pageType = 1;
|
|
|
-
|
|
|
- }else if (type == 'securityCheck') {
|
|
|
+
|
|
|
+ } else if (type == 'securityCheck') {
|
|
|
//安全检查
|
|
|
this.getGentleIdentifier();
|
|
|
} else if (type == 'securityExamination') {
|
|
@@ -250,17 +250,18 @@
|
|
|
onlyFromCamera: true,
|
|
|
success: function(res) {
|
|
|
let list = res.result.split("?")[1].split("&");
|
|
|
- let codeData = {};
|
|
|
+ let codeData = {};
|
|
|
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.redirectTo({
|
|
|
url: '/pages/views/saoCode/saoCode?q=' + encodeURIComponent(res.result)
|
|
|
});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
uni.showToast({
|
|
|
mask: true,
|
|
|
icon: "none",
|
|
@@ -448,8 +449,9 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.scan_btn {
|
|
|
- z-index:10;
|
|
|
+ z-index: 10;
|
|
|
position: fixed;
|
|
|
bottom: 210rpx;
|
|
|
right: 0rpx;
|