ty.navigateToMiniProgram
打开另一个小程序
需引入
BaseKit
,且在>=2.5.0
版本才可使用
参数
Object object
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
appId | string |
否 | 要打开的小程序 ID | |
path | string |
否 | 打开的页面路径,如果为空则打开首页,path 中 ? 后面的部分会成为 query,在小程序的 App.onLaunch 、App.onShow 和 Page.onLoad 的回调函数 |
|
position | string |
否 | 打开小程序的转场方式,分为 right bottom,指代水平和竖直方向 | |
extraData | object |
否 | 传递给目标小程序的数据,目标小程序可在 App.onLaunch ,App.onShow |