Authored by tmq

banner滑动点

... ... @@ -114,6 +114,10 @@ define('channel', function(require, exports) {
e.preventDefault();
swiper.swipeNext();
});
$(".dib a").on("click", function(event) {
var index = $(this).index(".dib a");
swiper.swipeTo(index + 1);
});
}
}).init();
... ...
... ... @@ -186,6 +186,7 @@ EOL;
})
seajs.use(['jquery', 'channel'], function($, channel) {
channel.index();
channel.common();
})
</script>
<?php $this->_endblock();?>
... ...