pages.json 4.1 KB
{
	"easycom": {
		// 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175
		"custom": {
			"^u-(.*)": "uview-plus/components/u-$1/u-$1.vue"
		}
	},
	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
		{
			"path": "pages/index/index",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/index/richText",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/index/search",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/index/shopDetaile",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/index/allComment",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/index/bargainPrice",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/class/class",
			"style": {
				"navigationBarTitleText": "",
				"navigationBarBackgroundColor": "#fff"
			}
		},
		{
			"path": "pages/class/classList",
			"style": {
				"navigationBarTitleText": "",
				"navigationBarBackgroundColor": "#fff"
			}
		},
		{
			"path": "pages/pointsMall/pointsMall",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/pointsMall/pointsDetaile",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/shopCar/shopCar",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/shopCar/confirmOrder",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/mine/mine",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/mine/myOrder",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/mine/orderDetail",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/mine/recharge",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/mine/evaluate",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/mine/myAddress",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/mine/newAddress",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/mine/myPoints",
			"style": {
				"navigationStyle": "custom"
			}
		},
		{
			"path": "pages/login/login",
			"style": {
				"navigationStyle": "custom"
			}
		}
	],
	"globalStyle": {
		"navigationBarTextStyle": "black",
		"navigationBarTitleText": "uni-app",
		"navigationBarBackgroundColor": "#F8F8F8",
		"backgroundColor": "#F6F8FA"
	},
	"uniIdRouter": {},
	"tabBar": {
		"color": "#000000",
		"selectedColor": "#FB753C", //tab 上的文字选中时的颜色
		"borderStyle": "white", //tabbar 上边框的颜色,可选值 black/white
		"backgroundColor": "#fff", //tab的背景色
		"list": [
			{
				"pagePath": "pages/index/index", //页面路径,必须在pages中先定义
				"iconPath": "static/tabbarsIc/index.png", //未选中图片路径
				"selectedIconPath": "static/tabbarsIc/indexCheck.png", //选中时的图片路径
				"text": "首页" //tab上按钮文字
			},
			{
				"pagePath": "pages/class/class", //页面路径,必须在pages中先定义
				"iconPath": "static/tabbarsIc/class.png", //未选中图片路径
				"selectedIconPath": "static/tabbarsIc/classCheck.png", //选中时的图片路径
				"text": "分类" //tab上按钮文字
			},
			{
				"pagePath": "pages/pointsMall/pointsMall", //页面路径,必须在pages中先定义
				"iconPath": "static/tabbarsIc/pointsMallIc.png", //未选中图片路径
				"selectedIconPath": "static/tabbarsIc/pointsMallIcCheck.png", //选中时的图片路径
				"text": "积分商城" //tab上按钮文字
			},
			{
				"pagePath": "pages/shopCar/shopCar", //页面路径,必须在pages中先定义
				"iconPath": "static/tabbarsIc/shopCar.png", //未选中图片路径
				"selectedIconPath": "static/tabbarsIc/shopCarCheck.png", //选中时的图片路径
				"text": "购物车" //tab上按钮文字
			},
			{
				"pagePath": "pages/mine/mine",
				"iconPath": "static/tabbarsIc/mine.png",
				"selectedIconPath": "static/tabbarsIc/mineCheck.png",
				"text": "我的"
			}
		]
	}
}