商品图片修改

This commit is contained in:
13713575202 2025-04-30 13:32:05 +08:00
parent 745a67adf0
commit 08743a36af
7 changed files with 5 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 401 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

View File

@ -14,7 +14,8 @@
<el-carousel-item v-for="item in tablist" :key="item"> <el-carousel-item v-for="item in tablist" :key="item">
<div class="item-warp" :style="{ 'background-image': 'url(' + getAssetsFile('images/early/back2.png') + ')' }"> <div class="item-warp" :style="{ 'background-image': 'url(' + getAssetsFile('images/early/back2.png') + ')' }">
<div class="img-wrap"> <div class="img-wrap">
<img :src="getAssetsFile(item.src)" /> <!-- <img :src="getAssetsFile(item.src)" /> -->
<el-image style="width: 100%; height: 100%; cursor: pointer" :src="getAssetsFile(item.src)" fit="cover" lazy />
</div> </div>
<div class="name"> <div class="name">
@ -59,9 +60,9 @@
import { ref, reactive, onMounted, computed } from 'vue'; import { ref, reactive, onMounted, computed } from 'vue';
import { isEmpty, getAssetsFile } from '@/utils'; import { isEmpty, getAssetsFile } from '@/utils';
let tablist = reactive([ let tablist = reactive([
{ name: '西红柿', label: '价格', src: 'images/early/tomato.jpg' }, { name: '西红柿', label: '价格', src: 'images/early/product1.png' },
{ name: '甘蔗', label: '价格', src: 'images/early/gz.jpg' }, { name: '甘蔗', label: '价格', src: 'images/early/product3.png' },
{ name: '白菜', label: '价格', src: 'images/early/bc.jpg' }, { name: '白菜', label: '价格', src: 'images/early/product2.png' },
]); ]);
let pricelist = reactive([ let pricelist = reactive([