Authored by 王水玲

tab 修改

@@ -11,11 +11,9 @@ @@ -11,11 +11,9 @@
11 <input id="latest-walk-count" type="hidden" value="{{latestWalk}}"> 11 <input id="latest-walk-count" type="hidden" value="{{latestWalk}}">
12 <div class="latest-walk"> 12 <div class="latest-walk">
13 <div id="latest-walk-goods" class="goods clearfix"></div> 13 <div id="latest-walk-goods" class="goods clearfix"></div>
14 - {{#unless latestWalk}}  
15 - <p class="null-data">  
16 - 无最近浏览的商品  
17 - </p>  
18 - {{/unless}} 14 + <p class="null-data">
  15 + 无最近浏览的商品
  16 + </p>
19 </div> 17 </div>
20 18
21 {{> product/latest-walk-tpl}} 19 {{> product/latest-walk-tpl}}
@@ -39,7 +39,8 @@ function fetchLatestWalk() { @@ -39,7 +39,8 @@ function fetchLatestWalk() {
39 39
40 // 若无最近浏览,请隐藏容器 40 // 若无最近浏览,请隐藏容器
41 if (res.length === 0) { 41 if (res.length === 0) {
42 - $('.latest-walk').addClass('hide'); 42 + $('#latest-walk-goods').addClass('hide');
  43 + $('.latest-walk .null-data').show();
43 return; 44 return;
44 } 45 }
45 for (i = 0; i < res.length; i++) { 46 for (i = 0; i < res.length; i++) {
@@ -101,6 +101,7 @@ @@ -101,6 +101,7 @@
101 font-size: 15px; 101 font-size: 15px;
102 font-weight: bold; 102 font-weight: bold;
103 text-align: center; 103 text-align: center;
  104 + display: none;
104 } 105 }
105 } 106 }
106 } 107 }