修改几个问题

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

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