uniapp底部栏
首先先在pages.josn中把需要tabBar设置好:只需要将页面路径放进去就可以! 可以看官网:https://uniapp.dcloud.io/collocation/pages.html#tabbar
"tabBar":{
"color":"#ADADAD",
"selectedColor":"#FEE42A",
"backgroundColor":"#FFFFFF",
"borderStyle":"black",
"list":[
{
"pagePath":"***/***/***",
"text":"**",
"iconPath":"static/tabbar/index.png",
"selectedIconPath":"static/tabbar/indexed.png"
},
{
"pagePath":"pages/news/news",
"text":"",
"iconPath":"static/tabbar/news.png",
"selectedIconPath":"static/tabbar/newsed.png"
},
{
"pagePath":"pages/paper/paper",
"text":"",
"iconPath":"static/tabbar/paper.png",
"selectedIconPath":"static/tabbar/papered.png"
},
{
"pagePath":"pages/home/home",
"text":"",
"iconPath":"static/tabbar/home.png",
"selectedIconPath":"static/tabbar/homeed.png"
}
]
}
禁止ios滑动
pages.json里面加一个属性就可以了 代码如下:
"app-plus":{
"popGesture":"none",
"bounce":"none"
}
|