This commit is contained in:
X1627315083@163.com
2026-04-28 15:30:47 +08:00
parent 00d488cbc2
commit 7115feb20c
5 changed files with 17 additions and 5 deletions

View File

@@ -41,7 +41,10 @@ const getCreateList = ()=>{
})
}
const selectCollectionItem = (item:any)=>{
emit('selectCollectionItem',item)
console.log(item)
if(item.userLikeGroupVO?.groupDetails?.length > 0){
emit('selectCollectionItem',item)
}
}
onMounted(()=>{
getCreateList()
@@ -55,9 +58,12 @@ defineExpose({getCreateList})
<div class="list">
<div v-for="(item,index) in list" :key="index" class="item" @click="selectCollectionItem(item)">
<div class="imgList">
<div v-for="(img,index) in item.userLikeGroupVO?.groupDetails" :key="index" class="img">
<div v-if="item.userLikeGroupVO?.groupDetails?.length > 0" v-for="(img,index) in item.userLikeGroupVO?.groupDetails" :key="index" class="img">
<img :src="img.url" alt="">
</div>
<div v-else class="img null">
<img src="@/assets/images/seller/selectCollectionNullStatus.png" alt="">
</div>
</div>
<div class="detail">
<div class="name">{{item.name}}</div>
@@ -123,6 +129,12 @@ defineExpose({getCreateList})
border-radius: 1rem;
overflow: hidden;
background-color: #fff;
&.null{
background-color: transparent;
> img{
object-fit: contain;
}
}
> img{
object-fit: cover;
height: 100%;