-
Notifications
You must be signed in to change notification settings - Fork 26
/
pages.json
104 lines (100 loc) · 2.45 KB
/
pages.json
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"easycom": { //easycom,按需自动注册组件。原则上可以把所有页面引入组件方法删掉,会自动引入。
"autoscan": true,
"custom": {
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue",
"^uni-(.*)": "@/components/uni-$1/uni-$1.vue",
"^nx-(.*)": "@/components/nx-$1/nx-$1.vue"
}
},
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "首页"
}
},
{
"path": "pages/me/index",
"style": {
"navigationBarTitleText": "我的"
}
}
],
"subPackages": [{
"root": "pages/public",
"pages": [{
"path": "404",
"name": "404",
"style": {
"navigationBarTitleText": "页面不存在"
}
}]
},
{
"root": "pages/login",
"pages": [{
"path": "login",
"aliasPath": "/", //对于h5端你必须在首页加上aliasPath并设置为/
"style": {
"navigationBarTitleText": "登录",
"navigationBarBackgroundColor": "#FFFFFF"
}
},
{
"path": "reg",
"style": {
"navigationBarTitleText": "注册",
"navigationBarBackgroundColor": "#FFFFFF"
}
},
{
"path": "forget",
"style": {
"navigationBarTitleText": "忘记密码",
"navigationBarBackgroundColor": "#FFFFFF"
}
},
{
"path": "agreement",
"style": {
"navigationBarTitleText": "用户协议"
}
}
]
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "通用模板",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"tabBar": {
"borderStyle": "white",
"selectedColor": "#333333",
"backgroundColor": "#FFFFFF",
"color": "#999999",
"list": [{
"pagePath": "pages/index/index",
"iconPath": "static/images/tabbar/tab-home.png",
"selectedIconPath": "static/images/tabbar/tab-home-selected.png",
"text": "首页"
},
{
"pagePath": "pages/me/index",
"iconPath": "static/images/tabbar/tab-mine.png",
"selectedIconPath": "static/images/tabbar/tab-mine-selected.png",
"text": "我的"
}
]
},
"condition": { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
"list": [{
"name": "登录页面", //模式名称
"path": "pages/login/login", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
}]
}
}