想取消详情的 距离接口请求

This commit is contained in:
A1300399510
2024-04-10 15:41:04 +08:00
parent 7f7ca20641
commit 6509b07ed9
5 changed files with 9 additions and 8 deletions

View File

@@ -522,10 +522,11 @@
</div>
</div>
</div>
<div class="dis-f jus-x pos-r">
<div class="dis-f jus-x pos-r"
v-if="distanceList[0] && distanceList[0].name && pageType != 3 && distanceList.length > 1">
<div class="distance-info-box pos-r" :class="{ 'show-distance-info-box': showDistance }"
:style="{ 'height': showDistance ? `${70 + 42 + 82 * distanceList.length - 1}px` : '0px' }">
<!-- <div class="distance-info-box pos-r" :class="{ 'show-distance-info-box': showDistance }"
:style="{ 'height': showDistance ? `${70 + 42 + 82 * distanceList.length - 1}px` : '0px' }"> -->
<div class="top-box"></div>
<div class="title-box dis-f al-item jus-x">
<span class="title">房源距离院校</span>
@@ -1510,14 +1511,14 @@ watch(route, () => {
publisherList.value = []
recommendListData.value = []
getHousingInfo()
distanceSchool()
// distanceSchool()
})
onMounted(() => {
let { id } = router.currentRoute.value.query
uniqid.value = id
getHousingInfo()
distanceSchool()
// distanceSchool()
masonryInstance = new Masonry(gridContainer.value, {
itemSelector: '.item',
gutter: 10