Commit Graph

41 Commits

Author SHA1 Message Date
d5a08db56c feat:添加存储空间 2026-07-29 16:03:33 +08:00
zerosaturation
27313f414a feat(profile): render level progress bar in LV box
profile.vue only rendered fan level digit, hiding the fact that
fans level up via accumulated exhibition hours (6h/level, cap 20),
not login/task experience. Users saw "LV X" without "X more
hours to next level", so upgrades felt invisible.

- backend: surface exhibition_hours / next_level_hours on
  CurrentIdentityDTO via a new loadLevelProgress helper in
  user_controller (read-only, no proto regen, no service
  surface change). Full-level responses set next_level_hours =
  exhibition_hours so the client can derive progress=1.
- frontend: split level-box into base track + gold fill + text
  overlay; width bound to progressRatio with 0.4s transition.
  Adds "距 LV X+1 还差 N 小时" hint and MAX indicator for
  full-level users.
2026-07-27 18:02:59 +08:00
zerosaturation
83999995f5 refactor(frontend): consolidate user storage read via getStoredUser helper
uni.getStorageSync('user') 在 key 从未写过的 UniApp 平台下默认返回 ""(空串)
而非 null/undefined,旧式 `JSON.parse(uni.getStorageSync('user')) || {}` 在
parse 阶段直接抛 `SyntaxError: Unexpected end of JSON input`,导致 quickLogin
setup 崩溃,并触发 Vue 二次告警 `Invalid vnode type: undefined`。

新增 utils/getStoredUser.js 单点封装,统一处理:
  - 空值/损坏 JSON 兜底(返回 null,不抛)
  - 与 store/modules/user.js 初始化块同源守卫
  - 失败 warn 级别日志,不影响业务

替换全库 16 处不安全 `JSON.parse(userStr)` 调用:
  composables/useLaserMint.js                  composables/useShare.js
  utils/guideConfig.js                         utils/preloadApi/core.js
  pages/castlove/lenticular/lenticular-result.vue
  pages/support-activity/index.vue             pages/support-activity/components/{TopRanking,ActionBar}.vue
  pages/components/{Header,ShareModal,ShareReportButtons}.vue
  pages/tasks/{GuideModal,daily-tasks}.vue
  pages/asset-detail/asset-detail.vue          pages/exhibition/exhibition.vue
  pages/profile/profile.vue                    pages/login/quickLogin.vue(原崩点)

净 -18 行,17 文件改动 + 1 文件新增。后续如需支持多 key(如 'adminUser'),
把 getStoredUser 扩成泛型 getStoredJSON(key) 即可。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 17:16:49 +08:00
zerosaturation
c0b577dd40 feat:增加邮箱管理功能 2026-07-14 21:59:15 +08:00
5625f6ac28 feat:增加预加载接口 2026-07-09 13:27:25 +08:00
zerosaturation
d279976822 feat:修改铸造相关报错 2026-07-04 00:22:05 +08:00
zerosaturation
4c3388ed36 feat:新增注销账号功能,然后修改前端注册页面 2026-07-03 16:40:53 +08:00
zerosaturation
7eb6dad434 feat:新增举报和反馈功能 2026-06-22 17:19:48 +08:00
32e329b1dc feat:新增反馈按钮和举报按钮的弹窗组件 2026-06-16 17:39:30 +08:00
zerosaturation
0aa02cc3a4 fix:修改压测的bug 2026-06-15 17:14:21 +08:00
zerosaturation
271e0350c7 feat:重构code状态码 2026-06-15 16:28:35 +08:00
zerosaturation
12dd698d08 feat:回退优化 2026-06-15 14:27:34 +08:00
zerosaturation
56fc2f6beb feat:修改密码增加手机号+短信验证 2026-06-15 14:15:24 +08:00
a3e54b7305 feat: 修改个人中心的bug 2026-06-12 16:01:14 +08:00
zerosaturation
edadb0e082 feat:修改头像bug 2026-06-02 21:10:35 +08:00
10bf5b9578 feat:修改铸造选择卡片滑动bug异常 2026-05-28 22:27:31 +08:00
c93dd13dc3 style: 修改样式 2026-05-28 19:33:46 +08:00
zerosaturation
670ef5e019 style:修改个人设置样式 2026-05-28 18:02:36 +08:00
59fdac5bc2 style:修改主页样式和个人页样式 2026-05-28 17:46:09 +08:00
zerosaturation
7dbcf50a39 feat:去除多余的代码 2026-05-26 20:12:40 +08:00
zerosaturation
b8e462f9b5 feat:修改广场页面,铸造页面 2026-05-26 19:26:27 +08:00
zerosaturation
0852f96436 feat:去掉重复的点赞约束 2026-05-25 19:03:35 +08:00
zerosaturation
fcebf5a107 feat:增加分享页面和举报按钮 2026-05-21 18:51:15 +08:00
zerosaturation
eb051f6562 Merge branch 'feature/economic-system-redesign' into dev 2026-05-15 23:22:38 +08:00
f5de8927fb style: 藏品详细样式修改 2026-05-15 23:12:02 +08:00
af74dd5aad style:修改个人设置页面和藏品详细页的样式 2026-05-15 23:06:50 +08:00
6252be4d75 image:替换图片 2026-05-15 21:39:21 +08:00
5edf153521 style: 藏品详细样式修改 2026-05-15 15:21:54 +08:00
6bc0ac71ee style:修改个人设置页面和藏品详细页的样式 2026-05-14 21:59:25 +08:00
8231ef3a31 feat:隐藏明星选择 2026-05-12 13:41:14 +08:00
zerosaturation
2cfd195ef8 style: 修改样式 2026-05-08 10:55:34 +08:00
zerosaturation
958dffce6a feat: 修改跳转小屋的路由,和修改header的样式 2026-05-07 17:55:13 +08:00
zerosaturation
75893b1f42 feat: 移除oss预url的鉴权 2026-05-07 14:12:07 +08:00
zerosaturation
f426b84c0a feat: 新增昵称增加好友和注册用户昵称时的昵称判断 2026-04-21 16:08:55 +08:00
zerosaturation
bebdc13c80 fix: 修改任务系统的bug 2026-04-17 17:17:32 +08:00
zerosaturation
65ad41d1a4 fix: 修改已知bug 2026-04-13 17:34:03 +08:00
zerosaturation
4b817b320c feat: 新增运营活动购买道具提醒 2026-04-13 16:08:52 +08:00
zerosaturation
d17589236f feat :修改ios的样式 2026-04-12 21:24:23 +08:00
zerosaturation
9a2d597e2b feat: 修改遗留bug 2026-04-12 16:05:13 +08:00
zerosaturation
eff7b8d6f0 feat: 增加手机号脱敏显示 2026-04-08 10:59:46 +08:00
zerosaturation
21630016f5 提交前端代码 2026-04-07 23:08:49 +08:00