From e20df289b71ab441f2f19f2629832f5c83850cf8 Mon Sep 17 00:00:00 2001 From: xjs Date: Mon, 7 Apr 2025 11:59:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=95=8C=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/sort-college/CollegeItem.vue | 95 ++++++++++++--------- src/views/sort-college.vue | 9 +- 2 files changed, 61 insertions(+), 43 deletions(-) diff --git a/src/components/sort-college/CollegeItem.vue b/src/components/sort-college/CollegeItem.vue index 6f10c8b..5402f2a 100644 --- a/src/components/sort-college/CollegeItem.vue +++ b/src/components/sort-college/CollegeItem.vue @@ -2,19 +2,21 @@
+ class="flex flex-col items-center gap-[16rpx] custom-background px-[32rpx] no-copy" + :style="`--background-color:${calcTypeName(college.type).style.backgroundColor}`" + @copy.prevent + @contextmenu.prevent>
- {{ collegeIndex+1 }} + {{ collegeIndex + 1 }}
{{ calcTypeName(college.type).text }}
- {{ Math.round(college.vItems.reduce((a:number, b:any) => a + Number(b.percentAge.replace("%", "")), 0) / college.vItems.length) }}% + {{ Math.round(college.vItems.reduce((a: number, b: any) => a + Number(b.percentAge.replace("%", "")), 0) / college.vItems.length) }}%
@@ -23,73 +25,82 @@ {{ college.unName }} {{ college.ownership }}·{{ college.educationCategory }}
- {{ college.features.slice(0, 3).join("/") }}/ + {{ college.features.slice(0, 3).join("/") }}/ 排名{{ college.rank }}
代码{{ college.unCode }} - {{ college.year }}计划{{ college.vItems.reduce((a:number, b:any) => a + b.planCount, 0) }}人 + {{ college.year }}计划{{ college.vItems.reduce((a: number, b: any) => a + b.planCount, 0) }}人 {{ college.subjectType }}
-
+
- +
- - - + + +
- diff --git a/src/views/sort-college.vue b/src/views/sort-college.vue index 2faadb7..bc05f8c 100644 --- a/src/views/sort-college.vue +++ b/src/views/sort-college.vue @@ -2,12 +2,13 @@
+