-
Notifications
You must be signed in to change notification settings - Fork 219
/
pages.json
147 lines (145 loc) · 3.64 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"condition": { //模式配置,仅开发期间生效
"current": 2, //当前激活的模式(list 的索引项)
"list": [{
"name": "Mask", //模式名称
"path": "pages/mask/add-mask", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},
{
"name": "Slogan", //模式名称
"path": "pages/slogan/add-slogan", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},
{
"name": "SaveDone", //模式名称
"path": "pages/mask/save-done", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},
{
"name": "bg", //模式名称
"path": "page-chat-bg/pages/index/index", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
}
]
},
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
// "navigationBarBackgroundColor": "#C12928",
"disableScroll": false,
"navigationStyle": "custom"
}
},
{
"path": "pages/mask/add-mask",
"style": {
// "navigationBarBackgroundColor": "#C12928",
"disableScroll": true,
"navigationStyle": "custom"
}
},
{
"path": "pages/mask/save-done",
"style": {
"disableScroll": true,
"navigationBarTitleText": " 保存成功"
}
},
{
"path": "pages/slogan/add-slogan",
"style": {
// "navigationBarBackgroundColor": "#C12928",
"disableScroll": true,
"navigationStyle": "custom"
}
},
{
"path": "pages/about/about",
"style": {
"disableScroll": true,
"navigationStyle": "custom"
}
},
{
"path": "pages/crop/crop",
"style": {
"disableScroll": true,
"navigationStyle": "custom"
}
},
{
"path": "pages/text/add-text",
"style": {
"disableScroll": true,
"navigationBarTitleText": "头像加字"
// "navigationStyle": "custom"
}
}
],
"subPackages": [{
"root": "page-chat-bg",
"pages": [{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "微信聊天背景"
},
"name": "chat-bg"
},
{
"path": "pages/download/download",
"style": {
"navigationBarTitleText": "下载",
"disableScroll": true
}
}
]
}],
"preloadRule": {
"page-chat-bg/pages/index/index": {
"network": "all",
"packages": ["__APP__"]
},
"pages/index/index": {
"network": "all",
"packages": ["page-chat-bg"]
}
},
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "戴口罩,促防疫",
"navigationBarBackgroundColor": "#FFF",
"backgroundColor": "#C12928"
},
"tabBar": {
"selectedColor": "#C12928",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [{
"pagePath": "pages/index/index",
"iconPath": "static/image/tabbar/home-off.png",
"selectedIconPath": "static/image/tabbar/home-on.png",
"text": "首页"
},
{
"pagePath": "pages/mask/add-mask",
"iconPath": "static/image/tabbar/mask-off.png",
"selectedIconPath": "static/image/tabbar/mask-on.png",
"text": "戴口罩"
},
{
"pagePath": "pages/slogan/add-slogan",
"iconPath": "static/image/tabbar/fight-off.png",
"selectedIconPath": "static/image/tabbar/fight-on.png",
"text": "加口号"
},
{
"pagePath": "pages/about/about",
"iconPath": "static/image/tabbar/发现-off.png",
"selectedIconPath": "static/image/tabbar/发现-on.png",
"text": "更多好玩"
}
]
}
}