给示例程序设置tabBar,提示无效的app.json window["tabBar"],请求帮助?
发布于 3 年前 作者 taoyang 12802 次浏览 来自 问答
{
  "pages": [
    "pages/index/index",
    "pages/logs/logs"
  ],
  "window": {
    "backgroundTextStyle""light",
    "navigationBarBackgroundColor""#fff",
    "navigationBarTitleText""Weixin",
    "navigationBarTextStyle""black",
    "tabBar": {
      "backgroundColor""#ffffff",
      "color""#000000",
      "selectedColor""#000000",
      "list": [{
        "pagePath""pages/index/index",
        "text""index",
        "iconPath""images/home.png",
        "selectedIconPath""images/home1.png"
      },
      {
        "pagePath""pages/logs/logs",
        "text""logs",
        "iconPath""images/watch.png",
        "selectedIconPath""images/watch1.png"
      }]
    }
  },
  "style""v2",
  "sitemapLocation""sitemap.json"
}

使用的是最新版本的开发工具,1.05.2103200

2 回复

建议你直接在demo上改哈

可以避免 window,pages, tabBar 层级的错位哈

啊哈,知道了,window和tabBar是同级的。发完贴旁边推荐了类似的请求贴,搜索关键词的时候怎么不给推荐。 = =

回到顶部