Jelajahi Sumber

精选新增地方专题和摩托车分类页面改为原来的

zhangyujun 3 tahun lalu
induk
melakukan
1d9c5e4c0e

+ 0 - 1
src/views/classify/index.vue

@@ -44,7 +44,6 @@ const {
 } = new RouterBus();
 const classData = ref();
 getTopicClass(query.path as string, query).then(({ data }) => {
-	data.data.shift();
 	classData.value = data.data;
 });
 </script>

+ 35 - 6
src/views/classifyCol/index.vue

@@ -32,6 +32,30 @@
 					<div class="icon-blue">{{ index + 1 }}</div>
 				</template>
 			</van-cell>
+			<van-cell
+				v-if="query.title !== '地方专题'"
+				@click="
+					() => {
+						push({
+							name: 'classify',
+							query: {
+								...query,
+								title: '地方专题',
+								path: 'selectDfQustionInfo',
+								sort: 4,
+							},
+						});
+					}
+				"
+				class="cell"
+				title="地方专题"
+				is-link
+				center
+				:border="false">
+				<template #icon>
+					<div class="icon-blue">{{ "地" }}</div>
+				</template>
+			</van-cell>
 		</div>
 		<div class="cell-box">
 			<van-cell
@@ -82,25 +106,30 @@ const classData = ref([]);
 getTopicClass(query.path as string, {
 	...query,
 	excellIssueName: "必学",
-}).then(({data}) => {
+}).then(({ data }) => {
 	// res.data.data.shift();
-    console.log(data)
+	console.log(data);
 	classDataLeft.value = data.data;
 	getTopicClass(query.path as string, {
 		...query,
 		excellIssueName: "新增",
 	}).then(({ data }) => {
-        
 		// data.data.shift();
-		classDataLeft.value = [...classDataLeft.value,...data.data];
+		classDataLeft.value = [...classDataLeft.value, ...data.data];
+	});
+	getTopicClass(query.path as string, {
+		...query,
+		excellIssueName: "地方",
+	}).then(({ data }) => {
+		// data.data.shift();
+		classDataLeft.value = [...classDataLeft.value, ...data.data];
 	});
 });
 
 getTopicClass(query.path as string, {
 	...query,
 	excellIssueName: "选学",
-}).then(({data}) => {
-	
+}).then(({ data }) => {
 	classDataRight.value = data.data;
 });
 </script>

+ 0 - 6
src/views/drawByBankRecord/index.vue

@@ -61,12 +61,6 @@ const getWxBankList = () => {
 		});
     
 };
-onMounted(()=>{
-	if(query){
-
-	}
-
-})
 getWxBankList()
 </script>
 

+ 14 - 1
src/views/home/children/test/components/sujectOne.vue

@@ -57,6 +57,19 @@ const vipClick = (item: any, index: number) => {
 		});
 		return;
 	}
+	if (props.query.vehicle == "摩托车") {
+		//摩托车去原来的分类页面
+		push({
+			name: "classify",
+			query: {
+				...props.query,
+				path: "selectJxQustionInfo",
+				title: "精选考题",
+				sort: 2,
+			},
+		});
+		return;
+	}
 	push(item.route);
 };
 const testList = [
@@ -213,7 +226,7 @@ const testList = [
 			display: flex;
 			justify-content: center;
 			align-items: center;
-		
+
 			cursor: pointer;
 			position: relative;
 			.icon {