收藏
回答

tabBar代码写好了,小程序下面没得导航栏?

源代码如下:{

  "pages": [

    "pages/a/a",

    "pages/index/index",

    "pages/b/b",

    "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": "#0000ff",

    "backgroundTextStyle": "light",

    "navigationBarBackgroundColor": "#ff0000",

    "navigationBarTitleText": "南充市蜻蜓科技",

    "navigationBarTextStyle": "black"

  },

  "tabBar": {

    "color": "#0000ff",

    "selectedColor": "#ffff00",

    "backgroundColor": "#ffffff",

    "borderStyle": "black",

    "list": [{

      "pagePath": "pages/b/b",

      "text": "text",

      "iconPath": "img/101.jpg",

      "selectedIconPath": "img/105.jpg"

    },

    {

      "pagePath": "pages/b/b",

      "text": "text",

      "iconPath": "img/102.jpg",

      "selectedIconPath": "img/105.jpg"

    },

    {

      "pagePath": "pages/b/b",

      "text": "text",

      "iconPath": "img/102.jpg",

      "selectedIconPath": "img/105.jpg"

    },

    {

      "pagePath": "pages/b/b",

      "text": "text",

      "iconPath": "img/102.jpg",

      "selectedIconPath": "img/105.jpg"

    }

  ]

  },

  "sitemapLocation": "sitemap.json",

  "style": "v2"

 


}

回答关注问题邀请回答
收藏

1 个回答

  • 祺爸💎
    祺爸💎
    2020-06-01

    只有tabbar页面才会有tabbar,文档一定要看

    若认为该回答有用,给回答者点个[ 有用 ],让答案帮助更多的人

    2020-06-01
    有用 1
    回复 1
登录 后发表内容
问题标签