修改几个问题

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -61,8 +61,8 @@ const goapArtmentDetails = () => {
//
const handleCollect1 = uniqid => emit("handlecollect", uniqid)
const loadload = () => {
props.masonryInstance.reloadItems()
props.masonryInstance.layout()
props.masonryInstance && props.masonryInstance.reloadItems()
props.masonryInstance && props.masonryInstance.layout()
}
</script>

View File

@ -170,6 +170,8 @@
</div>
</div>
</template>
<div class="end" v-if="page == 0">- end -</div>
</div>
</div>
</div>
@ -204,13 +206,13 @@ let qrcode = ref("") // 关注二维码
let issubscribe = ref(0) //
let list = ref([]) //
let state = ref(false) //
let page = 1 //
let page = ref(1) //
const init = () => {
if (page == 0 || state.value) return
if (page.value == 0 || state.value) return
state.value = true
proxy
.$post("/tenement/pc/api/user/messageList", {
page,
page: page.value,
})
.then(res => {
if (res.code != 200) {
@ -222,7 +224,7 @@ const init = () => {
qrcode.value = data["qrcode"]
issubscribe.value = data["issubscribe"]
list.value = list.value.concat(data["data"])
page = data["page"] * data["limit"] < data["count"] ? page + 1 : 0
page.value = data["page"] * data["limit"] < data["count"] ? page.value + 1 : 0
show.value = true
})
.catch(err => {
@ -234,7 +236,7 @@ const init = () => {
}
const handleScroll = event => {
if (page == 0 || state.value) return
if (page.value == 0 || state.value) return
const scrollContainer = event.target //
const scrollHeight = scrollContainer.scrollHeight //
const scrollTop = scrollContainer.scrollTop //
@ -448,6 +450,13 @@ const goDetail = (uniqid, status) => {
}
}
}
.end {
color: #7f7f7f;
font-size: 13px;
text-align: center;
margin: 10px 0;
}
}
.QR-code {

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) {