提交 3ab849f5 编写于 作者: 赵十四's avatar 赵十四

修改导航栏

上级 11c14aaf
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
export default { export default {
onLaunch: function() { onLaunch: function() {
console.log('App Launch') console.log('App Launch')
uni.hideTabBar();
}, },
onShow: function() { onShow: function() {
console.log('App Show') console.log('App Show')
......
...@@ -4,17 +4,17 @@ ...@@ -4,17 +4,17 @@
"^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue" "^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
}, },
"pages": [ "pages": [
// { {
// "path": "pages/login/login", "path": "pages/login/login",
// "style": { "style": {
// "navigationStyle": "custom" "navigationStyle": "custom"
// } }
// }, { }, {
// "path": "pages/login/register", "path": "pages/login/register",
// "style": { "style": {
// "navigationStyle": "custom" "navigationStyle": "custom"
// } }
// }, },
{ {
"path": "pages/sport/main", "path": "pages/sport/main",
"style": { "style": {
...@@ -53,20 +53,40 @@ ...@@ -53,20 +53,40 @@
"backgroundColor": "#F8F8F8" "backgroundColor": "#F8F8F8"
}, },
"tabBar": { "tabBar": {
"selectedColor":"#F1992D",
"list": [{ "list": [{
"pagePath": "pages/sport/main"
"pagePath": "pages/sport/main",
"text": "运动",
"iconPath": "static/tabbar/运动.png",
"selectedIconPath": "static/tabbar/运动2.png"
}, },
{ {
"pagePath": "pages/discover/main" "pagePath": "pages/discover/main",
"text": "发现",
"iconPath": "static/tabbar/发现.png",
"selectedIconPath": "static/tabbar/发现2.png"
}, },
{ {
"pagePath": "pages/post/post" "pagePath": "pages/post/post",
"text": "高校圈",
"iconPath": "static/tabbar/圈子.png",
"selectedIconPath": "static/tabbar/圈子2.png"
}, },
{ {
"pagePath": "pages/team/main" "pagePath": "pages/team/main",
"text": "小队",
"iconPath": "static/tabbar/队伍.png",
"selectedIconPath": "static/tabbar/队伍2.png"
}, },
{ {
"pagePath": "pages/my/main" "pagePath": "pages/my/main",
"text": "我的",
"iconPath": "static/tabbar/我的.png",
"selectedIconPath": "static/tabbar/我的2.png"
} }
] ]
......
<template> <template>
<view> <view>
<text>发现</text> <text>发现</text>
<tabbar :current="1" /> <!-- <tabbar :current="1" /> -->
</view> </view>
</template> </template>
<script> <script>
export default { export default {
onLoad() { // onLoad() {
uni.hideTabBar(); // uni.hideTabBar();
}, // },
} }
</script> </script>
......
<template> <template>
<view> <view>
<text>我的</text> <text>我的</text>
<tabbar :current="4" />
</view> </view>
</template> </template>
<script> <script>
export default { export default {
onLoad() {
uni.hideTabBar();
},
} }
</script> </script>
......
<template> <template>
<view> <view>
<tabbar :current="2" />
<u-tabs :list="list" lineWidth="30" lineColor="#F1992D" :activeStyle="{ <u-tabs :list="list" lineWidth="30" lineColor="#F1992D" :activeStyle="{
color: '#F1992D', color: '#F1992D',
...@@ -29,9 +28,9 @@ ...@@ -29,9 +28,9 @@
<script> <script>
export default { export default {
onLoad() { // onLoad() {
uni.hideTabBar(); // uni.hideTabBar();
}, // },
data() { data() {
return { return {
......
<template> <template>
<view> <view>
<text>运动</text> <text>运动</text>
<tabbar :current="0" />
</view> </view>
</template> </template>
<script> <script>
export default { export default {
onLoad() { // onLoad() {
uni.hideTabBar(); // uni.hideTabBar();
}, // },
} }
</script> </script>
......
<template> <template>
<view> <view>
<text>小队</text> <text>小队</text>
<tabbar :current="3" />
</view> </view>
</template> </template>
<script> <script>
export default { export default {
onLoad() { // onLoad() {
uni.hideTabBar(); // uni.hideTabBar();
}, // },
} }
</script> </script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册