...
|
...
|
@@ -34,6 +34,13 @@ module.exports = function(specificGender) { |
|
|
|
|
|
var $footer;
|
|
|
|
|
|
var bottomBannerLoaded,
|
|
|
channel;
|
|
|
|
|
|
require('../common');
|
|
|
|
|
|
channel = window.cookie('_Channel');
|
|
|
|
|
|
ellipsis.init();
|
|
|
|
|
|
// ajax url
|
...
|
...
|
@@ -47,19 +54,19 @@ module.exports = function(specificGender) { |
|
|
} else if (yohoCoinType) {
|
|
|
|
|
|
gender = (specificGender === 'boys' || $('.mobile-wrap').hasClass('boys-wrap')) ?
|
|
|
'1,3&rec_pos=100009' : '2,3&rec_pos=100009',
|
|
|
'1,3&rec_pos=100009' : '2,3&rec_pos=100009';
|
|
|
url = '/product/recom/maylike?gender=' + gender;
|
|
|
RECPOSE = 110009;
|
|
|
|
|
|
} else if (logisticType) { // 物流页面
|
|
|
gender = (specificGender === 'boys' || $('.mobile-wrap').hasClass('boys-wrap')) ?
|
|
|
'1,3&rec_pos=100006' : '2,3&rec_pos=100006',
|
|
|
'1,3&rec_pos=100006' : '2,3&rec_pos=100006';
|
|
|
url = '/product/recom/maylike?gender=' + gender;
|
|
|
RECPOSE = 110006;
|
|
|
|
|
|
} else {
|
|
|
gender = (specificGender === 'boys' || $('.mobile-wrap').hasClass('boys-wrap')) ?
|
|
|
'1,3&rec_pos=100001' : '2,3&rec_pos=100002',
|
|
|
'1,3&rec_pos=100001' : '2,3&rec_pos=100002';
|
|
|
url = '/product/recom/maylike?gender=' + gender;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -134,17 +141,21 @@ module.exports = function(specificGender) { |
|
|
|
|
|
// 有货币页面不加载底部
|
|
|
if (gender && !specificGender) {
|
|
|
gender = gender.substr(0, 3);
|
|
|
|
|
|
if (gender === '1,3') {
|
|
|
url = '/boys/bottomBanner';
|
|
|
} else {
|
|
|
url = '/girls/bottomBanner';
|
|
|
if (bottomBannerLoaded) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
url = '/' + channel + '/bottomBanner';
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: url,
|
|
|
data: {
|
|
|
gender: channel
|
|
|
},
|
|
|
success: function(data) {
|
|
|
bottomBannerLoaded = true;
|
|
|
|
|
|
if (data && data.img) {
|
|
|
$('#load-more-img').show();
|
|
|
$('#load-more-img a').attr('href', data.url);
|
...
|
...
|
@@ -209,7 +220,7 @@ module.exports = function(specificGender) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
$('.maybe-like p').on('touchstart', function(e) {
|
|
|
$('.maybe-like p').on('touchstart', function() {
|
|
|
search();
|
|
|
});
|
|
|
|
...
|
...
|
|