微信小程序底部导航栏的图标不显示?
发布于 7 年前 作者 yanyong 12997 次浏览 来自 官方Issues
"tabBar": {
  "list": [
    {
      "iconPath": "pages/images/1.png",
      "selectedIconPath": "pages/images/2.png",
      "pagePath": "pages/xwdt/xwdt",
      "text": "新闻动态"
    },
    {
      "selectedIconPath": "pages/images/4.png",
      "icomPath": "pages/images/3.png",
      "pagePath": "pages/kb/kb",
      "text": "课表"
    },
    {
      "icomPath": "pages/images/5.png",
      "selectedIconPath": "pages/images/6.png",
      "pagePath": "pages/wd/wd",
      "text": "我的"
    }
  ],
  "color": "ff0000",
  "selectedColor": "0000ff",
  "borderStyle": "black",
  "backgroundColor": "#c0c0c0"
},
3 回复

仔细检查代码或者直接放片段吧

看不出来有神魔问题,重启工具呢

你看看工具里面有没有提示图片路径未找到,重新编译几次就好了

回到顶部