Authored by 王水玲

tab 修改

... ... @@ -11,11 +11,9 @@
<input id="latest-walk-count" type="hidden" value="{{latestWalk}}">
<div class="latest-walk">
<div id="latest-walk-goods" class="goods clearfix"></div>
{{#unless latestWalk}}
<p class="null-data">
无最近浏览的商品
</p>
{{/unless}}
<p class="null-data">
无最近浏览的商品
</p>
</div>
{{> product/latest-walk-tpl}}
... ...
... ... @@ -39,7 +39,8 @@ function fetchLatestWalk() {
// 若无最近浏览,请隐藏容器
if (res.length === 0) {
$('.latest-walk').addClass('hide');
$('#latest-walk-goods').addClass('hide');
$('.latest-walk .null-data').show();
return;
}
for (i = 0; i < res.length; i++) {
... ...
... ... @@ -101,6 +101,7 @@
font-size: 15px;
font-weight: bold;
text-align: center;
display: none;
}
}
}
... ...