jit-detail.page.js 791 Bytes
/**
 * jit拆单配送信息页面
 * @author: zhaobiao<bill.zhao@yoho.cn>
 * @date: 2016/04/26
 */

let Swiper = require('yoho-swiper'),
    $ = require('yoho-jquery');

let height = $(window).height() - $('#yoho-header').height();

// 为了展示页面背景色,需要把页面根据窗口大小撑开
$('.jit-detail-page').css('height', height);

$('.jit-detail-page>div').show();

// 内容展示之后,再根据document高度,调整一次容器高度
height = $(document).height() - $('#yoho-header').height();
$('.jit-detail-page').css('height', height);


(function() {
    return new Swiper('.swiper-container', {
        slidesPerView: 'auto',
        grabCursor: true,
        slideElement: 'a',
        lazyLoading: true,
        watchSlidesVisibility: true
    });
}());