tabBar代码写好了,小程序下面没得导航栏?
发布于 7 年前 作者 tao17 9074 次浏览 来自 问答

源代码如下:{

  "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 回复

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

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

回到顶部