@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user