|
|
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 |
|
|
|
f18a21ea73
|
refactor(web_view): 把 _resolveAppScene 和 _initWebView 移到 methods 块内
HBuilderX 编译错误"Unexpected token (350:0)"
根因:Vue 2 Options API 要求所有方法在 methods: { ... } 块内
之前把这两个方法放在 export default 顶层,违反规范
修复:把 _resolveAppScene 和 _initWebView 移到 methods 块开头
Node.js --check 验证:语法通过
|
2026-07-08 17:45:58 +08:00 |
|
|
|
ccd6380c4b
|
fix(web_view): 补回 export default 关闭括号
build error: Unexpected token (350:0)
原因:之前修复时连续删多了,export default {...} 块本身没有关闭
修复:第 350 行 </script> 之前插入 `\t}` 关闭 export default
Node.js --check 验证:语法通过
|
2026-07-08 17:37:35 +08:00 |
|
|
|
6e3e2bb3ea
|
fix(web_view): 补回 handleMessage 方法关闭逗号
build error: Unexpected token, expected "," (350:0)
原因:之前修复时手抖,handleMessage 方法 `}` 后缺 `,`
导致 export default 最后一个属性末尾不合法
修复:第 348 行 `}` → `},`
Node.js --check 验证:语法通过
|
2026-07-08 17:31:52 +08:00 |
|
|
|
2e97550a5c
|
fix(web_view): 补回 _resolveAppScene 方法关闭括号
build error: Missing semicolon (163:22)
原因:之前修复时误删了 _resolveAppScene 方法的关闭 `},`
导致 _initWebView 紧接 uni.request 的 `});`,缺少 _resolveAppScene 关闭
修复:在 uni.request 关闭后插入 `\t\t},`
Node.js --check 验证:语法通过
|
2026-07-08 17:28:28 +08:00 |
|
|
|
e137841ec1
|
fix(web_view): 修正 export default 结构
build error: Unexpected token, expected "," (352:0)
原因:
1. 在 onLoad 内部错误地多写了 `methods: {` 块
2. 末尾有一个多余的 `}`
修复:
- 删除错位的 `methods: {` 块
- _resolveAppScene 和 _initWebView 现在作为 export default
顶层方法(Vue 2 Options API 支持)
- 删除末尾多余的 `}`
- 转换回 CRLF 行尾(HBuilderX 期望)
CRMEB 应能正常 HBuilderX 编译。
|
2026-07-08 17:10:56 +08:00 |
|
|
|
c184108f45
|
feat(web_view): 太阳码 scene 解析支持 app=identifier
box_app /api/wxacode 新增 app=identifier 模式,scene 编码
"app=<identifier>"。CRMEB 收到后解析 scene,调 box_app
/api/mp/apps 找对应 H5 url,加载应用。
场景示例:
太阳码 path=pages/annex/web_view/index
太阳码 scene="app=pregnancy"
→ CRMEB 调 box_app /api/mp/apps
→ 遍历 items 找 identifier=pregnancy 的 App
→ 拿到 App.url
→ 注入到 web-view src
→ 加载孕育无忧 H5
兼容性:
- 原 ?url=xxx 模式完全保留
- scene 解析失败/响应异常时降级到 CRMEB 首页
- 不影响原有分享/复制链接功能
实现细节:
- 遍历 items 找 identifier(不依赖 items[0] 排序假设)
- 找不到时回退 items[0](保底)
- 未来 box_app 支持 ?identifier= 直接过滤时,CRMEB 端无需改动
|
2026-07-08 16:41:58 +08:00 |
|
|
|
69da6597d9
|
fix(web_view): 修复 H5 分享消息投递,废弃无效 uni.share()
- handleMessage share 分支:存储 H5 传来的分享数据,Toast 引导用户点击右上角原生分享
- onShareAppMessage / onShareTimeline:使用 H5 传来的 title/imageUrl/href
- 新增 shareSummary/shareImageUrl/shareHref data 属性
|
2026-07-02 19:54:53 +08:00 |
|
|
|
a5c5d753b6
|
feat: 添加静态资源文件及基础组件
- 新增大量图片资源,包括图标、背景图、海报等,用于页面展示
- 添加字体文件及样式配置,支持自定义字体
- 引入 uni-ui 组件库,包括图标、弹窗、日期选择器等常用组件
- 添加网络状态监听、加密工具等基础工具函数
- 配置 Vuex 状态管理,包括购物车数量、热门搜索词等
- 增加页面组件,如用户协议、分销信息、提现状态等
- 配置项目构建和忽略文件,优化开发体验
|
2026-02-26 17:59:51 +08:00 |
|