<!--轮播图-->
<div class="aui-banner-content" data-aui-slider style="height: 24%;margin-top: 0">
<div class="layui-carousel" id="zqzj" style="border-radius: 2vw;width: 100%">
<div carousel-item id="swiper-wrapper">
</div>
</div>
</div>
//轮播图
var ins = "";
var scrollTop = 0;//轮播图上下滑动
function selectHomeSlideshow() {
$.post("url", {
"type": 0,
}, function (data) {
var table = '';
$.each(data, function (i, list) {
table += "<img src=\"" + url + list.indexImg + "\" style=\"width: 100%; border-radius:10px;\">\n"
})
$("#swiper-wrapper").html(table);
//序列话一次轮播图
layui.use(['carousel'], function () {
var carousel = layui.carousel;
ins = carousel.render({
elem: '#zqzj'
, width: '100%' //设置容器宽度