Authored by biao

fix issues: 1. 详情页页面,当购物车内商品为0时,购物车图标上不显示数字0. 2.购物车页面,已参加活动标题重复问题修复. code review by LZF

... ... @@ -82,6 +82,9 @@ $.ajax({
if (data.code === 200) {
count = data.data.cart_goods_count || 0;
if (count === 0) {
return false;
}
if (count > 99) {
count = '99+';
}
... ...
... ... @@ -147,12 +147,15 @@
color: #8f8f8f;
}
}
.activity{
padding: 20rem / $pxConvertRem;
font-size: 26rem / $pxConvertRem;
h1{
.activity-title{
font-size: 32rem / $pxConvertRem;
padding: 20rem / $pxConvertRem 20rem / $pxConvertRem 0;
}
.activity{
padding: 8rem / $pxConvertRem 20rem / $pxConvertRem 20rem / $pxConvertRem 32rem / $pxConvertRem;
font-size: 26rem / $pxConvertRem;
li:before {
content: "";
display: inline-block;
... ...
... ... @@ -35,13 +35,20 @@
{{/if}}
{{# promotionInfo}}
<div class="activity">
{{#if @first}}
<div class="activity-title">
<h1>已参与活动</h1>
</div>
{{/if}}
{{/ promotionInfo}}
<div class="activity">
<ul>
{{# promotionInfo}}
<li>{{name}}</li>
{{/ promotionInfo}}
</ul>
</div>
{{/ promotionInfo}}
<div class="price-compute">
<p>
... ...