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 @@