From e4bb10264e289d376ed5d938c59b0fdbb1d41d6b Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期一, 15 七月 2024 18:36:11 +0800 Subject: [PATCH] 1 --- pages/home/supplier-home.vue | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/pages/home/supplier-home.vue b/pages/home/supplier-home.vue index c3ce2fa..beeab9b 100644 --- a/pages/home/supplier-home.vue +++ b/pages/home/supplier-home.vue @@ -114,7 +114,7 @@ </view> <view class="m-t-12" @click="getNoticeMore"> <uni-notice-bar class="notice-bar" color="#333" background-color="#fff" show-get-more show-icon - :scrollable="scrollable" :text="currentNotice.title||'暂无公共'" :key="currentNotice.id" /> + :scrollable="scrollable" :text="currentNotice.title||'暂无公告'" :key="currentNotice.id" /> <span v-if="!currentNotice||!currentNotice.id"> </span> </view> <view class="item-container"> @@ -224,24 +224,24 @@ this.scrollable = false } let that = this - if (this.noticeList.length >= 1) { - setInterval(() => { - console.log('interval,1') - that.currentNoticeIndex += 1 - that.currentNoticeIndex %= that.noticeList.length - that.currentNotice = that.noticeList[that.currentNoticeIndex] - that.scrollable = false - that.$nextTick(() => { - if (that.currentNotice.title && that.currentNotice.title - .length >= 30) { - that.scrollable = true - } else { - that.scrollable = false - } - }) + // if (this.noticeList.length >= 1) { + // setInterval(() => { + // console.log('interval,1') + // that.currentNoticeIndex += 1 + // that.currentNoticeIndex %= that.noticeList.length + // that.currentNotice = that.noticeList[that.currentNoticeIndex] + // that.scrollable = false + // that.$nextTick(() => { + // if (that.currentNotice.title && that.currentNotice.title + // .length >= 30) { + // that.scrollable = true + // } else { + // that.scrollable = false + // } + // }) - }, 8000) - } + // }, 8000) + // } } } -- Gitblit v1.9.3