feat: image标签替换成class名称

This commit is contained in:
duanshuwen
2025-09-21 19:01:44 +08:00
parent ae547f7f81
commit 392def8686
12 changed files with 80 additions and 120 deletions

View File

@@ -12,7 +12,11 @@
>
<swiper-item v-for="item in activityList" :key="item.id">
<view class="swiper-item" @click="handleClick(item)">
<image :src="item.activityCover" mode="aspectFill"></image>
<image
class="swiper-img"
:src="item.activityCover"
mode="aspectFill"
></image>
<view class="corner-btn">快速预定</view>
</view>
</swiper-item>

View File

@@ -15,7 +15,7 @@
line-height: 120px;
text-align: center;
image {
.swiper-img {
width: 100%;
height: 100%;
border-radius: 8px;