更新试试
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div class="item flexflex" @click="goapArtmentDetails">
|
||||
<!-- <div class="collect-box flexcenter" @click.stop="handleCollect(item)"> -->
|
||||
<!-- <img class="collect-icon" style="width: 30px; height: 30px;" src="@/assets/img/apartmentDetail/collecting-shadows.svg" /> -->
|
||||
<!-- <img class="collect-icon" src="@/assets/img/apartmentDetail/collecting-yellow-shadows.svg" /> -->
|
||||
<!-- </div> -->
|
||||
<div class="collect-box flexcenter" @click.stop="handleCollect1(item)" v-if="false">
|
||||
<img v-if="item.iscollect == 0" class="collect-icon" style="width: 30px; height: 30px;" src="@/assets/img/apartmentDetail/collecting-shadows.svg" />
|
||||
<img v-else class="collect-icon" src="@/assets/img/apartmentDetail/collecting-yellow-shadows.svg" />
|
||||
</div>
|
||||
<img class="img" v-lazy="item['image']" />
|
||||
<div class="title">{{ item["title"] }}</div>
|
||||
<div class="hint">{{ item["propaganda"] }}</div>
|
||||
@@ -51,8 +51,7 @@ const emit = defineEmits(["handlecollect"])
|
||||
const goapArtmentDetails = () => redirectToExternalWebsite(`/apartmentDetail?uniqid=${props["item"].uniqid}`)
|
||||
|
||||
// 点击收藏后传过父组件
|
||||
const handlecollect = item => {
|
||||
console.log("item", item)
|
||||
const handleCollect1 = item => {
|
||||
emit("handlecollect", item)
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user