Browse Source

去除首页的科目二和科目三,因为生活圈没了

JXDS18FUJT 1 year ago
parent
commit
3ffeb011cd
2 changed files with 23 additions and 25 deletions
  1. 0 2
      src/hooks/exercise/list.ts
  2. 23 23
      src/views/home/children/test/index.vue

+ 0 - 2
src/hooks/exercise/list.ts

@@ -5,14 +5,12 @@ import { CollectionModel } from "@/model/collection";
 /**获取题目列表 */
 export const useSubjectList = (type: ExerciseType.ListType) => {
 	type TestModelListResType = Awaited<ReturnType<typeof testModel.getList | typeof testModel.getFreeList>>;
-
 	const subjectList = ref<TestModelListResType["list"]>([]); //题目列表
 	const subjectTotal = ref(0); //题目总数
 	const query = useRoute().query; //路由query参数
 	const currentSubjectIndex = ref(0); //当前题目下标
 	const vehicle = useRouter().currentRoute.value.query.vehicle as string; //路由qvehicle参数
 	const subject = useRouter().currentRoute.value.query.subject as string; //路由subject参数
-
 	onBeforeMount(async () => {
 		let res: TestModelListResType;
 		if (type == "normal" || type == "test") {

+ 23 - 23
src/views/home/children/test/index.vue

@@ -16,9 +16,9 @@
 			<van-tabs class="test-type" animated>
 				<van-tab :title="sujectItem.name" v-for="(sujectItem, index) in carTypeItem.sujectList" :key="index" :name="sujectItem.name">
 					<sujectOne v-if="index == 0"  :query="{ ...carTypeItem.query, ...sujectItem.query, title: '模拟考试' }"></sujectOne>
-					 <sujectTwo v-if="index == 1" ></sujectTwo>
-					<sujectThree v-if="index == 2" :query="{ ...carTypeItem.query, ...sujectItem.query, title: '模拟考试' }"></sujectThree>
-					<sujectOne v-if="index == 3"  :query="{ ...carTypeItem.query, ...sujectItem.query, title: '模拟考试' }"></sujectOne>
+					 <!-- <sujectTwo v-if="index == 1" ></sujectTwo>
+					<sujectThree v-if="index == 2" :query="{ ...carTypeItem.query, ...sujectItem.query, title: '模拟考试' }"></sujectThree> -->
+					<sujectOne v-if="index == 1"  :query="{ ...carTypeItem.query, ...sujectItem.query, title: '模拟考试' }"></sujectOne>
 				</van-tab>
 			</van-tabs>
 		</van-tab>
@@ -99,26 +99,26 @@ const carTypeList = ref([
 					model:"cart"
 				},
 			},
-			{
-				name: "科目二",
-				query: {
-					name: "科目二",
-					cert: "C1/C2/C3",
-					vehicle: "小车",
-					subject: 2,
-					model:"cart"
-				},
-			},
-			{
-				name: "科目三",
-				query: {
-					name: "科目三",
-					cert: "C1/C2/C3",
-					vehicle: "小车",
-					subject: 3,
-					model:"cart"
-				},
-			},
+			// {
+			// 	name: "科目二",
+			// 	query: {
+			// 		name: "科目二",
+			// 		cert: "C1/C2/C3",
+			// 		vehicle: "小车",
+			// 		subject: 2,
+			// 		model:"cart"
+			// 	},
+			// },
+			// {
+			// 	name: "科目三",
+			// 	query: {
+			// 		name: "科目三",
+			// 		cert: "C1/C2/C3",
+			// 		vehicle: "小车",
+			// 		subject: 3,
+			// 		model:"cart"
+			// 	},
+			// },
 			{
 				name: "科目四",
 				query: {