taBar显示不出来?
发布于 6 年前 作者 pwu 12064 次浏览 来自 官方Issues

{

  "pages": [ 

    "pages/index/index",

    "pages/calc/calc",

    "pages/history/history",

    "pages/logs/logs",

    "pages/huobiduihuan/huobiduihuan",

      "pages/jisuanqi/jisuanqi",

    "pages/jishiqi/jishiqi",

    "pages/ditu/ditu" 

  ],

  "window": {

    "navigationBarBackgroundColor": "#da7c0c",

    "navigationBarTitleText": "共同的家",

    "navigationBarTextStyle": "white"

  },

  "taBar": {

    "color": "#000",

    "selectedColor": "#00f",

    "list": [

      {

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

        "text": "家庭首页",

        "iconPath":"/images/guanmen.JPG",

        "selectedIconPath":"/images/kaimeng.JPG"

      },

      {

        "pagePath": "pages/jisuanqi/jisuanqi",

        "text": "家庭计算器",

        "iconPath":"/images/guanmen.JPG",

        "selectedIconPath":"/images/kaimeng.JPG"

      },

      {

        "pagePath": "pages/jishiqi/jishiqi",

        "text": "家庭计时器",

        "iconPath":"/images/guanmen.JPG",

        "selectedIconPath":"/images/kaimeng.JPG"

      },

      {

        "pagePath": "pages/ditu/ditu",

        "text": "家庭地图",

        "iconPath":"/images/guanmen.JPG",

        "selectedIconPath":"/images/kaimeng.JPG"

      },

      {

        "pagePath": "pages/huobiduihuan/huobiduihuan",

        "text": "家庭货币兑换",

        "iconPath":"/images/guanmen.JPG",

        "selectedIconPath":"/images/kaimeng.JPG"

      }

    ]

  },

  "sitemapLocation": "sitemap.json"

 

}

3 回复
注意是tabBar而不是taBar

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

tabar中backgroundColor属性是必填项,你的没写

回到顶部