...
|
...
|
@@ -29,6 +29,8 @@ module.exports = function(specificGender) { |
|
|
index,
|
|
|
$navList = $('#maybe-like-nav');
|
|
|
|
|
|
var $footer;
|
|
|
|
|
|
//ajax url
|
|
|
if (kidsType) {
|
|
|
url = '/product/recom/maylikekids';
|
...
|
...
|
@@ -92,15 +94,11 @@ module.exports = function(specificGender) { |
|
|
page: page + 1
|
|
|
},
|
|
|
success: function(data) {
|
|
|
|
|
|
if (data === ' ') {
|
|
|
searching = false;
|
|
|
loading.hideLoadingMask();
|
|
|
|
|
|
//修复有货币页面最后一条数据显示被遮挡的问题
|
|
|
if (specificGender) {
|
|
|
window.rePosFooter();
|
|
|
}
|
|
|
|
|
|
// 有货币页面不加载底部
|
|
|
if (gender && !specificGender) {
|
|
|
if (gender === '1,3') {
|
...
|
...
|
@@ -126,6 +124,12 @@ module.exports = function(specificGender) { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
//加载到数据后,去除bottom样式,使得footer能够随着页面长度的增加改变位置
|
|
|
if (data.length > 1) {
|
|
|
!$footer ? $footer = $('#yoho-footer') : null;
|
|
|
$footer.hasClass('bottom') ? $footer.removeClass('bottom') : null;
|
|
|
}
|
|
|
|
|
|
num = $goodList.find('.good-info').length;
|
|
|
|
|
|
$goodList.append(data);
|
...
|
...
|
|