应用广场 滚动
This commit is contained in:
parent
e026c97a73
commit
cdc3b9c215
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-08-09 09:31:25
|
* @Date: 2022-08-09 09:31:25
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-08-09 16:53:01
|
* @LastEditTime: 2022-08-09 18:07:59
|
||||||
* @Description: 应用资源
|
* @Description: 应用资源
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -109,7 +109,10 @@
|
||||||
const scrollTop = dom.scrollTop
|
const scrollTop = dom.scrollTop
|
||||||
const scrollHeight = dom.scrollHeight
|
const scrollHeight = dom.scrollHeight
|
||||||
// console.log('滚动条滚动', clientHeight, scrollTop, scrollHeight, dom)
|
// console.log('滚动条滚动', clientHeight, scrollTop, scrollHeight, dom)
|
||||||
if (clientHeight + scrollTop === scrollHeight) {
|
if (
|
||||||
|
clientHeight + scrollTop <= scrollHeight + 1 &&
|
||||||
|
clientHeight + scrollTop >= scrollHeight - 1
|
||||||
|
) {
|
||||||
console.log('竖向滚动条已经滚动到底部')
|
console.log('竖向滚动条已经滚动到底部')
|
||||||
if (flag.value) {
|
if (flag.value) {
|
||||||
flag.value = false
|
flag.value = false
|
||||||
|
|
Loading…
Reference in New Issue