
const state = {
	dataObj: {
		region: 'oss-cn-hangzhou',
		accessKeyId: 'LTAI4Fopz6vz2f4ni8By4a2P',
		accessKeySecret: 'mfzrmhqP5a8JwWP4WNNW2DDWUPZOQ3',
		bucket: 'jzm-oss'
	},
	baseAli: 'oss-cn-hangzhou.aliyuncs.com',
	count:10,
	//顶部菜单树
	topMenuTree:[
		{
			path: '/',
			name: '产品',
			children: [
				{ path: '/product/dataCollection',name: '数据采集',leaf: true},
				{
					name: 'wish采集箱',
					path: '/product/wishproductList',
					leaf: true
				},
				{
					path: '/',
					name: '运费模板',
					leaf: true
				}
			]
		},
		{
			path: '/',
			name: '订单',
			leaf: true,
			children: [
					{ path: '/nav2/test2',name: '测试2-1',leaf: true},
					{
						path: '/',
						name: '测试2-2',
						children: [
								{ path: '/nav2/test21', name: '测试2-2-1' }
						]
					}
			]
		},
		{
			path: '/',
			name: '客服',
			leaf: true,
			children: [
					{ path: '/nav3/test3',name: '测试3-1'}
			]
		}
	],
	// 左侧菜单树
	menuTree:{
		dataCollection:[
			{
				path: '/',
				name: '通用服务',
				children: [
						{ path: '/product/dataCollection',name: '数据采集'}
				]
			},
			{
				path: '/',
				name: '采集箱',
				children: [
						{ path: '/product/productList', name: 'wish(20)' }
				]
			}
		],
		templateList:[
			{
				path: '/',
				name: '常用模板',
				children: [
						{ path: '/product/templateList',name: '运费模板'}
				]
			},
		],
		orderList:[
			{
				path: '/',
				name: '订单',
				children: [
						{ path: '/order/orderList',name: '全部订单（20）'},
						{ path: '/order/waitSend',name: '待审核（20）'},
						{ path: '/order/failSend',name: '发货失败（40）'},
						{ path: '/order/successSend',name: '发货成功（30）'}
				]
			}
		],
		shopList:[
			{
				path: '/',
				name: '平台授权',
				children: [
						{ path: '/shopAuthorization/shopList',name: '店铺授权'},
				]
			}
		],
		serviceList:[
			{
				path: '/',
				name: 'Wish客服',
				children: [
						{ path: '/service/serviceList',name: '未处理消息（33）'}
				]
			}
		],
		systemList:[
			{
				path: '/',
				name: '系统管理',
				children: [
						{ path: '/systemManagement/rightsManagement',name: '权限管理'}
				]
			}
		],
		advertisingList:[
			{
				path: '/',
				name: 'PB广告',
				children: [
						{ path: '/advertising/activityManagement',name: '广告管理'},
						{ path: '/advertising/storePerformance',name: '店铺表现'},
						{ path: '/advertising/activityPerformance',name: '活动表现'},
						{ path: '/advertising/productPerformance',name: '产品表现'}
				]
			}
		],
		shortMessageList:[
			{
				path: '/',
				name: '服务',
				children: [
					{ path: '/shortMessageService/textMessaging',name: '短信发送管理'},
					{ path: '/shortMessageService/messageTemplate',name: '短信模板管理'},
					{ path: '/shortMessageService/sendData',name: '发送数据'},
				]
			}
		],
		epcList:[
			{
				path: '/',
				name: 'EPC管理',
				children: [
					{ path: '/epcManage/epcList',name: 'EPC服务'},
				]
			}
		],
		logisticsList:[
			{
				path: '/',
				name: '物流',
				children: [
					{ path: '/logistics/logisticsQuery',name: '物流查询'},
					{ path: '/logistics/logisticsWarning',name: '物流预警'},
				]
			}
		],
		currentMenu:[
			{
				path: '/',
				name: '通用服务',
				children: [
						{ path: '/product/dataCollection',name: '数据采集'}
				]
			},
			{
				path: '/',
				name: '采集箱',
				children: [
						{ path: '/product/productList', name: 'wish(20)' }
				]
			}
		]
	}
};
const getters={
	count:state => {
		return state.count
	}
}
const mutations = {
	initSide(state,newState){
		state.menuTree['currentMenu']=state.menuTree[newState]
	},
	increment(state) {
		state.count++
	},
	decrement(state) {
			state.count--
	}
}
export default {
	state,mutations,getters
}