QRcode.page.js
350 Bytes
var $ = require('yoho-jquery');
var Swiper = require('yoho-swiper');
var mySwiper;
mySwiper = new Swiper('.swiper-container', {
onSlideChangeStart: function(swiper) {
$('.pagec').html(swiper.snapIndex + 1);
}
});
$('.prev').click(function() {
mySwiper.slidePrev();
});
$('.next').click(function() {
mySwiper.slideNext();
});