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>
<!-- 商品封面图 -->

View File

@ -62,20 +62,13 @@
/>
</template>
</el-table-column>
<el-table-column label="模板名称" align="center" prop="name" />
<el-table-column label="模板名称" align="center" prop="name" min-width="180" />
<el-table-column label="是否使用" align="center" prop="used">
<template #default="scope">
<dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="scope.row.used" />
</template>
</el-table-column>
<el-table-column
label="使用时间"
align="center"
prop="usedTime"
:formatter="dateFormatter"
width="180px"
/>
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="备注" align="center" prop="remark" min-width="180" />
<el-table-column
label="创建时间"
align="center"