tabbar没有显示出来?
发布于 6 年前 作者 dongjing 5722 次浏览 来自 问答
{
  "pages": [
    "pages/index/index",
    "pages/course/course",
    "pages/weibo/weibo",
    "pages/logs/logs",
    "images/tabber"
  ],
  "window": {
    "backgroundTextStyle": "dark",
    "navigationBarBackgroundColor": "#ccc",
    "navigationBarTextStyle": "black",
    "navigationStyle": "default",
    "navigationBarTitleText": "微信接口功能演示",
    "backgroundColor": "pink",
    "enablePullDownRefresh": true
  },
  "tabBar": {
    "color": "#8a8a8a",
    "selectedColor": "#1AAD16",
    "list": [
      {
     "pagePath":"pages/index/index",
      "text":"微信",
      "iconpath":"images/tabbar/tabbar.png",
      "selectedIconpath":"images/tabbar/tabbarselected.png"
      },
      {
        "pagePath": "pages/course/course",
        "text": "通讯录",
        "iconpath": "images/tabbar/通讯录.png",
        "selectedIconpath": "images/tabbar/通讯录selected.png"
      },
      {
        "pagePath": "pages/weibo/weibo",
        "text": "发现",
        "iconpath": "images/tabbar/发现.png",
        "selectedIconpath": "images/tabbar/发现selected.pn"
      },
      {
        "pagePath": "pages/logs/logs",
        "text": "我",
        "iconpath": "images/tabbar/我.png",
        "selectedIconpath": "images/tabbar/我selected.png"
      }
    ]
  },
  "debug": true  ,
  "sitemapLocation": "sitemap.json"
}

各位麻烦看一下 研究了半天 找不到错误 也没有报错 没有显示图片

2 回复

截图你的项目目录结构

顺便写个能复现问题的代码片段。 https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

然后建议图片名称使用英文。。。

iconpath换成英文名的试试?

回到顶部