# jumpNativePage

打开指定的原生页面

  • 参数描述:
Prop Type Required Default Description
param Object Y {}附表1 请求参数

附表 1:param参数

Prop Type Required Default Description
pageName String Y 见附表2 跳转的目标页面
url String Y N/A 电商落地页的 url
电商页面 url 规则.txt
data String Y {}附表3 json 格式字符串

附表 2:pageName类别

Value Description
login 登录页面
CookbookHome 菜谱首页
CookbookDetail 菜谱详情
jumpToGatewayBindPage 网关绑定
addDevice 添加设备
onlineService 在线客服
voiceControl 语音控制
deviceDetail 设备详情页(房间更改、修改名字等)
electronicBusinessPage 跳转到电商页面
notificationSettings ^5.7.0 设置-》设备消息提醒-》对应参数 applianceId 设备的提醒设置
gotoPlugin ^6.5 跳转回首页,从首页跳转插件,显示下载进度
pluginOTA 插件OTA页面 (仅Android^7.0支持)

附表 3:data参数

Prop Type Required Default Description
recipeId String Y N/A 食谱 id(跳转CookbookDetail时使用)
xxxx String Y N/A 语音控制voiceControl使用自定义欢迎词
useCustomWelcome Boolean Y N/A voiceControl是否使用默认:false 使用默认/true 使用自定义
applianceId ^5.7.0 String Y N/A 应用 ID(pageNamenotificationSettings时指定设备设置)
deviceId String Y N/A 设备 ID pageNamedeviceDetail时指定设置

# 接口调用示例

this.$bridge
  .jumpNativePage(param)
  .then(res => {
    this.$toast(res)
  })
  .catch(err => {
    this.$toast(err)
  })
1
2
3
4
5
6
7
8
Last Updated: 11/9/2022, 6:56:27 PM