diff --git a/src/assets/images/seller/selectCollectionNullStatus.png b/src/assets/images/seller/selectCollectionNullStatus.png new file mode 100644 index 00000000..56ecc260 Binary files /dev/null and b/src/assets/images/seller/selectCollectionNullStatus.png differ diff --git a/src/views/SellerDashboard/MyListings/createSelect/historyList.vue b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue index bcd2ed6c..8452f7b6 100644 --- a/src/views/SellerDashboard/MyListings/createSelect/historyList.vue +++ b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue @@ -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})
-
+
+
+ +
{{item.name}}
@@ -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%; diff --git a/src/views/SellerDashboard/MyListings/createSelectItem/index.vue b/src/views/SellerDashboard/MyListings/createSelectItem/index.vue index 32b7c9ed..78653341 100644 --- a/src/views/SellerDashboard/MyListings/createSelectItem/index.vue +++ b/src/views/SellerDashboard/MyListings/createSelectItem/index.vue @@ -83,7 +83,7 @@ const setDomSize = (width: number)=>{ if(!listingsBoxRef.value)return let listDom = listingsBoxRef.value.querySelector('.list') let listItemDom = listDom.querySelector('.item') - let offsetWidth = listItemDom.getBoundingClientRect().width + let offsetWidth = listItemDom?.getBoundingClientRect?.()?.width let lineNum = Math.floor(width / offsetWidth) let itemNum = Math.floor((width - (lineNum - 1) * parseInt(gap.value[domSize.value])) / offsetWidth) listDom.style.maxWidth = ((itemNum - 1) * parseInt(gap.value[domSize.value]) + itemNum * (offsetWidth)) + 'px' diff --git a/src/views/SellerDashboard/MyListings/main/content.vue b/src/views/SellerDashboard/MyListings/main/content.vue index 4bf01e5b..4e1dcfc5 100644 --- a/src/views/SellerDashboard/MyListings/main/content.vue +++ b/src/views/SellerDashboard/MyListings/main/content.vue @@ -192,7 +192,7 @@ const setDomSize = (width: number)=>{ if(!listingsBoxRef.value)return let listDom = listingsBoxRef.value.querySelector('.list') let listItemDom = listDom.querySelector('.item') - let offsetWidth = listItemDom.getBoundingClientRect().width + let offsetWidth = listItemDom?.getBoundingClientRect?.()?.width let lineNum = Math.floor(width / offsetWidth) let itemNum = Math.floor((width - (lineNum - 1) * parseInt(gap.value[domSize.value])) / offsetWidth) listDom.style.maxWidth = ((itemNum - 1) * parseInt(gap.value[domSize.value]) + itemNum * (offsetWidth)) + 'px' diff --git a/src/views/SellerDashboard/MyListings/main/contentItem.vue b/src/views/SellerDashboard/MyListings/main/contentItem.vue index 4ed9161e..cc088540 100644 --- a/src/views/SellerDashboard/MyListings/main/contentItem.vue +++ b/src/views/SellerDashboard/MyListings/main/contentItem.vue @@ -58,7 +58,7 @@ const {} = toRefs(data);
- {{ item.price }} + {{ item.salesVolume || 0 }}