整理文档并接入 H5 体验测试链路
This commit is contained in:
26
miniprogram/game/experience/h5Experience.ts
Normal file
26
miniprogram/game/experience/h5Experience.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
export type H5ExperienceKind = 'content' | 'result'
|
||||
|
||||
export interface H5ExperienceFallbackPayload {
|
||||
title: string
|
||||
body: string
|
||||
motionClass: string
|
||||
contentKey: string
|
||||
once: boolean
|
||||
priority: number
|
||||
autoPopup: boolean
|
||||
}
|
||||
|
||||
export interface H5ExperienceRequest {
|
||||
kind: H5ExperienceKind
|
||||
title: string
|
||||
url: string
|
||||
bridgeVersion: string
|
||||
context: Record<string, unknown>
|
||||
fallback: H5ExperienceFallbackPayload
|
||||
}
|
||||
|
||||
export interface H5BridgeMessage {
|
||||
action?: string
|
||||
type?: string
|
||||
payload?: Record<string, unknown>
|
||||
}
|
||||
Reference in New Issue
Block a user