From 9ea0383c303620cd019d0776ecbb47f52bcef805 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期三, 28 六月 2023 14:17:25 +0800 Subject: [PATCH] Merge branch 'feature/1.1.3版本开发' into develop --- uniapp/components/indexPage.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/uniapp/components/indexPage.vue b/uniapp/components/indexPage.vue index c239708..02c7e68 100644 --- a/uniapp/components/indexPage.vue +++ b/uniapp/components/indexPage.vue @@ -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