收藏
回答

定义了tabbar但是提示找不到路径下的文件?

[ app.json 文件内容错误] app.json: ["tabBar"]["list"][0]["iconPath"]: "common/images/tabBar/homepage.png" 未找到

["tabBar"]["list"][0]["selectedIconPath"]: "common/images/tabBar/homepage1.png" 未找到

["tabBar"]["list"][1]["iconPath"]: "common/images/tabBar/type.png" 未找到

["tabBar"]["list"][1]["selectedIconPath"]: "common/images/tabBar/type1.png" 未找到

["tabBar"]["list"][2]["iconPath"]: "common/images/tabBar/user.png" 未找到

["tabBar"]["list"][2]["selectedIconPath"]: "common/images/tabBar/user1.png" 未找到(env: Windows,mp,1.06.2303220; lib: 3.5.5)


page.json文件内容如下

{

"pages": [

{

"path": "pages/index/index",

"style": {

"navigationBarTitleText": "uni-app",

"navigationStyle": "custom"

}

}

    ,{

            "path" : "pages/classify/classify",

            "style" :                                                                                    

            {

                "navigationBarTitleText": "分类详情",

                "enablePullDownRefresh": false,

"navigationStyle": "custom"

            }

            

        }

        ,{

            "path" : "pages/user/user",

            "style" :                                                                                    

            {

                "navigationBarTitleText": "个人信息",

                "enablePullDownRefresh": false,

"navigationStyle": "custom"

            }

            

        }

    ],

"globalStyle": {

"navigationBarTextStyle": "black",

"navigationBarTitleText": "uni-app",

"navigationBarBackgroundColor": "#F8F8F8",

"backgroundColor": "#F8F8F8"

},

"tabBar": {

// 统一颜色

"color": "#9799a5",

"selectedColor": "#28B389",

"list": [{

"text":"推荐",

"pagePath":"pages/index/index",

"iconPath": "common/images/tabBar/homepage.png",

"selectedIconPath": "common/images/tabBar/homepage1.png"

},

{

"text": "分类",

"pagePath": "pages/classify/classify",

"iconPath": "common/images/tabBar/type.png",

"selectedIconPath": "common/images/tabBar/type1.png"

},

{

"text": "我的",

"pagePath": "pages/user/user",

"iconPath": "common/images/tabBar/user.png",

"selectedIconPath": "common/images/tabBar/user1.png"

}

]

}

}


回答关注问题邀请回答
收藏

1 个回答

  • Demons
    Demons
    09-09

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    09-09
    有用
    回复
登录 后发表内容