|
@@ -12,6 +12,7 @@
|
|
import {
|
|
import {
|
|
chemicalAioVerifyScanLogin,
|
|
chemicalAioVerifyScanLogin,
|
|
chemicalAioVerifyAppletLogin,
|
|
chemicalAioVerifyAppletLogin,
|
|
|
|
+ appBoardScanCodeVerification,
|
|
laboratoryAppletGetSubDetailInfo
|
|
laboratoryAppletGetSubDetailInfo
|
|
} from '@/pages/api/index.js'
|
|
} from '@/pages/api/index.js'
|
|
export default {
|
|
export default {
|
|
@@ -77,6 +78,9 @@
|
|
} else if (codeData.type == 12) {
|
|
} else if (codeData.type == 12) {
|
|
//化学品终端-双人认证
|
|
//化学品终端-双人认证
|
|
this.chemicalAioVerifyAppletLogin(codeData.doorId, codeData.subId, codeData.macId, codeData.code);
|
|
this.chemicalAioVerifyAppletLogin(codeData.doorId, codeData.subId, codeData.macId, codeData.code);
|
|
|
|
+ } else if (codeData.type == 13) {
|
|
|
|
+ //电子信息牌二维码-小程序扫码验证
|
|
|
|
+ this.appBoardScanCodeVerification(codeData.macId, codeData.subId);
|
|
} else if (codeData.type == 7) {
|
|
} else if (codeData.type == 7) {
|
|
//培训课程
|
|
//培训课程
|
|
uni.reLaunch({
|
|
uni.reLaunch({
|
|
@@ -176,6 +180,28 @@
|
|
});
|
|
});
|
|
}, 2000);
|
|
}, 2000);
|
|
},
|
|
},
|
|
|
|
+ //电子信息牌二维码-小程序扫码验证
|
|
|
|
+ async appBoardScanCodeVerification(macId, subId) {
|
|
|
|
+ const {
|
|
|
|
+ data
|
|
|
|
+ } = await appBoardScanCodeVerification({
|
|
|
|
+ macId: macId,
|
|
|
|
+ subId: subId,
|
|
|
|
+ userId: uni.getStorageSync('userId'),
|
|
|
|
+ });
|
|
|
|
+ uni.showToast({
|
|
|
|
+ mask: true,
|
|
|
|
+ icon: "none",
|
|
|
|
+ position: "center",
|
|
|
|
+ title: data.message,
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ uni.reLaunch({
|
|
|
|
+ url: '/pages/views/mine/mine',
|
|
|
|
+ });
|
|
|
|
+ }, 2000);
|
|
|
|
+ },
|
|
//实验室详情-跳转
|
|
//实验室详情-跳转
|
|
async laboratoryAppletGetSubDetailInfo(infoId) {
|
|
async laboratoryAppletGetSubDetailInfo(infoId) {
|
|
const {
|
|
const {
|