diff --git a/pages.json b/pages.json index 0a79e7737c54144eeadbb88543f90182546c44cc..47719ec36dd95dfb3c60679b9e8958a9fe34a46d 100644 --- a/pages.json +++ b/pages.json @@ -895,7 +895,16 @@ "navigationBarTitleText": "自定义导航栏", "navigationStyle": "custom" } - + }, { + "path": "pages/template/custom-tab-bar/custom-tab-bar", + "style": { + "navigationBarTitleText": "自定义TabBar" + } + }, { + "path": "pages/template/custom-tab-bar2/custom-tab-bar2", + "style": { + "navigationBarTitleText": "自定义TabBar2" + } } ], "globalStyle": { @@ -947,4 +956,4 @@ "query": "" //启动参数,在页面的onLoad函数里面得到 }] } -} +} \ No newline at end of file diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue index 6b080ff528b45cf39651674a89f88b561d8b0236..6f27a4a1600ac59c4e0798ee7f968513cb9d4b88 100644 --- a/pages/tabBar/template.uvue +++ b/pages/tabBar/template.uvue @@ -166,6 +166,22 @@ export default { name: '自定义导航栏', open: false, pages: [] as Page[], + }, + { + id: 'custom-tab-bar', + url: 'custom-tab-bar', + name: '自定义TabBar', + open: false, + pages: [ + { + name: '滚动切换图标', + url:'custom-tab-bar' + }, + { + name: '凹口', + url:'custom-tab-bar2' + }, + ] as Page[], }, { id: 'calendar', diff --git a/pages/template/custom-tab-bar/custom-tab-bar-tab1.uvue b/pages/template/custom-tab-bar/custom-tab-bar-tab1.uvue new file mode 100644 index 0000000000000000000000000000000000000000..c34e5afde54d4d8be2d1090e59fcf0eb7b91b241 --- /dev/null +++ b/pages/template/custom-tab-bar/custom-tab-bar-tab1.uvue @@ -0,0 +1,60 @@ + + + + + \ No newline at end of file diff --git a/pages/template/custom-tab-bar/custom-tab-bar-tab2.uvue b/pages/template/custom-tab-bar/custom-tab-bar-tab2.uvue new file mode 100644 index 0000000000000000000000000000000000000000..063e1fbabf8fde88d5cb3c1a30fb1eed03989441 --- /dev/null +++ b/pages/template/custom-tab-bar/custom-tab-bar-tab2.uvue @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/pages/template/custom-tab-bar/custom-tab-bar.uvue b/pages/template/custom-tab-bar/custom-tab-bar.uvue new file mode 100644 index 0000000000000000000000000000000000000000..5d6cf8ec329b2d1fd8306f91a7ac5d519214db25 --- /dev/null +++ b/pages/template/custom-tab-bar/custom-tab-bar.uvue @@ -0,0 +1,150 @@ + + + + + \ No newline at end of file diff --git a/pages/template/custom-tab-bar2/custom-tab-bar2-tab1.uvue b/pages/template/custom-tab-bar2/custom-tab-bar2-tab1.uvue new file mode 100644 index 0000000000000000000000000000000000000000..c34e5afde54d4d8be2d1090e59fcf0eb7b91b241 --- /dev/null +++ b/pages/template/custom-tab-bar2/custom-tab-bar2-tab1.uvue @@ -0,0 +1,60 @@ + + + + + \ No newline at end of file diff --git a/pages/template/custom-tab-bar2/custom-tab-bar2-tab2.uvue b/pages/template/custom-tab-bar2/custom-tab-bar2-tab2.uvue new file mode 100644 index 0000000000000000000000000000000000000000..063e1fbabf8fde88d5cb3c1a30fb1eed03989441 --- /dev/null +++ b/pages/template/custom-tab-bar2/custom-tab-bar2-tab2.uvue @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/pages/template/custom-tab-bar2/custom-tab-bar2.uvue b/pages/template/custom-tab-bar2/custom-tab-bar2.uvue new file mode 100644 index 0000000000000000000000000000000000000000..b46f161e0534f50959ec876ed9b8578960443eca --- /dev/null +++ b/pages/template/custom-tab-bar2/custom-tab-bar2.uvue @@ -0,0 +1,208 @@ + + + + + \ No newline at end of file diff --git a/static/fonts/uni-icon.ttf b/static/fonts/uni-icon.ttf new file mode 100644 index 0000000000000000000000000000000000000000..835f33bc9411461b8b9046b3fec742e921d6ce3a Binary files /dev/null and b/static/fonts/uni-icon.ttf differ