feat: 优化图标路径

This commit is contained in:
chenli
2026-01-29 22:45:47 +08:00
parent 3a92479126
commit 52bfe02beb
14 changed files with 22 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 249 B

View File

Before

Width:  |  Height:  |  Size: 208 B

After

Width:  |  Height:  |  Size: 208 B

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -13,7 +13,7 @@
<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>
<image v-show="!!imgId[item.id]" class="item-img" :src="`/static/image/${item.id}.png`"></image>
<!-- 使用 iconify-icon 渲染 ep 系列图标 -->
<!-- <iconify-icon
:icon="item.icon"
@@ -76,6 +76,16 @@
computed: {
tabType() {
return this.tabList[this.current].type
},
imgId(){
return {
1963446794006355970 : '动土作业',
1963872316314165250 : '动火作业',
1964898396173070337 : '有限空间',
1964261054499336194 : '临时用电',
1964253329070571521 : '高处作业',
1964210049770401793 : '吊装作业'
}
}
},
watch: {