收藏
回答

新手问下,根据最基本的操作为啥tabBar怎么不显示?

工具版本:wechat_devtools_1.06.2412050_win32_x64

问题1:代码片段分享在UI上找不到,不知道是不是版本问题,我的长这样

问题2:tabBar显示不出来,就是很基础的一个操作,帮忙看看是不是代码问题

{

  "pages": [

    "pages/index/index",

    "pages/category/category",

    "pages/cart/cart",

    "pages/user/user"

  ],

  "window": {

    "navigationBarTextStyle": "black",

    "navigationStyle": "custom"

  },

  "tabBar": {

    "color": "#252933",

    "custom": true,

    "selectedColor": "#FF734C",

    "backgroundColor": "#ffffff",

    "borderStyle": "black",

    "list": [

      {

        "pagePath": "pages/index/index",

        "text": "首页",

        "iconPath": "static/tabbar/home-icon1.png",

        "selectedIconPath": "static/tabbar/home-icon1-1.png"

      },

      {

        "pagePath": "pages/category/category",

        "text": "分类",

        "iconPath": "static/tabbar/home-icon2.png",

        "selectedIconPath": "static/tabbar/home-icon2-2.png"

      },

      {

        "pagePath": "pages/cart/cart",

        "text": "购物车",

        "iconPath": "static/tabbar/home-icon3.png",

        "selectedIconPath": "static/tabbar/home-icon3-3.png"

      },

      {

        "pagePath": "pages/user/user",

        "text": "我的",

        "iconPath": "static/tabbar/home-icon4.png",

        "selectedIconPath": "static/tabbar/home-icon4-4.png"

      }

    ]

  },

  "sitemapLocation": "sitemap.json"

}


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

2 个回答

  • Hlxuan.
    Hlxuan.
    01-29

    你开启了自定义tabBar,把这个删掉就可以了

    01-29
    有用 1
    回复
  • Joker
    Joker
    01-29

    好嘞,大佬新年快乐,教学串了

    01-29
    有用
    回复
登录 后发表内容