收藏
回答

如何解决不同的tabBar绑定相同的pagePath?

tarBar有4个按钮,其中3个跳转同一个页面,开发者工具中显示正常,但是预览或者体验版只显示两个,相同pagePath的只会显示一个,这个要如何解决?

"pages": [
    "pages/index/index",
    "pages/list/list",
    "pages/detail/detail"
  ],
  "tabBar": {
    "custom"false,
    "color""#7A7E83",
    "selectedColor""#3cc51f",
    "borderStyle""black",
    "backgroundColor""#ffffff",
    "bindchange""bindChange",
    "list": [
      {
        "pagePath""pages/index/index",
        "iconPath""image/Home.png",
        "selectedIconPath""image/Home_HL.png",
        "text""首页"
      },
      {
        "pagePath""pages/list/list",
        "iconPath""image/game.png",
        "selectedIconPath""image/game_HL.png",
        "text""游戏"
      },
      {
        "pagePath""pages/list/list",
        "iconPath""image/comic.png",
        "selectedIconPath""image/comic_HL.png",
        "text""动漫"
      },
      {
        "pagePath""pages/list/list",
        "iconPath""image/util.png",
        "selectedIconPath""image/util_HL.png",
        "text""工具"
      }
    ]
  }
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容
问题标签