2***@qq.com
2***@qq.com
  • 发布:2024-07-04 11:12
  • 更新:2024-07-04 11:36
  • 阅读:145

uniapp的pages.json配置tabbar时加了midButton,跳转页面后没有tabbar了

分类:uni-app

如何显示出来并且没有切换间隙

2024-07-04 11:12 负责人:无 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

你跳转是跳转到哪里,是跳转到tabbar页面吗。详细给出一下你的tabbar

  • 2***@qq.com (作者)

    "tabBar": {

    "color": "#95ACBE",

    "selectedColor": "#fff",

    "backgroundColor": "#fff",

    "midButton": {

    "height": "",

    "width": "",

    "text": "非密办公",

    "iconPath": "",

    "iconWidth": ""

    },

    "list": [{

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

    "text": "首页",

    "iconPath": "/static/tabbar/a11.png",

    "selectedIconPath": "/static/tabbar/a21.png"

    }, {

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

    "text": "分类",

    "iconPath": "/static/tabbar/b1.png",

    "selectedIconPath": "/static/tabbar/b2.png"

    },

    // {

    // "pagePath": "pages/tabbar/work",

    // "text": "非密办公",

    // "iconPath": "/static/tabbar/c3.png",

    // "selectedIconPath": "/static/tabbar/c3.png"

    // },

    {

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

    "text": "购物车",

    "iconPath": "/static/tabbar/d1.png",

    "selectedIconPath": "/static/tabbar/d2.png"

    }, {

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

    "text": "我的",

    "iconPath": "/static/tabbar/e1.png",

    "selectedIconPath": "/static/tabbar/e2.png"

    }]

    },


    在app.vue界面的onLaunch调用uni.onTabBarMidButtonTap跳转非密办公界面

    2024-07-04 14:35

  • 2***@qq.com (作者)

    配置MidButton,tabbar的list在配置MidButton就不生效了

    2024-07-04 14:36

  • DCloud_UNI_yuhe

    回复 2***@qq.com: 它这个肯定是跳转到tabbar以外的界面,因此tabbar就不会保留在界面上了

    2024-07-04 15:10

要回复问题请先登录注册