Browse Source

删除多余代码

master
xuhuajiao 12 months ago
parent
commit
01e6188147
  1. 16
      src/views/map/index.vue

16
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

Loading…
Cancel
Save