【uniapp公衆號分銷商城從0到1】路由配置(03)

pages.json

路由配置

{
	"pages": [ //pages數組中第一項表示應用啓動頁,參考:https://uniapp.dcloud.io/collocation/pages
		{
			"path": "pages/index/index",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "深鼎商城",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/coupons/coupons",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "優惠券",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/kefu/kefu",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "客服",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/share/share",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "深鼎商城",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/login/login",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "登陸",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		
		{
			"path": "pages/my/withdrawal",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "提現",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/my/bepartner",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "申請合夥人",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/my/partenerSuess",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "合夥人付款成功",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/classification/classification",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "分類",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		
		{
			"path": "pages/orders/submitOrder",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "提交訂單",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/orders/editAddress",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "新增地址",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/orders/success",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "支付成功",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/orders/myOrder",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "我的訂單",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/orders/orderDetail",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "訂單詳情",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/orders/adress",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "地址",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/index/searchRest",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "搜索結果",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/index/search",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "搜索",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/index/productDetail",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "商品詳情",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		},
		{
			"path": "pages/my/my",
			"style": {
				"navigationBarBackgroundColor": "#e41f19",
				"backgroundColorTop": "#e41f19",
				"backgroundColorBottom": "#F7F7F7",
				"navigationBarTitleText": "我的",
				"enablePullDownRefresh": true,
				"onReachBottomDistance": 50
			}
		}

	],
	"permission": {
		"scope.userLocation": {
			"desc": "你的位置信息將用於獲取當前定位信息"
		}
	},
	"globalStyle": {
		"navigationBarTitleText": "",
		"navigationBarBackgroundColor": "#F8F8F8",
		"backgroundColor": "#F8F8F8",
		"navigationStyle":"custom"
	},
	"tabBar": {
		"color": "#bfbfbf",
		"selectedColor": "#e41f19",
		"borderStyle": "black",
		"backgroundColor": "#ffffff",
		"list": [{
				"pagePath": "pages/index/index",
				"iconPath": "static/tabbars/index.png",
				"selectedIconPath": "static/tabbars/indexsel.png",
				"text": "首頁"
			},
			{
				"pagePath": "pages/classification/classification",
				"iconPath": "static/tabbars/class.png",
				"selectedIconPath": "static/tabbars/classsel.png",
				"text": "分類"
			},
			{
				"pagePath": "pages/my/my",
				"iconPath": "static/tabbars/my.png",
				"selectedIconPath": "static/tabbars/mysels.png",
				"text": "我的"
			}
		]
	}

}

【有時間持續更新中~】

發佈了106 篇原創文章 · 獲贊 17 · 訪問量 10萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章