| | |
| | | scrollDom = scrollContainer3.value |
| | | } else { |
| | | // 如果列表数量过少不进行滚动 |
| | | if (scrollDom.children.length <= 5) { |
| | | let num = scrollContainer3.value.offsetHeight / 35; |
| | | // alert(scrollDom.children.length +"---------------"+num) |
| | | // 如果列表数量过少不进行滚动 |
| | | if (scrollDom.children.length <= num) { |
| | | clearTimeout(timer3.value) |
| | | return |
| | | } |
| | | // 组件进行滚动 |
| | | scrollDom.scrollTop += 1 |
| | | scrollDom.scrollTop = scrollDom.scrollTop+2 |
| | | // 判断是否滚动到底部 |
| | | if (scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight)) { |
| | | // 获取组件第一个节点 |
| | |
| | | if (scrollDom.offsetHeight == 0) { |
| | | scrollDom = scrollContainer4.value |
| | | } else { |
| | | // console.log(bottom1.value.height); |
| | | let num = scrollContainer4.value.offsetHeight / 35; |
| | | // alert(scrollDom.children.length +"---------------"+num) |
| | | // 如果列表数量过少不进行滚动 |
| | | if (scrollDom.children.length < 5) { |
| | | if (scrollDom.children.length <= num) { |
| | | clearTimeout(timer4.value) |
| | | return |
| | | } |
| | | // 组件进行滚动 |
| | | scrollDom.scrollTop += 1 |
| | | scrollDom.scrollTop += 2 |
| | | // 判断是否滚动到底部 |
| | | if (scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight)) { |
| | | // 获取组件第一个节点 |
| | |
| | | |
| | | .main_container { |
| | | width: 100%; |
| | | height: calc(100% - 35px); |
| | | height: calc(100% - 38px); |
| | | |
| | | .scroll_container { |
| | | width: 100%; |