pages.json 3.3 KB
Newer Older
DCloud_JSON's avatar
DCloud_JSON 已提交
1 2 3
{
	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
		{
JiaRongPing's avatar
JiaRongPing 已提交
4
			"path": "pages/index/index",
DCloud_JSON's avatar
DCloud_JSON 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
			"style": {
				"navigationBarTitleText": "uni-app"
			}
		},
		{
			"path": "uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate",
			"style": {
				"navigationBarTitleText": "注销账号"
			}
		},
		{
			"path": "uni_modules/uni-id-pages/pages/userinfo/userinfo",
			"style": {
				"navigationBarTitleText": "个人资料"
			}
		},
		{
			"path": "uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile",
			"style": {
				"navigationBarTitleText": "绑定手机号码"
			}
DCloud_JSON's avatar
1.1.0  
DCloud_JSON 已提交
26 27
		},
		// #ifndef MP-WEIXIN
DCloud_JSON's avatar
DCloud_JSON 已提交
28 29 30 31 32
		{
			"path": "uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage",
			"style": {
				"navigationBarTitleText": ""
			}
DCloud_JSON's avatar
1.1.0  
DCloud_JSON 已提交
33 34
		},
		// #endif
DCloud_JSON's avatar
DCloud_JSON 已提交
35 36 37 38 39 40 41 42 43
		{
			"path": "uni_modules/uni-id-pages/pages/login/login-withoutpwd",
			"style": {
				"navigationBarTitleText": ""
			}
		},
		{
			"path": "uni_modules/uni-id-pages/pages/login/login-withpwd",
			"style": {
JiaRongPing's avatar
JiaRongPing 已提交
44
				"navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
45 46 47 48 49 50 51 52 53 54 55 56 57
			}
		},
		{
			"path": "uni_modules/uni-id-pages/pages/login/login-smscode",
			"style": {
				"navigationBarTitleText": "手机验证码登录"
			}
		},
		{
			"path": "uni_modules/uni-id-pages/pages/register/register",
			"style": {
				"navigationBarTitleText": "注册"
			}
DCloud_JSON's avatar
1.1.0  
DCloud_JSON 已提交
58 59
		},
		// #ifndef MP-WEIXIN
60 61 62 63 64 65
		{
			"path": "uni_modules/uni-id-pages/pages/register/register-admin",
			"style": {
				"navigationBarTitleText": "注册管理员账号",
				"enablePullDownRefresh": false
			}
DCloud_JSON's avatar
1.1.0  
DCloud_JSON 已提交
66 67
		},
		// #endif
JiaRongPing's avatar
JiaRongPing 已提交
68 69 70 71 72 73
		{
			"path": "uni_modules/uni-id-pages/pages/register/register-by-email",
			"style": {
				"navigationBarTitleText": "邮箱验证码注册"
			}
		},
DCloud_JSON's avatar
DCloud_JSON 已提交
74 75 76 77 78
		{
			"path": "uni_modules/uni-id-pages/pages/retrieve/retrieve",
			"style": {
				"navigationBarTitleText": "重置密码"
			}
JiaRongPing's avatar
JiaRongPing 已提交
79 80 81 82 83 84 85 86
		},
		{
			"path": "uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email",
			"style": {
				"navigationBarTitleText": "通过邮箱重置密码"
			}
		},
		{
DCloud_JSON's avatar
DCloud_JSON 已提交
87 88 89 90 91
			"path": "uni_modules/uni-id-pages/pages/common/webview/webview",
			"style": {
				"navigationBarTitleText": "",
				"enablePullDownRefresh": false
			}
JiaRongPing's avatar
JiaRongPing 已提交
92 93 94 95 96 97
		}, {
			"path": "uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",
			"style": {
				"navigationBarTitleText": "修改密码",
				"enablePullDownRefresh": false
			}
98 99 100 101 102 103
		},{
			"path": "uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd",
			"style": {
				"navigationBarTitleText": "设置密码",
				"enablePullDownRefresh": false
			}
DCloud_JSON's avatar
DCloud_JSON 已提交
104
		}
JiaRongPing's avatar
JiaRongPing 已提交
105
	],
DCloud_JSON's avatar
DCloud_JSON 已提交
106 107 108 109
	"globalStyle": {
		"navigationBarTextStyle": "black",
		"navigationBarTitleText": "uni-app",
		"navigationBarBackgroundColor": "#FFF",
110
		"backgroundColor": "#F8F8F8"
JiaRongPing's avatar
JiaRongPing 已提交
111
		/* #ifdef H5 */
112
		,"navigationStyle": "custom"
JiaRongPing's avatar
JiaRongPing 已提交
113 114 115
		/* #endif */
	},
	"condition": { //模式配置,仅开发期间生效
DCloud_JSON's avatar
DCloud_JSON 已提交
116
		"current": 0, //当前激活的模式(list 的索引项)
JiaRongPing's avatar
JiaRongPing 已提交
117 118 119 120 121
		"list": [{
			"name": "", //模式名称
			"path": "", //启动页面,必选
			"query": "" //启动参数,在页面的onLoad函数里面得到
		}]
122 123
	},
	"uniIdRouter": {
DCloud_JSON's avatar
DCloud_JSON 已提交
124
		"loginPage": "uni_modules/uni-id-pages/pages/login/login-withoutpwd",
DCloud_JSON's avatar
DCloud_JSON 已提交
125 126 127 128 129
		"needLogin": [
			"uni_modules/uni-id-pages/pages/userinfo/userinfo"
		],
		"resToLogin": true
	}
130
}