This commit is contained in:
yanran200730
2022-11-08 18:51:19 +08:00
parent e1be3f75fb
commit 9b92d7ac4c
4 changed files with 10 additions and 6 deletions

View File

@@ -27,7 +27,7 @@
<span>文明榜单</span>
</div>
</div>
<swiper class="banner" indicatorDots circular :autoplay="true" :interval="5000">
<swiper class="banner" indicatorDots circular :autoplay="true" :interval="5000" v-if="bannerList.length">
<swiper-item v-for="(item, index) in bannerList" :key="index">
<image :src="item.imgUrl" mode="aspectFill" />
</swiper-item>
@@ -99,6 +99,11 @@
...mapState(['user', 'token'])
},
onShow () {
this.isMore = false
this.getList()
},
onLoad () {
if (!this.token) {
this.autoLogin()
@@ -106,7 +111,6 @@
this.getUserInfo()
}
this.getList()
this.getBannerList()
},