hookehuyr

fix

...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-21 09:35:14 3 * @Date: 2022-05-21 09:35:14
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2022-07-01 20:17:04 5 + * @LastEditTime: 2022-07-01 20:21:51
6 * @FilePath: /tswj/src/views/client/bookDetail.vue 6 * @FilePath: /tswj/src/views/client/bookDetail.vue
7 * @Description: 7 * @Description:
8 --> 8 -->
...@@ -191,10 +191,6 @@ window.onscroll = function () { ...@@ -191,10 +191,6 @@ window.onscroll = function () {
191 const windowHeight = document.documentElement.clientHeight || document.body.clientHeight; 191 const windowHeight = document.documentElement.clientHeight || document.body.clientHeight;
192 //变量scrollHeight是滚动条的总高度 192 //变量scrollHeight是滚动条的总高度
193 const scrollHeight = document.documentElement.scrollHeight||document.body.scrollHeight; 193 const scrollHeight = document.documentElement.scrollHeight||document.body.scrollHeight;
194 - console.warn('scrollTop', scrollTop);
195 - console.warn('windowHeight', windowHeight);
196 - console.warn('scrollTop + windowHeight', scrollTop + windowHeight);
197 - console.warn('scrollHeight', scrollHeight);
198 //滚动条到底部的条件 194 //滚动条到底部的条件
199 const height1 = scrollTop + windowHeight; 195 const height1 = scrollTop + windowHeight;
200 const height2 = scrollTop + windowHeight - 1; // 手机上微信高度少了1px 196 const height2 = scrollTop + windowHeight - 1; // 手机上微信高度少了1px
......