This commit is contained in:
LinCyJang
2026-06-02 22:01:54 +08:00
+2 -5
View File
@@ -66,10 +66,11 @@
class="item"
>
<view class="bg" @click="provinceItemClick(item)">
<!-- <rich-text :nodes="item.bgHtml" /> -->
<image
:src="item.backgroundImage"
class="bg-img"
mode="aspectFill"
mode="widthFix|aspectFill"
lazy-load
/>
</view>
@@ -270,16 +271,12 @@ export default {
position: relative;
z-index: 2;
width: 100%;
padding-top: 62%;
overflow: hidden;
border-radius: 20rpx;
background-color: #f6f6f6;
.bg-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: block;
}
}