From 7bc9fbffbfe1ce24a5de1a87542cb26dce13d728 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Wed, 23 Oct 2024 18:37:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=87=E6=8D=A2=E8=B7=AF?= =?UTF-8?q?=E7=BA=BF=E6=98=AF=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8A=E4=B8=80=E4=B8=AA=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/apartmentDetail.vue | 4 +++- src/views/detail.vue | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/apartmentDetail.vue b/src/views/apartmentDetail.vue index 22bb015..5a4d71b 100644 --- a/src/views/apartmentDetail.vue +++ b/src/views/apartmentDetail.vue @@ -225,7 +225,7 @@
{{ item.alias }}
- +
@@ -844,11 +844,13 @@ let annexSchoolList = ref([]) // 附近院校数据 let academyPitchIndex = ref(0) // 附近学校距离选中院校 下标 let targetAcademyPitch = ref({}) // 附近学校距离选中院校 数据 let specialSchoolDistance = ref(null) // 特殊的 用户带有school参数 则需要特殊显示 学校距离 +const elscrollbarRef = ref(null) // 滚动条 // 选择附近学校距离的学校下标 const selectAcademyIndex = index => { academyPitchIndex.value = index || 0 targetAcademyPitch.value = annexSchoolList.value[academyPitchIndex.value] + elscrollbarRef.value.setScrollTop(0) } // 选择附近学校距离的学校下标 diff --git a/src/views/detail.vue b/src/views/detail.vue index 4edef15..5249644 100644 --- a/src/views/detail.vue +++ b/src/views/detail.vue @@ -363,7 +363,7 @@
{{ item.alias }}
- +
@@ -1309,13 +1309,17 @@ let annexSchoolList = ref([]) // 附近院校数据 let academyPitchIndex = ref(0) // 附近学校距离选中院校 下标 let targetAcademyPitch = ref({}) // 附近学校距离选中院校 数据 let specialSchoolDistance = ref(null) // 特殊的 用户带有school参数 则需要特殊显示 学校距离 +const elscrollbarRef = ref(null) // 滚动条 // 选择附近学校距离的学校下标 const selectAcademyIndex = index => { academyPitchIndex.value = index || 0 targetAcademyPitch.value = annexSchoolList.value[academyPitchIndex.value] + elscrollbarRef.value.setScrollTop(0) } + + // 选择附近学校距离的学校下标 const selectIndex = id => { if (!id) id = pitchSchool