logistic.js 471 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);