1.封装淘气玩平台请求数据
//ios游戏 iosGame //安卓游戏 androidGame //网络游戏 wangLuoGame //单击游戏 danJiGame //游戏开服 kaiFuGame //广告 bannerGet //新闻 newGet //游戏详情 gameGet //新闻详情 newShowGet
2.更换滚动效果
<div class="swiper-container bannerA" id="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide" v-for="item in bannerList">
<a href="javascript:void(0)" target="_blank" :title="item.ad_title"><img class="image" :src="item.ad_logo" :alt="item.ad_title"><p class="title">{{item.ad_title}}</p></a>
</div>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-next">111</div>
<div class="swiper-button-prev">2222</div>
</div>
var swiper = new Swiper(‘.swiper-container‘, {
slidesPerView: 4,
spaceBetween: 30,
slidesPerGroup: 4,
loop: true,
loopFillGroupWithBlank: true,
pagination: {
el: ‘.swiper-pagination‘,
clickable: true,
},
navigation: {
nextEl: ‘.swiper-button-next‘,
prevEl: ‘.swiper-button-prev‘,
}
});