应用广场 滚动

This commit is contained in:
a0049873 2022-08-09 18:08:33 +08:00
parent e026c97a73
commit cdc3b9c215
1 changed files with 5 additions and 2 deletions

View File

@ -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