租房新通知
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
@@ -697,6 +697,7 @@ onUnmounted(() => {
|
||||
height: 140px;
|
||||
border-radius: 15px;
|
||||
margin-right: 20px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.apartment-header-content {
|
||||
|
||||
Reference in New Issue
Block a user