4***@qq.com
4***@qq.com
  • 发布:2024-06-07 16:28
  • 更新:2024-06-07 16:28
  • 阅读:57

【报Bug】页面首次切换会出现短暂白屏问题

分类:uni-app

产品分类: uniapp/小程序/字节跳动

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 4.15

第三方开发者工具版本号: 4.2.2

基础库版本号: 3.23.0.5

项目创建方式: HBuilderX

示例代码:

,app.js里面只有简单的tabBar声明 没个页面也只有简陋的样式
app.js

{  
  "pages": [  
    "pages/index/index",  
    "pages/list/index",  
    "pages/history/index",  
    "pages/user/index",  
    "pages/login/index",  
    "pages/login/form"  
  ],  

  "window": {  
    "navigationBarTitleText": "标题",  
    "navigationBarTextStyle": "white",  
    "navigationBarBackgroundColor": "#121325",  
    "backgroundColor": "#252735",  
    "backgroundColorBottom": "#252735",  
    "onReachBottomDistance": 300  
  },  
  "tabBar": {  
    "color": "#A1A3B5",  
    "selectedColor": "#ffffff",  
    "backgroundColor": "#252735",  
    "list": [  
      {  
        "pagePath": "pages/index/index",  
        "text": "首页",  
        "iconPath": "/static/images/tabbar/home.png",  
        "selectedIconPath": "/static/images/tabbar/home_white.png"  
      },  
      {  
        "pagePath": "pages/list/index",  
        "text": "片库",  
        "iconPath": "static/images/tabbar/list.png",  
        "selectedIconPath": "static/images/tabbar/list_white.png"  
      },  
      {  
        "pagePath": "pages/history/index",  
        "text": "历史",  
        "iconPath": "static/images/tabbar/history.png",  
        "selectedIconPath": "static/images/tabbar/history_white.png"  
      },  
      {  
        "pagePath": "pages/user/index",  
        "text": "我的",  
        "iconPath": "static/images/tabbar/user.png",  
        "selectedIconPath": "static/images/tabbar/user_white.png"  
      }  
    ]  
  },  
  "component2": true,  
  "usingComponents": {}  
}

ttml

<view><view class="white--text">1</view><view style="background:#f00;">1</view></view>

操作步骤:

点击下方tabbar切换页面

预期结果:

保留设置的底色 "backgroundColor": "#252735" 来进行页面直接的切换

实际结果:

内容部分会出现 短暂白屏 如上图所示

bug描述:

页面首次切换会出现短暂白屏问题 先出现图1才出现图2,

2024-06-07 16:28 负责人:无 分享
已邀请:

要回复问题请先登录注册