Showing
1 changed file
with
9 additions
and
5 deletions
@@ -29,6 +29,8 @@ module.exports = function(specificGender) { | @@ -29,6 +29,8 @@ module.exports = function(specificGender) { | ||
29 | index, | 29 | index, |
30 | $navList = $('#maybe-like-nav'); | 30 | $navList = $('#maybe-like-nav'); |
31 | 31 | ||
32 | + var $footer; | ||
33 | + | ||
32 | //ajax url | 34 | //ajax url |
33 | if (kidsType) { | 35 | if (kidsType) { |
34 | url = '/product/recom/maylikekids'; | 36 | url = '/product/recom/maylikekids'; |
@@ -92,15 +94,11 @@ module.exports = function(specificGender) { | @@ -92,15 +94,11 @@ module.exports = function(specificGender) { | ||
92 | page: page + 1 | 94 | page: page + 1 |
93 | }, | 95 | }, |
94 | success: function(data) { | 96 | success: function(data) { |
97 | + | ||
95 | if (data === ' ') { | 98 | if (data === ' ') { |
96 | searching = false; | 99 | searching = false; |
97 | loading.hideLoadingMask(); | 100 | loading.hideLoadingMask(); |
98 | 101 | ||
99 | - //修复有货币页面最后一条数据显示被遮挡的问题 | ||
100 | - if (specificGender) { | ||
101 | - window.rePosFooter(); | ||
102 | - } | ||
103 | - | ||
104 | // 有货币页面不加载底部 | 102 | // 有货币页面不加载底部 |
105 | if (gender && !specificGender) { | 103 | if (gender && !specificGender) { |
106 | if (gender === '1,3') { | 104 | if (gender === '1,3') { |
@@ -126,6 +124,12 @@ module.exports = function(specificGender) { | @@ -126,6 +124,12 @@ module.exports = function(specificGender) { | ||
126 | return; | 124 | return; |
127 | } | 125 | } |
128 | 126 | ||
127 | + //加载到数据后,去除bottom样式,使得footer能够随着页面长度的增加改变位置 | ||
128 | + if (data.length > 1) { | ||
129 | + !$footer ? $footer = $('#yoho-footer') : null; | ||
130 | + $footer.hasClass('bottom') ? $footer.removeClass('bottom') : null; | ||
131 | + } | ||
132 | + | ||
129 | num = $goodList.find('.good-info').length; | 133 | num = $goodList.find('.good-info').length; |
130 | 134 | ||
131 | $goodList.append(data); | 135 | $goodList.append(data); |
-
Please register or login to post a comment