dedsudiyu il y a 9 mois
Parent
commit
b8d808b5b5
2 fichiers modifiés avec 11 ajouts et 11 suppressions
  1. 10 10
      pages/views/saoCode/saoCode.vue
  2. 1 1
      pages/views/teacherPage/teacherHome.vue

+ 10 - 10
pages/views/saoCode/saoCode.vue

@@ -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'
 					});
 				}

+ 1 - 1
pages/views/teacherPage/teacherHome.vue

@@ -258,7 +258,7 @@
 							5 || codeData.type == 7 ||
 							codeData.type == 8 || codeData.type == 9 || codeData.type == 10 ||
 							codeData.type == 11 || codeData.type == 12) {
-							uni.redirectTo({
+							uni.reLaunch({
 								url: '/pages/views/saoCode/saoCode?q=' + encodeURIComponent(res.result)
 							});
 						} else {