|
@@ -35,7 +35,7 @@
|
|
|
})
|
|
|
if (!uni.getStorageSync('token')) {
|
|
|
uni.setStorageSync('codeData', codeData);
|
|
|
- uni.redirectTo({
|
|
|
+ uni.reLaunch({
|
|
|
url: '/pages/login/login',
|
|
|
});
|
|
|
} else {
|
|
@@ -66,7 +66,7 @@
|
|
|
duration: 2000
|
|
|
});
|
|
|
setTimeout(function() {
|
|
|
- uni.redirectTo({
|
|
|
+ uni.reLaunch({
|
|
|
url: '/pages/views/home/home',
|
|
|
});
|
|
|
}, 2000);
|
|
@@ -79,17 +79,17 @@
|
|
|
this.chemicalAioVerifyAppletLogin(codeData.doorId, codeData.subId, codeData.macId, codeData.code);
|
|
|
} else if (codeData.type == 7) {
|
|
|
//培训课程
|
|
|
- uni.redirectTo({
|
|
|
+ uni.reLaunch({
|
|
|
url: '/pages/views/pages_patrolInspector/courseQRcode?code=' + codeData.code,
|
|
|
});
|
|
|
} else if (codeData.type == 8) {
|
|
|
//化学品柜
|
|
|
- uni.redirectTo({
|
|
|
+ uni.reLaunch({
|
|
|
url: '/pages/views/pages_patrolInspector/chemicalCabinetQRcode?code=' + codeData.code,
|
|
|
});
|
|
|
} else if (codeData.type == 9) {
|
|
|
//化学品
|
|
|
- uni.redirectTo({
|
|
|
+ uni.reLaunch({
|
|
|
url: '/pages/views/pages_patrolInspector/chemicalDetail?code=' + codeData.code,
|
|
|
});
|
|
|
} else if (codeData.type == 1 || codeData.type == 2 || codeData.type == 3) {
|
|
@@ -109,7 +109,7 @@
|
|
|
duration: 2000
|
|
|
});
|
|
|
setTimeout(function() {
|
|
|
- uni.redirectTo({
|
|
|
+ uni.reLaunch({
|
|
|
url: '/pages/views/home/home',
|
|
|
});
|
|
|
}, 2000);
|
|
@@ -122,7 +122,7 @@
|
|
|
duration: 2000
|
|
|
});
|
|
|
setTimeout(function() {
|
|
|
- uni.redirectTo({
|
|
|
+ uni.reLaunch({
|
|
|
url: '/pages/views/home/home',
|
|
|
});
|
|
|
}, 2000);
|
|
@@ -147,7 +147,7 @@
|
|
|
duration: 2000
|
|
|
});
|
|
|
setTimeout(function() {
|
|
|
- uni.redirectTo({
|
|
|
+ uni.reLaunch({
|
|
|
url: '/pages/views/mine/mine',
|
|
|
});
|
|
|
}, 2000);
|
|
@@ -171,7 +171,7 @@
|
|
|
duration: 2000
|
|
|
});
|
|
|
setTimeout(function() {
|
|
|
- uni.redirectTo({
|
|
|
+ uni.reLaunch({
|
|
|
url: '/pages/views/mine/mine',
|
|
|
});
|
|
|
}, 2000);
|
|
@@ -184,7 +184,7 @@
|
|
|
infoId: infoId
|
|
|
});
|
|
|
if (data.code == 200) {
|
|
|
- uni.redirectTo({
|
|
|
+ uni.reLaunch({
|
|
|
url: '/pages_manage/views/laboratory/infoPage?infoData=' + encodeURIComponent(JSON.stringify(data.data))+'&saoCode=true'
|
|
|
});
|
|
|
}
|