抖音原生的跳转能力
tt.navigateTo
保留当前页面,跳转到应用内的某个页面,但是不能跳转到 tabBar 页面,使用 tt.navigateBack 可以返回到原页面。
https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/api/navigation/tt-navigate-to/
tt.navigateToVideoView
跳转到分享的视频播放页面。
tt.navigateToMiniProgram
跳转到另一个小程序。
https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/api/open-interface/mini-app-forward/tt-navigate-to-mini-program/
redirectTo、navigateTo 等页面跳转的 api 只支持 url 为 / 开始的绝对路径。
web-view 网页容器
该组件是一个用于承载网页的容器,将 H5 切入到小程序内部,铺满整个页面。使用该组件要进行业务域名配置,仅支持添加开发者可控制(能放置校验文件到域名根目录)的域名。个人类型的小程序暂不支持使用。
https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/open-capacity/web-view/
tt.openAwemeUserProfile
跳转抖音个人主页tt.openAwemeUserProfile,需要在小程序后台开通相关功能
跳