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

修改导航栏

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