fix: 修复反馈列表滚动问题,改用页面原生滚动
核心改动: - 移除 scroll-view 组件,改用页面原生滚动 - 使用 min-height: 100vh 确保内容可滚动 - 使用 padding-bottom: 160rpx 为底部按钮预留空间 - 简化布局逻辑,提升稳定性 参考方案: - 老来赛项目的 FeedbackList 页面(不使用 scroll-view) - 老来赛项目的 PointsList 页面(使用 scroll-view 时用 calc() 计算高度) 经验教训: 1. 小程序页面滚动两种方案: - 简单列表:优先使用页面原生滚动(无需 scroll-view) - 复杂布局:使用 scroll-view 时必须用 calc() 明确计算高度 2. scroll-view 在小程序中的限制: - 不能依赖 flex: 1 自动填充高度 - 不能使用 height: 100%(在某些设备上计算异常) - 必须用 :style="scrollStyle" 动态计算明确高度值 3. 页面原生滚动的优势: - 更稳定,无需复杂的高度计算 - 支持下拉刷新、触底加载等原生功能 - 性能更好,兼容性更强 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Showing
2 changed files
with
251 additions
and
132 deletions
-
Please register or login to post a comment