1***@qq.com
1***@qq.com
  • 发布:2023-06-21 09:00
  • 更新:2023-06-21 11:59
  • 阅读:206

【报Bug】导航栏图标不解析

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 10 专业版22H2

HBuilderX类型: 正式

HBuilderX版本号: 3.8.4

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

基础库版本号: 3.8.4.20230531

项目创建方式: HBuilderX

操作步骤:

运行到小程序模拟器,自动打开小程序开发端

预期结果:

正常显示内容

实际结果:

图片文件未找到

bug描述:

在HBuiderX开发时assets中有文件
每一次运行时出现BUG,
[ app.json 文件内容错误] app.json: ["tabBar"]["list"][0]["iconPath"]: "assets/首页.png" 未找到
["tabBar"]["list"][0]["selectedIconPath"]: "assets/首页 (1).png" 未找到
["tabBar"]["list"][1]["iconPath"]: "assets/课程表.png" 未找到
["tabBar"]["list"][1]["selectedIconPath"]: "assets/课程表 (1).png" 未找到
["tabBar"]["list"][2]["iconPath"]: "assets/我的.png" 未找到

2023-06-21 09:00 负责人:无 分享
已邀请:
喜欢技术的前端

喜欢技术的前端 - QQ---445849201

tabbar 图片放到 static/ 路径下

亦春亦秋

亦春亦秋 - 用爱发电

"tabBar": {  
        "color": "#000",  
        "selectedColor": "#3ab52d",  
        "borderStyle": "black",  
        "backgroundColor": "#ffffff",  
        "list": [{  
            "pagePath": "pages/index/index",  
            "iconPath": "static/tabbar/index.png",  
            "selectedIconPath": "static/tabbar/index-t.png",  
            "text": "首页"  
        }, {  
            "pagePath": "pages/order/order",  
            "iconPath": "static/tabbar/order.png",  
            "selectedIconPath": "static/tabbar/order-t.png",  
            "text": "列表"  
        }, {  
            "pagePath": "pages/record/record",  
            "iconPath": "static/tabbar/record.png",  

            "selectedIconPath": "static/tabbar/record-t.png",  
            "text": "记录"  
        }]  
    },

你对比一下,不知道你具体的代码
1.注意图片名称尽量不要用中文

  1. 注意路径
  • 1***@qq.com (作者)

    好的,谢谢

    2023-06-21 11:39

1***@qq.com

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

我的图片名称换成英文还是同样的问题

该问题目前已经被锁定, 无法添加新回复