detail.js 516 Bytes
/**
 *  产品打包入口
 * @author: liangzhifeng<zhifeng.liang@yoho.cn>
 * @date: 2015/10/20
 */
 var $ = require('jquery'),
    Swiper = require('yoho.iswiper'),
    lazyLoad = require('yoho.lazyload'),
    goodsSwiper;

lazyLoad($('img.lazy'));

goodsSwiper = new Swiper('.banner-swiper', {
    lazyLoading: true,
    lazyLoadingInPrevNext: true,
    loop: true,
    paginationClickable: true,
    pagination: '.swiper-pagination'
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev'
});