├── static ├── img │ ├── 1.jpg │ ├── 2.png │ ├── home.png │ ├── logo.png │ ├── user.png │ ├── homeHL.png │ ├── userHL.png │ ├── template.png │ └── templateHL.png └── font │ └── iconfont.ttf ├── main.js ├── README.md ├── pages └── tabbar │ ├── tabbar2.vue │ ├── tabbar3.vue │ ├── tabbar4.vue │ ├── tabbar1.vue │ └── tabbar0.vue ├── LICENSE ├── pages.json ├── App.vue └── manifest.json /static/img/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaotimo/uni-app-tabbar/HEAD/static/img/1.jpg -------------------------------------------------------------------------------- /static/img/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaotimo/uni-app-tabbar/HEAD/static/img/2.png -------------------------------------------------------------------------------- /static/img/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaotimo/uni-app-tabbar/HEAD/static/img/home.png -------------------------------------------------------------------------------- /static/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaotimo/uni-app-tabbar/HEAD/static/img/logo.png -------------------------------------------------------------------------------- /static/img/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaotimo/uni-app-tabbar/HEAD/static/img/user.png -------------------------------------------------------------------------------- /static/img/homeHL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaotimo/uni-app-tabbar/HEAD/static/img/homeHL.png -------------------------------------------------------------------------------- /static/img/userHL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaotimo/uni-app-tabbar/HEAD/static/img/userHL.png -------------------------------------------------------------------------------- /static/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaotimo/uni-app-tabbar/HEAD/static/font/iconfont.ttf -------------------------------------------------------------------------------- /static/img/template.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaotimo/uni-app-tabbar/HEAD/static/img/template.png -------------------------------------------------------------------------------- /static/img/templateHL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaotimo/uni-app-tabbar/HEAD/static/img/templateHL.png -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App' 3 | 4 | Vue.config.productionTip = false 5 | 6 | App.mpType = 'app' 7 | 8 | const app = new Vue({ 9 | ...App 10 | }) 11 | app.$mount() 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # uni-app-tabbar 2 | uni-app底部凸起实现(不支持小程序),请使用真机调试 3 | ok 4 | app效果图如下: 5 | 6 | image 7 | 8 | 安装包如下: 9 | 10 | image -------------------------------------------------------------------------------- /pages/tabbar/tabbar2.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 22 | 23 | 26 | -------------------------------------------------------------------------------- /pages/tabbar/tabbar3.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 22 | 23 | 26 | -------------------------------------------------------------------------------- /pages/tabbar/tabbar4.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 22 | 23 | 26 | -------------------------------------------------------------------------------- /pages/tabbar/tabbar1.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 21 | 22 | 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 xiaotimo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /pages/tabbar/tabbar0.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 74 | 75 | 78 | -------------------------------------------------------------------------------- /pages.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ //pages数组中第一项表示应用启动页, 3 | { 4 | "path": "pages/tabbar/tabbar0", 5 | "style": { 6 | "navigationBarTitleText": "第0个页面" 7 | } 8 | }, { 9 | "path": "pages/tabbar/tabbar1", 10 | "style": { 11 | "navigationBarTitleText": "第1个页面" 12 | } 13 | }, { 14 | "path": "pages/tabbar/tabbar2", 15 | "style": { 16 | "navigationBarTitleText": "第2个页面" 17 | } 18 | }, { 19 | "path": "pages/tabbar/tabbar3", 20 | "style": { 21 | "navigationBarTitleText": "第3个页面" 22 | } 23 | }, { 24 | "path": "pages/tabbar/tabbar4", 25 | "style": { 26 | "navigationBarTitleText": "第4个页面" 27 | } 28 | } 29 | ], 30 | "tabBar": { 31 | "color": "#7a7e83", 32 | "selectedColor": "#0faeff", 33 | "backgroundColor": "#ffffff", 34 | "list": [{ 35 | "pagePath": "pages/tabbar/tabbar0", 36 | "text": "第0", 37 | "iconPath": "static/img/home.png", 38 | "selectedIconPath": "static/img/homeHL.png" 39 | }, { 40 | "pagePath": "pages/tabbar/tabbar1", 41 | "text": "第1", 42 | "iconPath": "static/img/user.png", 43 | "selectedIconPath": "static/img/userHL.png" 44 | }, { 45 | "pagePath": "pages/tabbar/tabbar2", 46 | "text": "1", 47 | }, { 48 | "pagePath": "pages/tabbar/tabbar3", 49 | "text": "第3", 50 | "iconPath": "static/img/template.png", 51 | "selectedIconPath": "static/img/templateHL.png" 52 | }, 53 | { 54 | "pagePath": "pages/tabbar/tabbar4", 55 | "text": "第4", 56 | "iconPath": "static/img/home.png", 57 | "selectedIconPath": "static/img/homeHL.png" 58 | }] 59 | }, 60 | "globalStyle": { 61 | "navigationBarTextStyle": "white", 62 | "navigationBarBackgroundColor": "#0faeff", 63 | "backgroundColor": "#fbf9fe" 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /App.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | 107 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "tabdemo", 3 | "appid" : "__UNI__D1F131C", 4 | "description" : "tabbar", 5 | "versionName" : "1.0.0", 6 | "versionCode" : "100", 7 | "app-plus" : { 8 | /* 5+App特有相关 */ 9 | "modules" : {}, 10 | /* 模块配置 */ 11 | "distribute" : { 12 | /* 应用发布信息 */ 13 | "android" : { 14 | /* android打包配置 */ 15 | "permissions" : [ 16 | "", 17 | "", 18 | "", 19 | "", 20 | "", 21 | "", 22 | "", 23 | "", 24 | "", 25 | "", 26 | "", 27 | "", 28 | "", 29 | "", 30 | "", 31 | "", 32 | "", 33 | "", 34 | "", 35 | "", 36 | "", 37 | "" 38 | ] 39 | }, 40 | "ios" : {}, 41 | /* ios打包配置 */ 42 | "sdkConfigs" : {} 43 | }, 44 | "splashscreen" : { 45 | "delay" : 1000, 46 | "waiting" : true 47 | } 48 | }, 49 | /* SDK配置 */ 50 | "quickapp" : {}, 51 | /* 快应用特有相关 */ 52 | "mp-weixin" : { 53 | /* 小程序特有相关 */ 54 | "appid" : "" 55 | } 56 | } 57 | --------------------------------------------------------------------------------