Tag:uni-app

  • uniapp and applet set tabBar and show and hide tabBar

    Time:2023-12-19

    (1) Set the tabBar: uni.setTabberItem({}); wx.setTabberItem({}); indexnumberisWhich item of the tabBar, counting from the left, is indexed from 0.textstringnoButton text on tabiconPathstringnoImage PathselectedIconPathstringnoImage path when selectedpagePathstringnoPage absolute pathvisiblebooleannotab Whether to display uni.setTabBarItem({ index: 0, text: ‘text’, iconPath: ‘/path/to/iconPath’, selectedIconPath: ‘/path/to/selectedIconPath’, pagePath: ‘pages/home/home’ }) wx.setTabBarItem({ index: 0, text: ‘text’, iconPath: ‘/path/to/iconPath’, selectedIconPath: ‘/path/to/selectedIconPath’, pagePath: ‘pages/home/home’ }) […]

  • uniapp realize different users show different tabbar (bottom navigation bar)

    Time:2023-12-15

    I. Background Recently in doing a uniapp development of a small program encountered a demand, I hope that different users logged in to show different tabbar page, but uniapp project pages.json is only a list array, and can not be written as a dynamic effect, in order to achieve this demand, it will be customized […]