Commit Graph

8 Commits

Author SHA1 Message Date
985538d957 test(web_view): 添加 ?app=identifier 参数模式
测试用:navigateTo 传 ?app=pregnancy 直接触发 _resolveAppScene
跳过 scene 参数被微信拦截的问题,验证整个 app 解析链路:
  _resolveAppScene("pregnancy", option)
  → 调 box_app /api/mp/apps
  → 匹配 identifier=pregnancy
  → 拿到 App.url
  → 加载 H5

+ 测试按钮改为 ?app=pregnancy
2026-07-08 18:47:45 +08:00
61caf4eb50 test(web_view): 测试按钮直接传 H5 URL 并加调试日志
不再依赖 scene/wxscene 参数传递(参数名可能被微信拦截)
改为直接传 ?url=encoded_h5_url
同时 web_view onLoad 打印所有 option 参数供排错
2026-07-08 18:40:18 +08:00
0e9ce6f7d6 fix(web_view): 改用 wxscene 避免 scene 被微信拦截
微信小程序的 navigateTo 会把 `scene` 参数名当作保留字段
(只由扫码填充),导致 `option.scene` 为空。
改用 wxscene,同时在 web_view onLoad 中兼容检查两者。
2026-07-08 18:29:08 +08:00
fa74238186 fix(user): 将 goWxacodeTest 移至 methods 块内
修复 "Page does not have a method 'goWxacodeTest'" 错误
原因是 goWxacodeTest 之前被放在了 export default 顶层,
不在 methods: {} 块内,Vue 2 不识别
2026-07-08 18:25:39 +08:00
92069bf5df fix(user): 恢复 user-my-apps 组件引用
修复如下问题:
1. 重新添加 <user-my-apps> 模板标签(之前被 git checkout 丢弃)
2. 添加 import userMyApps
3. 在 components 注册 userMyApps
2026-07-08 18:22:49 +08:00
e0a44cf6e3 fix(user): 测试按钮增加底部外间距,避免被导航 tab 遮挡
dev-test-section padding-bottom 从 30rpx 增至 120rpx
确保按钮在 tab 上方完整可见
2026-07-08 18:14:35 +08:00
5079289a84 feat(user): 个人中心底部添加太阳码扫码测试按钮
新增测试按钮用于模拟太阳码扫码跳转流程:
  scene=app=pregnancy 触发 _resolveAppScene
  → 调 box_app /api/mp/apps 查 H5 URL
  → 加载孕育无忧 web-view

改动:
  - pages/user/index.vue 模板: 底部添加测试按钮(根 view 内)
  - pages/user/index.vue script: goWxacodeTest 方法
  - pages/user/index.vue style: 按钮样式(紫色虚线边框)

HBuilderX 需重新编译后可用
2026-07-08 17:58:16 +08:00
a5c5d753b6 feat: 添加静态资源文件及基础组件
- 新增大量图片资源,包括图标、背景图、海报等,用于页面展示
- 添加字体文件及样式配置,支持自定义字体
- 引入 uni-ui 组件库,包括图标、弹窗、日期选择器等常用组件
- 添加网络状态监听、加密工具等基础工具函数
- 配置 Vuex 状态管理,包括购物车数量、热门搜索词等
- 增加页面组件,如用户协议、分销信息、提现状态等
- 配置项目构建和忽略文件,优化开发体验
2026-02-26 17:59:51 +08:00