From ba3d748f9eb65a66fca9bd74fc7796b90a0a70ae Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期五, 30 六月 2023 09:06:15 +0800 Subject: [PATCH] Merge branch 'release/v1.1.3发布' --- uniapp/components/indexPage.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/uniapp/components/indexPage.vue b/uniapp/components/indexPage.vue index 7175622..02c7e68 100644 --- a/uniapp/components/indexPage.vue +++ b/uniapp/components/indexPage.vue @@ -67,7 +67,7 @@ <!--宸﹁疆鎾紝鍙充袱琛�--> <view class="centerflex f_contant"> <view class="f_centerSwiper-container swiper-box swiper-item f_left"> - <swiper class="swiper-box" :autoplay="true" :interval="3000" :duration="300" circular> + <swiper class="swiper-box" :autoplay="true" :interval="3000" :duration="300" :indicator-active-color="'#fff'" :indicator-dots="true" circular> <swiper-item v-for="(items,index) in popBannerSList" :key='index'> <view class="swiper-item defIcon" @click="goUrl(items)"> <image :src="items.image" mode="aspectFit"></image> @@ -626,11 +626,14 @@ this.$u.api.getBanner({ type: '1,3,4,5,11,12,13,14' }).then(e => { - console.log(e) if (e.code == 1) return that.$alert(e.msg); var res = e.data.info; - this.topBannerList = res.topBannerList; - this.headerColor = this.topBannerList[0].colour; + if(res.topBannerList&&res.topBannerList.length>0) + { + this.topBannerList = res.topBannerList; + this.headerColor = this.topBannerList[0].colour; + } + this.singleLineList = res.singleLineList; this.doubleLineList = res.doubleLineList; this.bottomBannerList = res.bottomBannerList; @@ -696,7 +699,6 @@ pageSize: 10, type: type }).then(e => { - console.log(e) if (e.code != 0) return that.$alert(e.msg) var res = e.data.list; if (res.length < 10) { -- Gitblit v1.9.3