dedsudiyu 1 day ago
parent
commit
6ba3cc25aa
2 changed files with 4 additions and 2 deletions
  1. 2 1
      pages/views/pupilPage/pupilHome.vue
  2. 2 1
      pages/views/teacherPage/teacherHome.vue

+ 2 - 1
pages/views/pupilPage/pupilHome.vue

@@ -138,6 +138,7 @@
 		},
 		},
 		methods: {
 		methods: {
 			goPage(type) {
 			goPage(type) {
+				console.log('type',type)
 				if (!type) {
 				if (!type) {
 					uni.showToast({
 					uni.showToast({
 						title: '暂未开放',
 						title: '暂未开放',
@@ -147,7 +148,7 @@
 					});
 					});
 					return
 					return
 				}
 				}
-				if(type = 'safetyEducationExamination'){
+				if(type == 'safetyEducationExamination'){
 					//教育考试-临时
 					//教育考试-临时
 					uni.navigateTo({
 					uni.navigateTo({
 						url: "/pages_safetyEducationExamination/views/home/index",
 						url: "/pages_safetyEducationExamination/views/home/index",

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

@@ -199,6 +199,7 @@
 				this.pageType = 2;
 				this.pageType = 2;
 			},
 			},
 			goPage(type) {
 			goPage(type) {
+				console.log('type',type)
 				if (!type) {
 				if (!type) {
 					uni.showToast({
 					uni.showToast({
 						title: '暂未开放',
 						title: '暂未开放',
@@ -208,7 +209,7 @@
 					});
 					});
 					return
 					return
 				}
 				}
-				if(type = 'safetyEducationExamination'){
+				if(type == 'safetyEducationExamination'){
 					//教育考试-临时
 					//教育考试-临时
 					uni.navigateTo({
 					uni.navigateTo({
 						url: "/pages_safetyEducationExamination/views/home/index",
 						url: "/pages_safetyEducationExamination/views/home/index",