hookehuyr

refactor(plan): 优化计划书页面滚动加载并清理调试代码

- 将列表容器从 view 改为 scroll-view 组件以支持滚动加载
- 实现 scroll-view 的 @scrolltolower 事件处理
- 添加防抖机制避免频繁触发加载(300ms)
- 移除所有 console.log 调试语句
- 优化代码结构,移除未使用的函数参数

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
......@@ -5,6 +5,15 @@
---
## [2026-02-06] - 修复计划书页面触底加载更多不触发
### 修复
- 修复 `src/pages/plan/index.vue` 列表区域滚动到底部不触发加载更多的问题
- 列表区域改为使用 `scroll-view``scrolltolower` 事件触发加载更多,并保留 `useReachBottom` 作为兜底
- 修复 `scroll-view` 内列表项宽度溢出导致右侧被裁切的问题
---
## [2026-02-06] - 修复401重定向死循环和返回报错
### 修复
......
/*
* @Date: 2026-01-29 22:24:28
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-29 22:54:03
* @LastEditTime: 2026-02-06 20:54:49
* @FilePath: /manulife-weapp/src/pages/plan/index.config.js
* @Description: 我的计划书页面配置文件
*/
export default definePageConfig({
navigationBarTitleText: '我的计划书',
navigationStyle: 'custom'
navigationStyle: 'custom',
enablePullDownRefresh: true,
})
/**
* 页面级触底事件处理
* @description 这是一个独立的页面级方法,作为 useReachBottom hook 的备用方案
* @returns {void}
*/
export function onReachBottom() {
console.log('[Plan] ⭐⭐⭐ [配置文件] 页面级触底事件触发!⭐⭐⭐')
console.log('[Plan] 如果看到这条日志,说明配置文件中的 onReachBottom 已工作')
console.log('[Plan] 当前时间:', new Date().toISOString())
}
......
This diff is collapsed. Click to expand it.