Kaynağa Gözat

工作台教师发展跳转

liurongli 2 hafta önce
ebeveyn
işleme
c29095faa4
1 değiştirilmiş dosya ile 3 ekleme ve 7 silme
  1. 3 7
      pages/workspace/index.vue

+ 3 - 7
pages/workspace/index.vue

@@ -157,7 +157,7 @@ const systemItems = ref([
 	{ name: '教师研修', key: 'teacherStudy', image: '/static/image/workspace/icon3.png', isLarge: false, visible: true },
 	{ name: '学生学习', key: 'studentStudy', image: '/static/image/workspace/icon4.png', isLarge: false, visible: true },
 	{ name: '智能选课', key: '', image: '/static/image/workspace/icon5.png', isLarge: false, visible: true },
-	{ name: '教师发展', key: '', image: '/static/image/workspace/icon6.png', isLarge: false, visible: true },
+	{ name: '教师发展', key: 'teacherHonor', image: '/static/image/workspace/icon6.png', isLarge: false, visible: true },
 	{ name: '协同备课', key: '', image: '/static/image/workspace/icon7.png', isLarge: false, visible: true },
 	{ name: '校内通知', key: 'notice', image: '/static/image/workspace/icon8.png', isLarge: false, visible: true },
 	{ name: '评教评学', key: '', image: '/static/image/workspace/icon9.png', isLarge: false, visible: true },
@@ -334,13 +334,9 @@ const handleSystemClick = (item) => {
 		uni.navigateTo({
 			url: '/pages/materialCollection/taskOverview/index'
 		});
-	} else if (item.key == 'teacherStudy') {//教师研修
+	} else if (item.key == 'teacherStudy' || item.key == 'studentStudy' || item.key== 'teacherHonor') {//教师研修 学生学习 教师发展
 		uni.navigateTo({
-			url: '/pages/teacherStudy/index'
-		});
-	} else if (item.key == 'studentStudy') {//学生学习
-		uni.navigateTo({
-			url: '/pages/studentStudy/index'
+			url: `/pages/${item.key}/index`
 		});
 	} else {
 		uni.showToast({ title: `即将打开:${item.name}`, icon: 'none' });