使用小程序自带tabbar时,首次加载页面切换时会闪一下黑屏,请问怎么解决?
发布于 6 年前 作者 caichao 14100 次浏览 来自 问答

使用小程序自带tabbar时,首次加载页面切换时会闪一下黑屏,然后才切换到界面,非常影响体验,请大神们看一下如何解决。这是其中的一个页面。

<!-- 我的-页面 -->

<view style=“background-color:#e7e7e7;height:100vh;overflow-x:hidden”>

<view>

<!-- 用户信息 -->

<view style=“background-color:#f7f7f7;display:flex;width:100vh;height:120px;”>

<open-data type=“userAvatarUrl” style=“width:50px;height:50px;margin-left:30px;margin-top:40px;”></open-data>

<open-data type=“userNickName” style=“margin-top:50px;margin-left:20px;font-weight:600”></open-data>

</view>

<!-- 我的发布 -->

<view style=“background-color:#f7f7f7;height:50px;margin-top:8px;display:flex;” bindtap=“tiaozhuan”>

<image src="/Img/fabu(1).png" style=“width:29px;height:29px;padding:9px;”></image>

<text style=“font-weight:500;padding:13px;”>我的发布</text>

</view>

</view>

</view>

5 回复

泻药,人在P城,刚下飞机,哈佛上网,信号不好,城里熟人太多,枪法不好,看下小程序没遇到

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

vivo手机也会,亲测会发生黑屏

谢邀,没遇到过

加载?切换?有点不明白意思。

回到顶部