收藏
回答

问问大神们,我设置了tabbar为什么显示不出来呢?(下面是我写的程序)

{
  "pages": [
    "pages/index/index",
    "pages/userConsole/userConsole",
    "pages/storageConsole/storageConsole",
    "pages/databaseGuide/databaseGuide",
    "pages/addFunction/addFunction",
    "pages/deployFunctions/deployFunctions",
    "pages/chooseLib/chooseLib",
    "pages/openapi/openapi",
    "pages/openapi/serverapi/serverapi",
    "pages/openapi/callback/callback",
    "pages/openapi/cloudid/cloudid",
    "pages/im/im",
    "pages/im/room/room"
  ],
  "window": {
    "backgroundColor": "#F6F6F6",
    "backgroundTextStyle": "dark",
    "navigationBarBackgroundColor": "#0094ff",
    "navigationBarTitleText": "云开发 QuickStart",
    "navigationBarTextStyle": "white",
    "enablePullDownRefresh":true
  },
  "sitemapLocation": "sitemap.json",
  "style": "v2"
},
"tabBar": {
  "list": [
    {
      "pagePath": "pages/index/index",
      "text": "首页",
      "iconPath": "icon/shouye.png",
      "selectedIconPath": "icon/shouye_1.png"
    },
    {
      "pagePath": "pages/chooseLib/chooseLib",
      "text": "查找",
      "iconPath": "icon/chazhao_1.png",
      "selectedIconPath": "icon/chazhao_f.png"
    }
  ]
}

最后一次编辑于  03-25
回答关注问题邀请回答
收藏

2 个回答

  • undefined
    undefined
    03-25
    {
      "pages": [
        "pages/index/index",
        "pages/userConsole/userConsole",
        "pages/storageConsole/storageConsole",
        "pages/databaseGuide/databaseGuide",
        "pages/addFunction/addFunction",
        "pages/deployFunctions/deployFunctions",
        "pages/chooseLib/chooseLib",
        "pages/openapi/openapi",
        "pages/openapi/serverapi/serverapi",
        "pages/openapi/callback/callback",
        "pages/openapi/cloudid/cloudid",
        "pages/im/im",
        "pages/im/room/room"
      ],
      "window": {
        "backgroundColor": "#F6F6F6",
        "backgroundTextStyle": "dark",
        "navigationBarBackgroundColor": "#0094ff",
        "navigationBarTitleText": "云开发 QuickStart",
        "navigationBarTextStyle": "white",
        "enablePullDownRefresh":true
      },
    "tabBar": {
      "list": [
        {
          "pagePath": "pages/index/index",
          "text": "首页",
          "iconPath": "icon/shouye.png",
          "selectedIconPath": "icon/shouye_1.png"
        },
        {
          "pagePath": "pages/chooseLib/chooseLib",
          "text": "查找",
          "iconPath": "icon/chazhao_1.png",
          "selectedIconPath": "icon/chazhao_f.png"
        }
      ]
    },
      "sitemapLocation": "sitemap.json",
      "style": "v2"
    }
    
    03-25
    赞同 1
    回复 1
    • animal👣
      animal👣
      03-25
      谢谢,明白了
      03-25
      回复
  • Feb.
    Feb.
    03-25

    控制台不是报错了吗。。。

    03-25
    赞同 1
    回复 2
    • Feb.
      Feb.
      03-25
      把这个放到与window、page同级
      03-25
      回复
    • animal👣
      animal👣
      03-25
      好的,谢谢你 现在已经搞定了
      03-25
      回复
登录 后发表内容
问题标签