完善原生内容卡与H5详情分工

This commit is contained in:
2026-03-27 21:03:55 +08:00
parent 0e0a724025
commit 0703fd47a2
21 changed files with 903 additions and 83 deletions

View File

@@ -195,6 +195,18 @@
- 类型:`string`
- 说明:打点完成后自动弹出的标题
#### `template`
- 类型:`string`
- 说明:原生内容卡模板
- 当前支持:
- `minimal`
- `story`
- `focus`
- 建议默认值:
- 起点/终点:`focus`
- 普通点:`story`
#### `body`
- 类型:`string`
@@ -233,11 +245,86 @@
- 普通点:`1`
- 终点:`2`
#### `contentExperience`
- 类型:`object`
- 说明:打点完成后使用的体验承载配置
- 当前支持:
- `native`
- `h5`
#### `contentExperience.type`
- 类型:`string`
- 说明:自动弹出内容的承载方式
- 当前支持:
- `native`
- `h5`
#### `contentExperience.url`
- 类型:`string`
- 说明:当 `type = "h5"` 时对应的 H5 页面地址
#### `contentExperience.bridge`
- 类型:`string`
- 说明H5 bridge 版本
- 建议默认值:`"content-v1"`
#### `contentExperience.presentation`
- 类型:`string`
- 说明H5 内容的展示形态
- 当前支持:
- `sheet`
- `dialog`
- `fullscreen`
- 建议默认值:`sheet`
#### `clickExperience`
- 类型:`object`
- 说明:点击控制点时使用的体验承载配置
- 当前支持:
- `native`
- `h5`
#### `clickExperience.type`
- 类型:`string`
- 说明:点击内容的承载方式
- 当前支持:
- `native`
- `h5`
#### `clickExperience.url`
- 类型:`string`
- 说明:当 `type = "h5"` 时对应的 H5 页面地址
#### `clickExperience.bridge`
- 类型:`string`
- 说明H5 bridge 版本
- 建议默认值:`"content-v1"`
#### `clickExperience.presentation`
- 类型:`string`
- 说明:点击内容的展示形态
- 当前支持:
- `sheet`
- `dialog`
- `fullscreen`
- 建议默认值:`sheet`
### 6.3 示例
```json
"controlOverrides": {
"start-1": {
"template": "focus",
"title": "比赛开始",
"body": "从这里出发,先熟悉地图方向。",
"autoPopup": true,
@@ -247,6 +334,7 @@
"clickBody": "点击起点可再次查看起跑说明。"
},
"control-2": {
"template": "minimal",
"score": 20,
"title": "教学楼南侧",
"body": "这里是重要转折点。",
@@ -254,9 +342,22 @@
"once": true,
"priority": 1,
"clickTitle": "教学楼南侧",
"clickBody": "这个点配置成点击查看。"
"clickBody": "这个点配置成点击查看。",
"contentExperience": {
"type": "h5",
"url": "https://example.com/content/control-2",
"bridge": "content-v1",
"presentation": "sheet"
},
"clickExperience": {
"type": "h5",
"url": "https://example.com/content/control-2-click",
"bridge": "content-v1",
"presentation": "dialog"
}
},
"finish-1": {
"template": "focus",
"title": "比赛结束",
"body": "恭喜完成本次路线。",
"autoPopup": true,