Showing
3 changed files
with
6 additions
and
6 deletions
@@ -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++) { |
-
Please register or login to post a comment