feat: 修改图片显示问题

This commit is contained in:
chenli
2026-01-29 11:43:02 +08:00
parent 82ea0103b6
commit 112a036dd5
15 changed files with 16 additions and 18 deletions

View File

@@ -12,13 +12,15 @@
<!-- 遍历渲染业务图标 -->
<view class="item u-flex-col" v-for="(item,index) in cardData" :key="index" @click="clickItem(item)">
<view class="item-icon" :style="{ background: item.iconBackground || '#008cff' }">
<image class="item-img" :src="`/static/image/${item.name}.png`"></image>
<!-- 使用 iconify-icon 渲染 ep 系列图标 -->
<iconify-icon
<!-- <iconify-icon
:icon="item.icon"
color="#ffffff"
width="24"
height="24"
></iconify-icon>
></iconify-icon> -->
</view>
<view class="item-title u-m-t-8">{{item.name}}</view>
</view>
@@ -184,6 +186,10 @@
margin: 0;
}
}
.item-img {
width: 60%;
height: 60%;
}
.more {
background: #ececec;