diff --git a/app/DataBase/output_pc.py b/app/DataBase/output_pc.py index 3aae34f..3a9d967 100644 --- a/app/DataBase/output_pc.py +++ b/app/DataBase/output_pc.py @@ -1028,7 +1028,7 @@ input {
-
+
昨天 12:35
你已添加了凡繁烦,现在可以开始聊天了。
@@ -1080,8 +1080,9 @@ html_end = ''' const itemsPerPage = 100; // 每页显示的元素个数 let currentPage = 1; // 当前页 - +var reachedBottom = false; // 到达底部的标记 function renderPage(page) { + reachedBottom = false; const container = document.getElementById('chat-container'); container.innerHTML = ''; // 清空容器 @@ -1285,6 +1286,23 @@ html_end = ''' } } + + function checkScroll() { + var chatContainer = document.getElementById("chat-container"); + + // 检查滚动条是否滑到底部 + if (chatContainer.scrollHeight - chatContainer.scrollTop === chatContainer.clientHeight) { + // 如果滚动条在底部 + if (!reachedBottom) { + // 设置标记并返回 + reachedBottom = true; + return; + } + else{ + nextPage(); + } + } + } // 初始化页面 renderPage(currentPage); diff --git a/readme.md b/readme.md index d4f2c42..67159e5 100644 --- a/readme.md +++ b/readme.md @@ -232,6 +232,7 @@ python main.py > 声明:该项目有且仅有一个目的:“留痕”——我的数据我做主,前提是“我的数据”其次才是“我做主”,禁止任何人以任何形式将其用于任何非法用途,对于使用该程序所造成的任何后果,所有创作者不承担任何责任🙄
> 该软件不会对您使用的微信造成任何影响,更不会对他人的微信造成任何影响,不能找回删除的聊天记录,任何企图篡改微信聊天数据的想法都是无稽之谈。本项目所有功能均建立在”前言“的基础之上,基于该项目的所有开发者均不能接受任何有悖于”前言“的功能需求,违者后果自负。 >
该软件不存在任何收费,谨防上当受骗 +>
软件贩子勿扰,违规违法勿扰,二次开发请务必遵守开源协议 [![Star History Chart](https://api.star-history.com/svg?repos=LC044/WeChatMsg&type=Date)](https://star-history.com/?utm_source=bestxtools.com#LC044/WeChatMsg&Date)