logistic.js
647 Bytes
/**
* 物流信息页面
* @author: 赵彪<bill.zhao@yoho.cn>
* @date: 2015/12/02
*/
var $ = require('jquery'),
$footer = $('#yoho-footer');
var winH = window.outerHeight,
bodyH = document.body.offsetHeight,
footH = $footer.height();
function addFooterTopBorder() {
if (footH + bodyH > winH) {
window.rePosFooter();
} else {
$footer.css('border-top', '1px solid #f1f1f1');
}
}
$(document).ready(addFooterTopBorder);
function getGender() {
return window.cookie('_Channel') || 'boys';
}
require('../home/maybe-like')(getGender());
//提前触发lazyload
$(window).scrollTop(1).scrollTop(0);