Authored by QC-L

修复首页 image 尺寸不对溢出的问题

... ... @@ -4,7 +4,9 @@
{{#each prdList}}
<div id="{{../../template_id}}" name="{{../../template_intro}}" class="product-item" data-product-skn="{{productSkn}}"
data-activity-id="{{activityId}}">
<img src="{{image2 defaultImages w=188 h=250 q=60 mode=3}}"></img>
<view class="product-image-bg">
<img src="{{image2 defaultImages w=188 h=250 q=60 mode=3}}"></img>
</view>
<div class="product-name">{{brandName}}</div>
<div class='product-price-wrap'>
<span class='product-price'>{{formatCollagePrice}}</span>
... ...
... ... @@ -17,6 +17,13 @@
}
}
.product-image-bg {
display: block;
width: 188px;
overflow: hidden;
height: 250px;
}
.product-name {
text-align: center;
font-size: 24px;
... ...