push 路由跳转
push
跳转到下一 weex 页面
插件首页 weex.js 默认的 viewTag 是:rootView,返回插件首页可以使用
#请求参数
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
url |
String |
Y |
N/A |
跳转页面路径(以插件文件夹为根目录的相对路径) |
options |
Object |
N |
animated: replace: viewTag: bgColor: |
跳转时选项设置 |
params |
Object |
N |
- |
url 拼接的参数,以对象键值对形式传参 |
callback |
Object |
N |
- |
跳转成功的回调 |
#接口调用示例
//跳转到pageA页面
let url = 'pageA.js',
options = {
viewTag: 'pageA',
},
params = {
type: 'T0x13',
name: 'lamp'
}
this.$bridge
.push({
url,
options,
params
})
.catch((err) => {
console.log(err)
})
浙公网安备 33010602011771号