fix:【商城】店铺装修-商品卡片:badge 图片为空时,不进行展示

This commit is contained in:
YunaiV
2025-05-01 16:39:24 +08:00
parent 541694c9b2
commit 440422aab7
3 changed files with 8 additions and 12 deletions

View File

@@ -82,8 +82,8 @@ export const component = {
bgEndColor: '#FE832A',
imgUrl: ''
},
borderRadiusTop: 8,
borderRadiusBottom: 8,
borderRadiusTop: 6,
borderRadiusBottom: 6,
space: 8,
spuIds: [],
style: {

View File

@@ -14,7 +14,10 @@
:key="index"
>
<!-- 角标 -->
<div v-if="property.badge.show" class="absolute left-0 top-0 z-1 items-center justify-center">
<div
v-if="property.badge.show && property.badge.imgUrl"
class="absolute left-0 top-0 z-1 items-center justify-center"
>
<el-image fit="cover" :src="property.badge.imgUrl" class="h-26px w-38px" />
</div>
<!-- 商品封面图 -->