Authored by biao

update to add good name for recommend-for-you. code review by HongFei

... ... @@ -37,10 +37,18 @@
}
}
}
.sale-name {
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
white-space: nowrap;
margin-top: pxToRem(20px);
color: gray;
}
.price {
position: relative;
margin-top: pxToRem(20px);
margin-top: pxToRem(8px);
font-size: pxToRem(24px);
line-height: 1;
... ...
... ... @@ -4,6 +4,9 @@
{{#recommendList}}
<a class="swiper-slide" href="{{url}}">
<img class="swiper-lazy img-box" data-src="{{thumb}}">
<div class="sale-name">
{{name}}
</div>
<div class="price">
<span class="sale-price {{^price}}no-price{{/price}}">¥{{salePrice}}</span>
{{#price}}<span class="old-price">¥{{.}}</span>{{/price}}
... ...