diff --git a/App.vue b/App.vue index 1875ee6..0bbea7f 100644 --- a/App.vue +++ b/App.vue @@ -2,7 +2,10 @@ export default { onLaunch: function() { console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!') - console.log('App Launch') + console.log('App Launch') + + // 程序加载 隐藏默认的tabBar + uni.hideTabBar(); }, onShow: function() { console.log('App Show') diff --git a/components/customTabBar/index.js b/components/customTabBar/index.js new file mode 100644 index 0000000..e69de29 diff --git a/components/customTabBar/index.json b/components/customTabBar/index.json new file mode 100644 index 0000000..e69de29 diff --git a/components/customTabBar/index.vue b/components/customTabBar/index.vue new file mode 100644 index 0000000..0854ebc --- /dev/null +++ b/components/customTabBar/index.vue @@ -0,0 +1,148 @@ + + + + diff --git a/components/customTabBar/index.wxml b/components/customTabBar/index.wxml new file mode 100644 index 0000000..9b0c013 --- /dev/null +++ b/components/customTabBar/index.wxml @@ -0,0 +1,86 @@ + + + + + \ No newline at end of file diff --git a/components/customTabBar/index.wxss b/components/customTabBar/index.wxss new file mode 100644 index 0000000..e69de29 diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..48e341a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3 @@ +{ + "lockfileVersion": 1 +} diff --git a/pages.json b/pages.json index dcf5967..70866f8 100644 --- a/pages.json +++ b/pages.json @@ -57,7 +57,8 @@ } ] }, - "tabBar":{ + "tabBar":{ + "custom":true, "color": "#7A7E83", "selectedColor": "#3cc51f", "borderStyle": "black", @@ -74,5 +75,5 @@ "text":"我的" } ] - } + } }