73 lines
1.6 KiB
JSON
73 lines
1.6 KiB
JSON
{
|
||
"easycom": {
|
||
"autoscan": true,
|
||
// 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175
|
||
"custom": {
|
||
"^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
|
||
"^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
|
||
"^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue"
|
||
}
|
||
},
|
||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||
{
|
||
"path": "pages/index/index",
|
||
"style": {
|
||
"navigationStyle": "custom"
|
||
}
|
||
},
|
||
{
|
||
"path": "pages/news/news",
|
||
"style": {
|
||
"navigationBarTitleText": "新闻"
|
||
}
|
||
},
|
||
{
|
||
"path": "pages/user/user",
|
||
"style": {
|
||
"navigationBarTitleText": "",
|
||
"navigationStyle": "custom",
|
||
"disableScroll": false
|
||
}
|
||
},
|
||
{
|
||
"path": "pages/user/login",
|
||
"style": {
|
||
"navigationBarTitleText": "登录",
|
||
"navigationStyle": "default"
|
||
}
|
||
}
|
||
],
|
||
"globalStyle": {
|
||
"navigationBarTextStyle": "black",
|
||
"navigationBarTitleText": "uni-app",
|
||
"navigationBarBackgroundColor": "#F8F8F8",
|
||
"backgroundColor": "#F7F8FA"
|
||
},
|
||
"uniIdRouter": {},
|
||
"tabBar": {
|
||
"color": "#dcedc1",
|
||
"selectedColor": "#ffd3b6",
|
||
"list": [
|
||
{
|
||
"pagePath": "pages/index/index",
|
||
"text": "首页",
|
||
"iconPath": "static/icon/home.png",
|
||
"selectedIconPath": "static/icon/homeSelect.png"
|
||
},
|
||
{
|
||
"pagePath": "pages/news/news",
|
||
"text": "资讯",
|
||
"iconPath": "static/icon/neq.png",
|
||
"selectedIconPath": "static/icon/newSelecgt.png"
|
||
},
|
||
{
|
||
"pagePath": "pages/user/user",
|
||
"text": "我的",
|
||
"iconPath": "static/icon/user.png",
|
||
"selectedIconPath": "static/icon/user1.png"
|
||
}
|
||
]
|
||
}
|
||
|
||
}
|