Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-07-01 20:21:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
437fd5eb2619aba3cb07457753408bb50315194a
437fd5eb
1 parent
2c8c23d3
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
src/views/client/bookDetail.vue
src/views/client/bookDetail.vue
View file @
437fd5e
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-21 09:35:14
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-07-01 20:
17:04
* @LastEditTime: 2022-07-01 20:
21:51
* @FilePath: /tswj/src/views/client/bookDetail.vue
* @Description:
-->
...
...
@@ -191,10 +191,6 @@ window.onscroll = function () {
const windowHeight = document.documentElement.clientHeight || document.body.clientHeight;
//变量scrollHeight是滚动条的总高度
const scrollHeight = document.documentElement.scrollHeight||document.body.scrollHeight;
console.warn('scrollTop', scrollTop);
console.warn('windowHeight', windowHeight);
console.warn('scrollTop + windowHeight', scrollTop + windowHeight);
console.warn('scrollHeight', scrollHeight);
//滚动条到底部的条件
const height1 = scrollTop + windowHeight;
const height2 = scrollTop + windowHeight - 1; // 手机上微信高度少了1px
...
...
Please
register
or
login
to post a comment