Authored by biao

merge jit

  1 +/**
  2 + * jit拆单配送信息页面
  3 + * @author: zhaobiao<bill.zhao@yoho.cn>
  4 + * @date: 2016/04/26
  5 + */
  6 +
  7 +var Swiper = require('yoho.iswiper'),
  8 + $ = require('jquery');
  9 +
  10 +var height = $(window).height() - $('#yoho-header').height();
  11 +
  12 +// 为了展示页面背景色,需要把页面根据窗口大小撑开
  13 +$('.jit-detail-page').css('height', height);
  14 +
  15 +$('.jit-detail-page>div').show();
  16 +
  17 +// 内容展示之后,再根据document高度,调整一次容器高度
  18 +height = $(document).height() - $('#yoho-header').height();
  19 +$('.jit-detail-page').css('height', height);
  20 +
  21 +
  22 +(function() {
  23 + return new Swiper('.swiper-container', {
  24 + slidesPerView: 'auto',
  25 + grabCursor: true,
  26 + slideElement: 'a',
  27 + lazyLoading: true,
  28 + watchSlidesVisibility: true
  29 + });
  30 +})();
  31 +