@yilianjituan/yilian_dgerm 1.0.7-alpha.4 → 1.0.7-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -163,10 +163,13 @@ var Index = function Index(props) {
|
|
|
163
163
|
// 下拉加载
|
|
164
164
|
var companyScroll = function companyScroll(e) {
|
|
165
165
|
var target = e.target;
|
|
166
|
-
var
|
|
166
|
+
var scrollTop = target.scrollTop,
|
|
167
167
|
scrollHeight = target.scrollHeight,
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
clientHeight = target.clientHeight;
|
|
169
|
+
|
|
170
|
+
// 使用更宽松的阈值来判断是否滚动到底部
|
|
171
|
+
var isBottom = Math.abs(scrollHeight - scrollTop - clientHeight) < 1;
|
|
172
|
+
if (isBottom) {
|
|
170
173
|
if (pageRef.current < totalPagesRef.current) {
|
|
171
174
|
// 检查当前页是否小于总页数
|
|
172
175
|
pageRef.current += 1; // 增加当前页码
|