1***@163.com
1***@163.com
  • 发布:2023-02-22 16:46
  • 更新:2023-02-22 23:42
  • 阅读:1106

uniapp 配置tabBar后微信小程序不显示导航栏

分类:uni-app

以下是tabbar配置,页面和图片资源都存在,尝试用真机调试也不显示底部导航栏

"tabBar": {  
        "custom":false,  
        // "position":"bottom",  
        "borderStyle": "black",  
        "backgroundColor": "#ffffff",  
        "selectedColor": "#00aa00",  
        // "height": "60px",  
        "color": "#444444",  
        "list": [  
            {  
                "pagePath": "pages/pre/pre",  
                "iconPath": "static/images/pre.png",  
                "selectedIconPath": "static/images/pre_s.png",  
                "text": "预约"  
            },  
            {  
                "pagePath": "pages/user/user",  
                "iconPath": "static/images/me.png",  
                "selectedIconPath": "static/images/me_s.png",  
                "text": "我的"  
            }  
        ],  
    },  
0 关注 分享

要回复文章请先登录注册

1***@163.com

1***@163.com (作者)

已解决,tabBar第一个 pagePath 必须和pages第一个页面相同
2023-02-22 23:42