pages.json 3.1 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
			"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": "绑定手机号码"
			}
		},
		{
			"path": "uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage",
			"style": {
				"navigationBarTitleText": ""
			}
		},
		{
			"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 已提交
42
				"navigationBarTitleText": ""
DCloud_JSON's avatar
DCloud_JSON 已提交
43 44 45 46 47 48 49 50 51 52 53 54 55 56
			}
		},
		{
			"path": "uni_modules/uni-id-pages/pages/login/login-smscode",
			"style": {
				"navigationBarTitleText": "手机验证码登录"
			}
		},
		{
			"path": "uni_modules/uni-id-pages/pages/register/register",
			"style": {
				"navigationBarTitleText": "注册"
			}
		},
57 58 59 60 61 62 63
		{
			"path": "uni_modules/uni-id-pages/pages/register/register-admin",
			"style": {
				"navigationBarTitleText": "注册管理员账号",
				"enablePullDownRefresh": false
			}
		},
JiaRongPing's avatar
JiaRongPing 已提交
64 65 66 67 68 69
		{
			"path": "uni_modules/uni-id-pages/pages/register/register-by-email",
			"style": {
				"navigationBarTitleText": "邮箱验证码注册"
			}
		},
DCloud_JSON's avatar
DCloud_JSON 已提交
70 71 72 73 74
		{
			"path": "uni_modules/uni-id-pages/pages/retrieve/retrieve",
			"style": {
				"navigationBarTitleText": "重置密码"
			}
JiaRongPing's avatar
JiaRongPing 已提交
75 76 77 78 79 80 81 82
		},
		{
			"path": "uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email",
			"style": {
				"navigationBarTitleText": "通过邮箱重置密码"
			}
		},
		{
DCloud_JSON's avatar
DCloud_JSON 已提交
83 84 85 86 87
			"path": "uni_modules/uni-id-pages/pages/common/webview/webview",
			"style": {
				"navigationBarTitleText": "",
				"enablePullDownRefresh": false
			}
JiaRongPing's avatar
JiaRongPing 已提交
88 89 90 91 92 93
		}, {
			"path": "uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",
			"style": {
				"navigationBarTitleText": "修改密码",
				"enablePullDownRefresh": false
			}
DCloud_JSON's avatar
DCloud_JSON 已提交
94
		}
JiaRongPing's avatar
JiaRongPing 已提交
95
	],
DCloud_JSON's avatar
DCloud_JSON 已提交
96 97 98 99
	"globalStyle": {
		"navigationBarTextStyle": "black",
		"navigationBarTitleText": "uni-app",
		"navigationBarBackgroundColor": "#FFF",
100
		"backgroundColor": "#F8F8F8"
JiaRongPing's avatar
JiaRongPing 已提交
101
		/* #ifdef H5 */
102
		,"navigationStyle": "custom"
JiaRongPing's avatar
JiaRongPing 已提交
103 104 105
		/* #endif */
	},
	"condition": { //模式配置,仅开发期间生效
DCloud_JSON's avatar
DCloud_JSON 已提交
106
		"current": 0, //当前激活的模式(list 的索引项)
JiaRongPing's avatar
JiaRongPing 已提交
107 108 109 110 111
		"list": [{
			"name": "", //模式名称
			"path": "", //启动页面,必选
			"query": "" //启动参数,在页面的onLoad函数里面得到
		}]
112 113
	},
	"uniIdRouter": {
DCloud_JSON's avatar
DCloud_JSON 已提交
114
		"loginPage": "uni_modules/uni-id-pages/pages/login/login-withoutpwd",
DCloud_JSON's avatar
DCloud_JSON 已提交
115 116 117 118 119
		"needLogin": [
			"uni_modules/uni-id-pages/pages/userinfo/userinfo"
		],
		"resToLogin": true
	}
120
}