From 01e6188147953d173a280e98070b6c8189c7dfe4 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Thu, 18 Jul 2024 17:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/map/index.vue | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/views/map/index.vue b/src/views/map/index.vue index 33c5a20..d12a517 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -169,22 +169,6 @@ export default { this.timer = null this.timeTicket = null }, - // startScrolling() { - // this.timer = setInterval(() => { - // this.position -= this.speed - // // 当文字完全滚出容器时,重置位置 - // // const containerHeight = document.getElementsByClassName('scroll-container')[0].offsetHeight - // this.$nextTick(() => { - // const containerHeight = this.$refs.scrollInfo.offsetHeight - // const contentHeight = this.$refs.marquee.offsetHeight - // if (contentHeight <= containerHeight) { - // this.position = 20 - // } else if (Math.abs(this.position) >= contentHeight) { - // this.position = containerHeight - // } - // }) - // }, 120) - // }, startScrolling() { this.$nextTick(() => { const containerHeight = this.$refs.scrollInfo.offsetHeight