s***@qq.com
s***@qq.com
  • 发布:2019-09-21 13:03
  • 更新:2020-06-08 17:57
  • 阅读:1152

Tabbar 中嵌套显示Webview ,WebView看不见

分类:uni-app

Tabbar 中嵌套显示Webview ,WebView看不见

  • H5 不显示WebView
  • App Android 不显示WebView
  • 微信小程序 正常显示

tabBar nvue 代码
<template>
<view>
<web-view id="webview" src="https://app.t-juli.com/Star/index"></web-view>
</view>
</template>
<script>
var wv;//计划创建的webview
export default {
onReady() {
// #ifdef APP-PLUS
var currentWebview = this.$mp.page.$getAppWebview() //获取当前页面的webview对象
setTimeout(function() {
wv = currentWebview.children()[0]
wv.setStyle({top:0,height:900})
}, 5000); //如果是页面初始化调用时,需要延时一下
// #endif
}
};
</script>

2019-09-21 13:03 负责人:无 分享
已邀请:
s***@qq.com

s***@qq.com (作者) - 好好好

问题解决了,使用 .nvue app 端不能正常显示,使用 .vue 布局的页面正常显示。

叶耳朵

叶耳朵

tabbar页嵌套 webview 点击下一页 返回怎么返回呢

  • wanglifei

    升级到Alpha最新版可以解决

    2020-06-15 10:58

该问题目前已经被锁定, 无法添加新回复