Authored by zhangxiaoru

bottom banner

... ... @@ -34,6 +34,10 @@ module.exports = function(specificGender) {
var $footer;
var bottomBannerLoaded;
require('../common');
ellipsis.init();
// ajax url
... ... @@ -47,19 +51,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;
}
... ... @@ -126,6 +130,7 @@ module.exports = function(specificGender) {
},
success: function(data) {
var PRDID = [];
if (data === ' ' || data === '') {
searching = true;
... ... @@ -133,17 +138,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: window.queryString._Channel
},
success: function(data) {
bottomBannerLoaded = true;
if (data && data.img) {
$('#load-more-img').show();
$('#load-more-img a').attr('href', data.url);
... ... @@ -208,7 +217,7 @@ module.exports = function(specificGender) {
});
}
$('.maybe-like p').on('touchstart', function(e) {
$('.maybe-like p').on('touchstart', function() {
search();
});
... ... @@ -232,6 +241,7 @@ module.exports = function(specificGender) {
$('.maybe-like .goods-list').on('click', 'a', function() {
var index = $(this).closest('.good-info').index() + 1,
pageNum = 50;
window.givePoint({
REC_POSE: RECPOSE,
PRD_ID: $(this).closest('.good-info').data('id'),
... ...