-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpages.json
More file actions
56 lines (54 loc) · 1.57 KB
/
Copy pathpages.json
File metadata and controls
56 lines (54 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
//配置路由信息
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "Dantin新闻"
}
}
,{
"path" : "pages/user/user",
"style" :
{
"navigationBarTitleText": "个人中心",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/detail/detail",
"style" :
{
"navigationBarTitleText": "详情页",
"enablePullDownRefresh": false
}
}
],
//配置全局的样式
"globalStyle": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "Dantin新闻",
"navigationBarBackgroundColor": "#31C27C",
"backgroundColor": "#F8F8F8"
},
"uniIdRouter": {},
//配置下面的导航栏
"tabBar": {
"color": "#666",
"selectedColor": "#31C27C",
"list": [
{
"text": "首页", //标题
"pagePath": "pages/index/index", //路由的路径
"iconPath": "static/images/index.png", //不激活的图标
"selectedIconPath": "static/images/index-h.png" //选中时的图标
},
{
"text":"个人中心",
"pagePath": "pages/user/user",
"iconPath": "static/images/user.png",
"selectedIconPath": "static/images/user-h.png"
}
]
}
}