租房新通知

This commit is contained in:
A1300399510
2025-02-24 18:58:33 +08:00
parent 1457029a1e
commit 6e511ab2ef
9 changed files with 276 additions and 142 deletions

View File

@@ -216,14 +216,11 @@ const getMoreScroll = () => {
// 处理列表的点击收藏
const handlecollect = uniqid => {
console.log("uniqid", uniqid)
let targetData = {}
let targetIndex = 0
let token = ""
list.value.forEach((element, index) => {
if (element.uniqid == uniqid) {
targetData = element
targetIndex = index
token = element.token || ""
}
@@ -232,7 +229,6 @@ const handlecollect = uniqid => {
api.apartmentCollection({ token }).then(res => {
if (res.code != 200) return
const data = res.data
// console.log("data", data)
list.value[targetIndex]["iscollect"] = data.status
ElMessage.success(res.message)
})

View File

@@ -697,6 +697,7 @@ onUnmounted(() => {
height: 140px;
border-radius: 15px;
margin-right: 20px;
object-fit: cover;
}
.apartment-header-content {