Authored by 郭成尧

no-result

... ... @@ -75,7 +75,7 @@ class ProductListWithFilter {
* 滚动加载
*/
window.onscroll = function() {
if (self.scrollActived) {
if (self.scrollActived && !self.nav.end) {
setTimeout(function() {
let afterScroll = window.scrollY;
... ... @@ -110,7 +110,10 @@ class ProductListWithFilter {
// 去掉正在加载
$('.search-divide').remove();
let noResult = !result || result.length < 1 || (result.list && result.list.length < 1);
let noResult = result === {} ||
!result || !result.length ||
result.length < 1 ||
(result.list && result.list.length < 1);
// 没有结果输出没有结果页面
if (noResult) {
... ...