前端
This commit is contained in:
parent
63b12cba04
commit
dc6fcfe081
@ -23,12 +23,10 @@
|
||||
</div>
|
||||
<div style="overflow: hidden;position: relative;" class="mySwiper">
|
||||
<swiper ref="mySwiper" :options="swiperOptions" style="width: 100%">
|
||||
<swiper-slide>
|
||||
<img ref="swiperImg" style="width: 100%; height: 100%" src="../assets/gw/banner.png" />
|
||||
</swiper-slide>
|
||||
<swiper-slide>
|
||||
<img ref="swiperImg" style="width: 100%; height: 100%" src="../assets/gw/banner.png" />
|
||||
<swiper-slide v-for="(item,index) in bannerlist" :key="index">
|
||||
<img ref="swiperImg" style="width: 100%; height: 100%" :src="item" />
|
||||
</swiper-slide>
|
||||
|
||||
</swiper>
|
||||
</div>
|
||||
<!-- 滑动 -->
|
||||
@ -420,7 +418,7 @@ export default {
|
||||
if(res.code == 200){
|
||||
let list = res.data[3].children.list
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
this.bannerlist.push(this.imgUrl+list[i].imgUrl)
|
||||
this.bannerlist.push(this.imgUrl+list[i].imageUrl)
|
||||
}
|
||||
console.log(this.bannerlist)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user