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

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