goToMeijuPage 跳转美居页面

goToMeijuPage ^5.8.0

props comment
type 跳转类型。 跳转原生页为jumpNative 跳转插件页为jumpPlugin 跳转weex为jumpweex 跳转webview为jumpWebview 跳转dolphin webview为 jumpWebViewNew 跳转dolphin weex业务插件和H5插件为 jumpHybridModule
param 跳转webview,参数有url等 跳转原生页,参数有pageName等 跳转weex,参数有url等 跳转插件页,参数有deviceId等 需不要带导航栏字段;needNavigation。1为需要 0为不需要 需不需要带底部导航 如needTabbar

#详细的路由跳转示例如下链接

路由跳转详细说明

#接口调用示例

// 第一种方式原生
const params = {
    "url": "meiju://com.midea.meiju/main?type=jumpNative&pageName=login&needNavi=1"
}
// 第二种方式
const params = {
  type: 'jumpNative',
  param: {
    pageName: 'kugoumusic/bind',
    deviceId: 'xxxxxxx',
    nickname: 'x',
    pic: 'xxxxxxx',
    deviceNumber: '5',
    needNavi: '1',
  },
}
this.$bridge
  .goToMeijuPage(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
posted on 2024-12-18 09:19  AtlasLapetos  阅读(17)  评论(0)    收藏  举报