|
@@ -48,14 +48,18 @@ $(function () {
|
|
|
// floor.$floor.find('.more .icon').removeClass('arrowup');
|
|
|
// }
|
|
|
// });
|
|
|
- if($('.floor-list .floor .section').length < 6 ){
|
|
|
- $('.more-btn').hide()
|
|
|
- }
|
|
|
+ $('.floor-list .floor').each(function(index, el){
|
|
|
+ if($(el).find('.section').length < 6){
|
|
|
+ $(el).find('.more-btn').hide();
|
|
|
+ }
|
|
|
+ });
|
|
|
} else {
|
|
|
// 移动端
|
|
|
- if($('.floor-list .floor-title .h5-more-btn a').length < 6 ){
|
|
|
- $('.more-btn').hide()
|
|
|
- }
|
|
|
+ $('.floor-list .floor').each(function(index, el){
|
|
|
+ if($(el).find('.section').length < 6){
|
|
|
+ $(el).find('.h5-more-btn').hide();
|
|
|
+ }
|
|
|
+ });
|
|
|
offset = getScrollOffset(['.navbar', '.category']);
|
|
|
stickyResponse('#category', getScrollOffset('.banner'), function (e) {
|
|
|
if (e.sticky) {
|