feat(glt): 完善水票总数获取逻辑并优化用户体验

- 新增 normalizeTotal 函数处理多种数据格式的总数解析
- 支持通过 userId 参数查询指定用户的水票总数
- 添加多服务器地址尝试机制提高接口可用性
- 优化首页和用户中心页面的水票总数加载逻辑
- 修复水票页面滚动区域高度计算问题
- 移除自动跳转登录页面的定时器逻辑
- 个人中心页面支持下拉刷新统计数据
- 统一请求参数传递方式简化代码结构
This commit is contained in:
2026-02-05 01:35:11 +08:00
parent 526c821a67
commit 5e90c48b8b
8 changed files with 112 additions and 40 deletions

View File

@@ -182,10 +182,10 @@ const handleAuthError = () => {
icon: 'none',
duration: 2000
});
setTimeout(() => {
Taro.reLaunch({ url: '/passport/login' });
}, 2000);
//
// setTimeout(() => {
// Taro.reLaunch({ url: '/passport/login' });
// }, 2000);
};
// 错误处理