pages
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "uni-app",
"enablePullDownRefresh": false //enablePullDownRefresh 是否开启下拉刷新
// "onReachBottomDistance": 50 页面上拉触底事件触发时距页面底部距离,单位为px
}
},
{
"path" : "pages/COMMUNITY/COMMUNITY",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/ADD/ADD",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/SEARCH/SEARCH",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/MY/MY",
"style" :
{
"navigationBarTitleText" : ""
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",//导航栏背景颜色
"backgroundColor": "#F8F8F8",//tab颜色
"navigationStyle": "default"//navigationStyle导航栏样式,仅支持 default/customm
//开启 custom 后,所有窗口均无导航栏,如使用自定义导航栏 需要设置custom
},
"uniIdRouter": {},
"tabBar": {
"color": "#ffffff",//文字颜色
"selectedColor": "#000000",//被选中后的颜色
"backgroundColor": "#ffffff",//背景颜色
"borderStyle": "white",//tab上边框颜色只有black和white
"position": "bottom",//位置
"list": [
{
"pagePath": "pages/index/index",//页面路径
"iconPath": "static/icon/标签改.png",//icon路径(最好小于或等于80*80)
"selectedIconPath": "static/icon/标签.png",//选中后的icon路径,icon可以去阿里矢量库找
"text": "首页"//按钮文字
},
{
"pagePath": "pages/COMMUNITY/COMMUNITY",
"iconPath": "static/icon/安全改.png",
"selectedIconPath": "static/icon/安全.png",
"text": "社区"
},
{
"pagePath": "pages/ADD/ADD",
"iconPath": "static/icon/加.png",
"selectedIconPath": "static/icon/加.png"
},
{
"pagePath": "pages/SEARCH/SEARCH",
"iconPath": "static/icon/标签改.png",
"selectedIconPath": "static/icon/标签.png",
"text": "搜索"
},
{
"pagePath": "pages/MY/MY",
"iconPath": "static/icon/定位改.png",
"selectedIconPath": "static/icon/定位.png",
"text": "我的"
}
]
}
}
配置好运行就行,如果遇到微信登录不上,扫码时网络请求失败问题,可以连接自己的热点就解决了