修改几个问题
This commit is contained in:
parent
6e511ab2ef
commit
68706050a0
BIN
src/assets/img/detail/timeIcon.png
Normal file
BIN
src/assets/img/detail/timeIcon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
@ -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>
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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>
|
||||
|
@ -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">
|
||||
|
@ -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,
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user