Authored by 郭成尧

scroll-handle

... ... @@ -54,6 +54,6 @@
</div>
{{/isEqual}}
{{#isEqual module_type 'SknList'}}
<div class="goods-container" data-skns="{{../skns}}"></div>
<div class="index-goods-container" data-skns="{{../skns}}"></div>
{{/isEqual}}
{{/each}}
... ...
... ... @@ -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);
... ...
... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2017-03-23 11:31:51
* @Last Modified by: Targaryen
* @Last Modified time: 2017-03-24 16:17:00
* @Last Modified time: 2017-03-24 16:32:30
*/
/* 红人店铺首页 */
const Swiper2 = require('yoho-swiper2');
... ... @@ -11,7 +11,7 @@ let $shopIntroFolder = $('.shop-intro-folder');
let $shortIntro = $('#shortIntro');
let $shopIntro = $('#shopIntro');
let $shopIntrArrw = $('#shopIntrArrw');
let $goodsContainer = $('.goods-container');
let $goodsContainer = $('.index-goods-container');
/**
* 店铺介绍展开收起
... ...
... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2017-03-23 17:12:53
* @Last Modified by: Targaryen
* @Last Modified time: 2017-03-24 16:13:11
* @Last Modified time: 2017-03-24 16:31:36
*/
// 红人店铺首页
... ... @@ -157,7 +157,11 @@
}
}
.goods-container {
.index-goods-container {
position: relative;
min-height: auto !important;
padding-left: 0.375rem;
padding-top: 0.2rem;
display: inline-block;
}
... ...