QRcode.page.js 348 Bytes
var $ = require('yoho-jquery');
var Swiper = require('yoho-swiper');
var mySwiper;

mySwiper = new Swiper('.swiper-container', {
    onSlideChangeEnd: function(swiper) {
        $('.pagec').html(swiper.snapIndex + 1);
    }
});
$('.prev').click(function() {
    mySwiper.slidePrev();
});
$('.next').click(function() {
    mySwiper.slideNext();
});