From 5c0484b788e699a8939579a14e7522afca5a5f34 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期三, 14 六月 2023 17:03:30 +0800 Subject: [PATCH] no message --- uniapp/components/indexPage.vue | 36 +++++++++++++++++++----------------- 1 files changed, 19 insertions(+), 17 deletions(-) diff --git a/uniapp/components/indexPage.vue b/uniapp/components/indexPage.vue index 72a63c0..92cca2e 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="5000" :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> @@ -109,7 +109,7 @@ </swiper> </view> <!--鍏ㄧ綉鐑攢--> - <view class="van-row"> + <!-- <view class="van-row"> <view class="van-col van-col--12" style="padding-right: 10rpx;"> <view class="home-row" @click="gorxb()"> <view class="title"><text class="name">鍏ㄧ綉鐑攢姒�</text> @@ -157,7 +157,7 @@ </view> </view> </view> - </view> + </view> --> <!-- 澶у閮藉湪涔� --> <!-- <view class="everysBuying-container colCen" v-if="zdmList.length>0"> <view class="box-bar-content rowCen"> @@ -595,7 +595,7 @@ }, onRestore() { this.swpidx = 0 - console.log('涓嬫媺琚粓姝�'); + //console.log('涓嬫媺琚粓姝�'); }, pagescroll(e) { this.$emit('scrollNum', e.detail.scrollTop) @@ -626,21 +626,23 @@ 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; - this.singleLineList = res.singleLineList; - this.doubleLineList = res.doubleLineList; - this.bottomBannerList = res.bottomBannerList; - this.fastenter=res.indexbanner; - this.popBannerSList=res.popBannerSList; - this.enterTop=res.enterTop; - this.enterDown=res.enterDown; + if(res.topBannerList&&res.topBannerList.length>0) + { + that.topBannerList = res.topBannerList; + that.headerColor = that.topBannerList[0].colour; + } + that.singleLineList = res.singleLineList; + that.doubleLineList = res.doubleLineList; + that.bottomBannerList = res.bottomBannerList; + that.fastenter=res.indexbanner; + that.popBannerSList=res.popBannerSList; + that.enterTop=res.enterTop; + that.enterDown=res.enterDown; setTimeout(() => { - this.triggeredstate = false; - this._freshing = false; + that.triggeredstate = false; + that._freshing = false; }, 300) }).catch(function(err) { console.log(err) @@ -696,7 +698,7 @@ pageSize: 10, type: type }).then(e => { - console.log(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