...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-03-24 13:43:55
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-03-24 13:47:28
|
|
|
* @Last Modified time: 2017-03-24 16:44:21
|
|
|
*/
|
|
|
|
|
|
/** *****************************
|
...
|
...
|
@@ -40,7 +40,8 @@ let navInfo = { |
|
|
order: 0,
|
|
|
reload: true,
|
|
|
page: 0,
|
|
|
end: false
|
|
|
end: false,
|
|
|
type: 'default'
|
|
|
},
|
|
|
new: {
|
|
|
order: 0,
|
...
|
...
|
@@ -106,14 +107,22 @@ const getGoodsList = function() { |
|
|
// 去掉正在加载
|
|
|
$('.search-divide').remove();
|
|
|
|
|
|
let noResult = !result || result.length < 1 || (result.list && result.list.length < 1);
|
|
|
|
|
|
// 没有结果输出没有结果页面
|
|
|
if (!result || result.length < 1) {
|
|
|
if (!isScrollLoad && noResult) {
|
|
|
$container.html(noResultHbs());
|
|
|
onSearching = false;
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (isScrollLoad) {
|
|
|
if (noResult) {
|
|
|
$container.append('<div class="search-divide">没有更多内容了...</div>');
|
|
|
onSearching = false;
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
$container.append(result);
|
|
|
} else {
|
|
|
$container.html(result);
|
...
|
...
|
|