Authored by 梁志锋

Merge branch 'fix/issue' into 'develop'

解决问题

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

See merge request !48
@@ -82,6 +82,9 @@ $.ajax({ @@ -82,6 +82,9 @@ $.ajax({
82 82
83 if (data.code === 200) { 83 if (data.code === 200) {
84 count = data.data.cart_goods_count || 0; 84 count = data.data.cart_goods_count || 0;
  85 + if (count === 0) {
  86 + return false;
  87 + }
85 if (count > 99) { 88 if (count > 99) {
86 count = '99+'; 89 count = '99+';
87 } 90 }
@@ -150,12 +150,15 @@ @@ -150,12 +150,15 @@
150 float: right; 150 float: right;
151 } 151 }
152 } 152 }
  153 +
  154 + .activity-title{
  155 + font-size: 32rem / $pxConvertRem;
  156 + padding: 20rem / $pxConvertRem 20rem / $pxConvertRem 0;
  157 + }
  158 +
153 .activity{ 159 .activity{
154 - padding: 20rem / $pxConvertRem; 160 + padding: 8rem / $pxConvertRem 20rem / $pxConvertRem 20rem / $pxConvertRem 32rem / $pxConvertRem;
155 font-size: 26rem / $pxConvertRem; 161 font-size: 26rem / $pxConvertRem;
156 - h1{  
157 - font-size: 32rem / $pxConvertRem;  
158 - }  
159 li:before { 162 li:before {
160 content: ""; 163 content: "";
161 display: inline-block; 164 display: inline-block;
@@ -35,13 +35,20 @@ @@ -35,13 +35,20 @@
35 {{/if}} 35 {{/if}}
36 36
37 {{# promotionInfo}} 37 {{# promotionInfo}}
38 -<div class="activity"> 38 +{{#if @first}}
  39 +<div class="activity-title">
39 <h1>已参与活动</h1> 40 <h1>已参与活动</h1>
  41 +</div>
  42 +{{/if}}
  43 +{{/ promotionInfo}}
  44 +
  45 +<div class="activity">
40 <ul> 46 <ul>
  47 + {{# promotionInfo}}
41 <li>{{name}}</li> 48 <li>{{name}}</li>
  49 + {{/ promotionInfo}}
42 </ul> 50 </ul>
43 </div> 51 </div>
44 -{{/ promotionInfo}}  
45 52
46 <div class="price-compute"> 53 <div class="price-compute">
47 <p> 54 <p>