|
@@ -306,7 +306,7 @@ plusstar = { |
|
@@ -306,7 +306,7 @@ plusstar = { |
306
|
});
|
306
|
});
|
307
|
}, 300);
|
307
|
}, 300);
|
308
|
},
|
308
|
},
|
309
|
- goodsList: function() {
|
309
|
+ goodsList: function(reload) {
|
310
|
let that = this,
|
310
|
let that = this,
|
311
|
skn = [];
|
311
|
skn = [];
|
312
|
|
312
|
|
|
@@ -319,6 +319,10 @@ plusstar = { |
|
@@ -319,6 +319,10 @@ plusstar = { |
319
|
return false;
|
319
|
return false;
|
320
|
}
|
320
|
}
|
321
|
|
321
|
|
|
|
322
|
+ if (!reload) {
|
|
|
323
|
+ $('.goods').append('<div class="divide">正在加载...</div>');
|
|
|
324
|
+ }
|
|
|
325
|
+
|
322
|
loading.showLoadingMask();
|
326
|
loading.showLoadingMask();
|
323
|
skn = that.common.productSkns.slice((that.common.page - 1) *
|
327
|
skn = that.common.productSkns.slice((that.common.page - 1) *
|
324
|
that.common.pagesize, that.common.page * that.common.pagesize);
|
328
|
that.common.pagesize, that.common.page * that.common.pagesize);
|
|
@@ -356,6 +360,7 @@ plusstar = { |
|
@@ -356,6 +360,7 @@ plusstar = { |
356
|
PAGE_NUM: that.common.page - 1
|
360
|
PAGE_NUM: that.common.page - 1
|
357
|
});
|
361
|
});
|
358
|
|
362
|
|
|
|
363
|
+ $('.divide').remove();
|
359
|
$('.plusstar-resources .goods').append(data);
|
364
|
$('.plusstar-resources .goods').append(data);
|
360
|
|
365
|
|
361
|
$('.plusstar-resources .goods').find('img.lazy:not([src])').lazyload();
|
366
|
$('.plusstar-resources .goods').find('img.lazy:not([src])').lazyload();
|
|
@@ -399,6 +404,8 @@ $(function() { |
|
@@ -399,6 +404,8 @@ $(function() { |
399
|
|
404
|
|
400
|
plusstar.init();
|
405
|
plusstar.init();
|
401
|
|
406
|
|
|
|
407
|
+ plusstar.goodsList(true);
|
|
|
408
|
+
|
402
|
// 滚动翻页
|
409
|
// 滚动翻页
|
403
|
$(window).scroll(function() {
|
410
|
$(window).scroll(function() {
|
404
|
scrollFn();
|
411
|
scrollFn();
|