...
|
...
|
@@ -156,8 +156,13 @@ exports.init = function() { |
|
|
$container = $svc;
|
|
|
break;
|
|
|
}
|
|
|
for (i = 0; i < len; i++) {
|
|
|
html += Mustache.render(tpl, goods[i]);
|
|
|
if (len === 0) {
|
|
|
//无返回数据
|
|
|
html = '<p class="search-tip">未找到相关搜索结果</p>';
|
|
|
} else {
|
|
|
for (i = 0; i < len; i++) {
|
|
|
html += Mustache.render(tpl, goods[i]);
|
|
|
}
|
|
|
}
|
|
|
if (nav.reload) {
|
|
|
$container.html(html);
|
...
|
...
|
|