uniapp小程序分包

1. 目录结构

uniapp小程序分包_第1张图片

 2. 完整的分包代码

{
	// 如果您是通过uni_modules形式引入uView,可以忽略此配置
	"easycom": {
		"^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
	},
	"pages": [{
			"path": "pages/login",
			"style": {
				"navigationBarTitleText": "登录"
			}
		},
		{
			"path": "pages/index",
			"style": {
				"navigationBarTitleText": "若依移动端框架",
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/work",
			"style": {
				"navigationBarTitleText": "工作台"
			}
		},
		{
			"path": "pages/mine",
			"style": {
				"navigationBarTitleText": "我的"
			}
		}
	],
	"subPackages": [{
			"root": "pages/work",
			"pages": [{
				"path": "test",
				"style": {
					"navigationBarTitleText": "",
					"enablePullDownRefresh": false
				}
			}]
		},
		{
			"root": "pages/common",
			"pages": [{
					"path": "webview/index",
					"style": {
						"navigationBarTitleText": "浏览网页"
					}
				},
				{
					"path": "textview/index",
					"style": {
						"navigationBarTitleText": "浏览文本"
					}
				}
			]
		},
		{
			"root": "pages/mine",
			"pages": [{
					"path": "about/index",
					"style": {
						"navigationBarTitleText": "关于我们"
					}
				},
				{
					"path": "avatar/index",
					"style": {
						"navigationBarTitleText": "修改头像"
					}
				},
				{
					"path": "info/index",
					"style": {
						"navigationBarTitleText": "个人信息"
					}
				}, {
					"path": "info/edit",
					"style": {
						"navigationBarTitleText": "编辑资料"
					}
				}, {
					"path": "pwd/index",
					"style": {
						"navigationBarTitleText": "修改密码"
					}
				}, {
					"path": "setting/index",
					"style": {
						"navigationBarTitleText": "应用设置"
					}
				}, {
					"path": "help/index",
					"style": {
						"navigationBarTitleText": "常见问题"
					}
				}
			]
		}
	],
	"tabBar": {
		"color": "#000000",
		"selectedColor": "#000000",
		"borderStyle": "black",
		"backgroundColor": "#ffffff",
		"list": [{
			"pagePath": "pages/index",
			"iconPath": "static/images/tabbar/home.png",
			"selectedIconPath": "static/images/tabbar/home_.png",
			"text": "首页"
		}, {
			"pagePath": "pages/work",
			"iconPath": "static/images/tabbar/work.png",
			"selectedIconPath": "static/images/tabbar/work_.png",
			"text": "工作台"
		}, {
			"pagePath": "pages/mine",
			"iconPath": "static/images/tabbar/mine.png",
			"selectedIconPath": "static/images/tabbar/mine_.png",
			"text": "我的"
		}]
	},
	"globalStyle": {
		"navigationBarTextStyle": "black",
		"navigationBarTitleText": "RuoYi",
		"navigationBarBackgroundColor": "#FFFFFF"
	}
}

你可能感兴趣的:(uni-app,小程序,javascript)