From 7a4d32eaa28b082b07704b431b8717eba20fcaa1 Mon Sep 17 00:00:00 2001 From: xjs Date: Fri, 29 May 2026 13:58:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AD=A6=E6=A0=A1=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/HighSchoolDetailHeader.vue | 15 +++++++++++---- src/pages-sub/information/highSchool.vue | 19 +++++++++++++------ .../information/highSchoolDetail.vue | 13 +++---------- src/utils/systemInfo.ts | 4 ++-- 4 files changed, 29 insertions(+), 22 deletions(-) diff --git a/src/pages-sub/information/components/HighSchoolDetailHeader.vue b/src/pages-sub/information/components/HighSchoolDetailHeader.vue index f3dbf4c..1ca0937 100644 --- a/src/pages-sub/information/components/HighSchoolDetailHeader.vue +++ b/src/pages-sub/information/components/HighSchoolDetailHeader.vue @@ -20,7 +20,7 @@ const userStore = useUserStore(); const { userInfo } = storeToRefs(userStore) const isStar = ref(false) -const handlePreviewImage = (src: string, index: number) => { +const handlePreviewImage = (src: string, index: number|string) => { uni.previewImage({ urls: props.schoolDetail.imageList, current: index, @@ -44,7 +44,7 @@ const starSchool = () => { onLoad(() => { getSchoolCollection().then((resp) => { if (resp.code === 200) { - isStar.value = resp.result.some(school => school.id === props.schoolDetail.id) + isStar.value = resp.result.some((school:any) => school.id === props.schoolDetail.id) } }) }) @@ -57,8 +57,15 @@ onLoad(() => { {{ schoolDetail.schoolName }} + + + {{ new Date().getFullYear() - 1 }}招生计划完成率100% {{ feature }} {{ schoolDetail.region }}·{{ @@ -72,7 +79,7 @@ onLoad(() => { 收藏 - ([]) +const natureList = ref([]) -const schoolTypeList = ref([]) +const schoolTypeList = ref([]) const searchParams = ref({ region: null, @@ -69,7 +69,7 @@ onLoad(() => { }) const paging = ref(null) -const schoolList = ref([]) +const schoolList = ref([]) const queryList = (page: number, pageSize: number) => { getBusHightSchoolList({ data: { @@ -146,9 +146,16 @@ const handleComplete = () => { {{ val.schoolName }} - + + + + {{ new Date().getFullYear() - 1 }}招生计划完成率100% {{ feature }} + v-for="feature in val.tags.split(/[\s,,、]+/).slice(0, 2)" :key="feature">{{ feature }} {{ val.region }}·{{val.schoolNature }} diff --git a/src/pages-sub/information/highSchoolDetail.vue b/src/pages-sub/information/highSchoolDetail.vue index f3b2843..4d0bbd9 100644 --- a/src/pages-sub/information/highSchoolDetail.vue +++ b/src/pages-sub/information/highSchoolDetail.vue @@ -1,10 +1,7 @@