修改几个问题

This commit is contained in:
A1300399510
2025-02-25 19:18:25 +08:00
parent 6e511ab2ef
commit 68706050a0
10 changed files with 53 additions and 20 deletions

View File

@@ -6,7 +6,7 @@
<breadcrumb :data="housingInfo['data']" :operation="setOperation"></breadcrumb>
<div class="dis-f jus-bet" style="margin-top: -15px;">
<div class="info-box">
<div class="top-bar-box dis-f jus-x">
<div class="top-bar-box dis-f jus-x" :class="{ 'intermediary': housingInfo['data'] && (housingInfo['data'].isintermediary == 1 || housingInfo['data'].info.verified) }">
<div class="top-bar dis-f al-item jus-bet">
<div class="dis-f al-item">
<img src="../assets/img/detail/authenticationHousing.png" class="authentication-housing" v-if="pageType == 1 && housingInfo['data'] && housingInfo['data'].info.verified" alt="" />
@@ -497,7 +497,7 @@
</div>
</div>
<div class="dis-f al-item jus-x time-box">
<img src="../assets/img/detail/timeIcon.svg" class="icon" alt="" />
<img src="../assets/img/detail/timeIcon.png" class="icon" alt="" />
<span> {{ checkUpdateTime(housingInfo["data"] && housingInfo["data"].info.updatetime) }}更新 </span>
</div>
<div v-if="checkUpdateTime(housingInfo['data'] && housingInfo['data'].info.updatetime)">
@@ -1840,6 +1840,12 @@ img {
bottom: 10px;
z-index: 1002;
&.intermediary {
.line {
margin: 0 10px;
}
}
.line {
width: 1px;
height: 19px;
@@ -1921,7 +1927,7 @@ img {
width: 199px;
height: 48px;
background: inherit;
background-color: #f3f5f6;
background-color: #f3f5f6;
box-sizing: border-box;
border-width: 1px;
border-style: solid;
@@ -2188,7 +2194,7 @@ img {
font-family: "Arial-Black", "Arial Black", sans-serif;
font-weight: 900;
color: #000000;
line-height: 13px;
// line-height: 13px;
}
.line-h-17 {
@@ -3166,5 +3172,4 @@ img {
}
}
}
</style>

View File

@@ -43,7 +43,6 @@
</div>
</div>
</div>
<div class="two-list flexflex" v-else>
<div class="left">
<div class="item flexacenter" v-for="(item, index) in typeData" :key="index">

View File

@@ -91,6 +91,7 @@ onMounted(() => {
onUnmounted(() => {
window.removeEventListener("scroll", handleScroll)
window.removeEventListener("scroll", getMoreScroll, true)
})
let loading = null // 加载
@@ -179,7 +180,6 @@ let moreLoading = ref(false)
// 加载更多数据列表
const getMoreList = () => {
if (morePage.value == 0 || moreLoading.value) return
console.log("11111")
moreLoading.value = true
let postData = {
page: morePage.value,

View File

@@ -60,7 +60,6 @@ provide("count", dataCount)
let school = ref("") // 单独提前 选中的学校id 需要 在跳转页面中使用
//轮播
// let bannerList = reactive({ data: [] })
// let banner = () => {
@@ -169,6 +168,12 @@ const getMoreList = data => {
.then(res => {
if (res.code != 200) return
const data = res.data
if (Array.isArray(data)) {
morePage.value = 0
moreLoading.value = false
window.removeEventListener("scroll", getMoreScroll, true)
return
}
moreList.value = moreList.value.concat(data.data)
moreState.value = true
if (data.data && data.data.length < data.limit) morePage.value = 0
@@ -210,6 +215,7 @@ onMounted(() => {
onBeforeUnmount(() => {
window.removeEventListener("scroll", downLoadMore, true)
window.removeEventListener("scroll", getMoreScroll, true)
})
</script>
<style scoped lang="less">

View File

@@ -152,6 +152,12 @@ const getMoreList = data => {
api.getMoreLists(postData).then(res => {
if (res.code != 200) return
const data = res.data
if (Array.isArray(data)) {
morePage.value = 0
moreLoading.value = false
window.removeEventListener("scroll", getMoreScroll, true)
return
}
moreList.value = moreList.value.concat(data.data)
moreState.value = true
if (data.data && data.data.length < data.limit) morePage.value = 0
@@ -194,6 +200,7 @@ onMounted(() => {
onBeforeUnmount(() => {
window.removeEventListener("scroll", downLoadMore, true)
window.removeEventListener("scroll", getMoreScroll, true)
})
</script>
<style scoped lang="less">

View File

@@ -162,6 +162,12 @@ const getMoreList = data => {
api.getMoreLists(postData).then(res => {
if (res.code != 200) return
const data = res.data
if (Array.isArray(data)) {
morePage.value = 0
moreLoading.value = false
window.removeEventListener("scroll", getMoreScroll, true)
return
}
moreList.value = moreList.value.concat(data.data)
moreState.value = true
if (data.data && data.data.length < data.limit) morePage.value = 0
@@ -215,6 +221,7 @@ onMounted(() => {
onBeforeUnmount(() => {
window.removeEventListener("scroll", downLoadMore, true)
window.removeEventListener("scroll", getMoreScroll, true)
})
</script>
<style scoped lang="less">

View File

@@ -8,7 +8,7 @@
<biserialItem v-for="(item, i) in pageList" :key="i" :item="item"></biserialItem>
</div>
<div class="body-maxWidth" v-show="seachSelectData.data && seachSelectData.data.tabType === 'apartment' && dataList.data && dataList.data.length > 0" ref="gridContainer">
<apartment-item v-for="(item, index) in listApartment" :key="index" :item="item"></apartment-item>
<apartment-item v-for="(item, index) in listApartment" :key="index" :item="item" :masonryInstance="masonryInstance"></apartment-item>
</div>
<div class="dis-f jus-x no-list-box al-item" v-show="dataList.data && dataList.data.length === 0">
<noList hintText="暂无搜索结果" hintTextTwo="建议更换搜索关键词,或放宽筛选条件"></noList>
@@ -77,9 +77,9 @@ let setInitial = () => {
//获取搜索数据
let getDataList = (data, type = true) => {
console.log("11414");
// console.log("11414");
// console.log(data,type)
console.log(type);
// console.log(type);
if (!type) {
//是否继续搜索
seachSelectData.data.tabType !== "apartment" ? (pageList.value = []) : (listApartment.value = [])
@@ -102,7 +102,7 @@ let getDataList = (data, type = true) => {
} else {
seachApi = api.apartment(postData)
}
console.log("555");
// console.log("555");
seachApi.then(res => {
if (res.code === 200) {
// console.log(res.data)
@@ -174,7 +174,7 @@ onMounted(() => {
})
masonryInstance = new Masonry(gridContainer.value, {
itemSelector: ".item",
gutter: 20,
gutter: 15,
})
routeQuery.data = route.currentRoute.value.query
if (routeQuery.data.keyword && routeQuery.data.keyword.replace(/\s/g, "") && routeQuery.data.houseingPageType != 6) {