小程序原生tabBar会闪一下
发布于 5 年前 作者 zluo 4124 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

原生tabBar都会闪.

  • 预期表现

至少原生tabBar别闪…

google搜出来的都是自定义tabBar会闪一下, 但是我的原生tabBar都会闪, 直接在pages.json里设置的, 其他都没有改. github上找了很多小程序demo, 都会闪, 但是不晓得为什么没人提这个issue. 不晓得这个怎么解决?

环境: 小程序工具最新版. 微信7.0.3, 安卓7.1.

换不同手机测试了下, IOS不闪, 安卓9.1会快速闪白色(但不影响观感).

"tabBar": {
    "color": "#7A7E83",
    "selectedColor": "#3cc51f",
    "borderStyle": "black",
    "backgroundColor": "#ffffff",
    "list": [
        {
            "pagePath": "pages/video/index",
            "iconPath": "static/icons/video.png",
            "selectedIconPath": "static/icons/video-active.png",
            "text": "video"
        },
        {
            "pagePath": "pages/game/index",
            "iconPath": "static/icons/center.png",
            "selectedIconPath": "static/icons/center-active.png",
            "text": "game"
        },
        {
            "pagePath": "pages/learn/index",
            "iconPath": "static/icons/center.png",
            "selectedIconPath": "static/icons/center-active.png",
            "text": "center"
        },
        {
            "pagePath": "pages/center/index",
            "iconPath": "static/icons/center.png",
            "selectedIconPath": "static/icons/center-active.png",
            "text": "center"
        }
    ]
},
1 回复

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

回到顶部