Bladeren bron

改为考试系统

tanxue 2 weken geleden
bovenliggende
commit
a02ea4a771
4 gewijzigde bestanden met toevoegingen van 31 en 10 verwijderingen
  1. 12 0
      pages.json
  2. 1 1
      pages/exam/index.vue
  3. 10 9
      pages/index/index.vue
  4. 8 0
      pages/lianxi/index.vue

+ 12 - 0
pages.json

@@ -24,6 +24,12 @@
 			}
 		},
 		{
+			"path": "pages/lianxi/index",
+			"style": {
+				"navigationStyle": "custom"
+			}
+		},
+		{
 			"path": "pages/my/index",
 			"style": {
 				"navigationStyle": "custom"
@@ -78,6 +84,12 @@
 				"text": "成绩"
 			},
 			{
+				"pagePath": "",
+				"iconPath": "static/images/tabbar/unselect/practise-sj.png",
+				"selectedIconPath": "static/images/tabbar/select/practise-sj.png",
+				"text": "练习"
+			},
+			{
 				"pagePath": "pages/my/index",
 				"iconPath": "static/images/tabbar/unselect/my-sj.png",
 				"selectedIconPath": "static/images/tabbar/select/my-sj.png",

+ 1 - 1
pages/exam/index.vue

@@ -1,5 +1,5 @@
 <template>
-	<customNavbarVue title=""></customNavbarVue>
+	<customNavbarVue title="考试"></customNavbarVue>
 	<custom-scroll-list :refreshFn="getExamList" :tabList="tabData" :defaultTab="1" ref="scrollRef">
 		<template #default="{list}">
 			<scroll-list-card v-for="(item,index) in list" :key="item.ksId" :data="item"

+ 10 - 9
pages/index/index.vue

@@ -86,13 +86,14 @@
 
 	const statusCodeKc = ref(['未开始', '可以学习', '已学完', '学习中', '已结束']);
 	const statusCodeKs = ref(['未开始', '可以考试', '再次考试', '考试中', '已结束', '未报名', '报名审核中', '审核未通过', '等待人工评分']);
-	let menuList = ref([{
+	let menuList = ref([
+		{
 			url: '',
-			text: '我的课程',
+			text: '我的考试',
 		},
 		{
 			url: '',
-			text: '我的考试',
+			text: '我的成绩',
 		},
 		{
 			url: '',
@@ -166,16 +167,16 @@
 				/* uni.switchTab({
 					url: '/pages/course/index'
 				}); */
-				uni.showToast({
-					icon: 'none',
-					title: '开发中,敬请期侍!',
-				})
-				return false
+				uni.switchTab({
+					url: '/pages/exam/index'
+				});
 				break;
+				
 			case 1:
 				uni.switchTab({
-					url: '/pages/exam/index'
+					url: '/pages/score/index'
 				});
+				return false
 				break;
 			case 2:
 				uni.showToast({

+ 8 - 0
pages/lianxi/index.vue

@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>