uniApp的tabbar可以自定义,也可以是原生的uniApp原生的tabbar是在pages.json文件中设置的,注意静态文件下的图片路径“tabBar”:{"color":"#7A7E83","selectedColor":"#3cc51f","borderStyle":"black","backgroundColor":"#ffffff","list":[{"pagePath":"pages/index/index","iconPath":"static/images/tabbar2/basics.png","selectedIconPath":"static/images/tabbar2/basics_cur.png","text":"主页"},{"pagePath":"pages/fangke/fangke","iconPath":"static/images/tabbar2/plugin.png","selectedIconPath":"static/images/tabbar2/plugin_cur.png","text":"访客"},{"pagePath":"pages/my/my","iconPath":"static/images/tabbar2/about.png","selectedIconPath":"static/images/tabbar2/about_cur.png","text":"My"}]}自定义tabbar,使用colorUItabbar组件下载源码,解压,复制根目录/colorui文件夹到你的根目录传送门colorUI-uniAPP传送门colorUI原理介绍multiplepagesintoonemainpage,切换主页面显示。这修复了切换时的闪烁问题。main.js全面引入componentimportbasicsfrom'./pages/basics/home.vue'Vue.component('basics',basics)importcomponentsfrom'./pages/component/home.vue'Vue.component('components',components)importpluginfrom'./pages/plugin/home.vue'Vue.component('plugin',plugin)在主页index.vue文件中,
