export default {
	state:{
		footer_nav:[
			{
				name:'首页',
				name_code:'home',
				icon:'/static/footer_icon/a1.png',
				select_icon:'/static/footer_icon/a2.png',
				size:'small'
			},
			{
				name:'收藏',
				name_code:'collection',
				icon:'/static/footer_icon/b1.png',
				select_icon:'/static/footer_icon/b2.png',
				size:'small'
			},
			{
				name:'',
				name_code:'publish',
				icon:'/static/footer_icon/c1.png',
				select_icon:'/static/footer_icon/c2.png',
				size:'big'
			},
			{
				name:'频道',
				name_code:'channel',
				icon:'/static/footer_icon/d1.png',
				select_icon:'/static/footer_icon/d2.png',
				size:'small'
			},
			{
				name:'我的',
				name_code:'user',
				icon:'/static/footer_icon/e1.png',
				select_icon:'/static/footer_icon/e2.png',
				size:'small'
			},
		],
		now_page_index:0,
	},
	mutations:{
		change_nav_list(state,data){
			state.footer_nav = data;
		},
		change_page(state,index){
			state.now_page_index = index;
		}
	},
	actions:{
		menu_2(ctx){
			let menu_list = [
				{
					name:'首页',
					name_code:'home',
					icon:'/static/footer_icon/a2.png',
					select_icon:'/static/footer_icon/a1.png',
					size:'small'
				},
				{
					name:'我的',
					name_code:'my',
					icon:'/static/footer_icon/d1.png',
					select_icon:'/static/footer_icon/d2.png',
					size:'small'
				},
			]
			ctx.commit("change_nav_list",menu_list)
		},
		menu_3(ctx){
			let menu_list = [
				{
					name:'首页',
					name_code:'home',
					icon:'/static/footer_icon/a2.png',
					select_icon:'/static/footer_icon/a1.png',
					size:'small'
				},
				{
					name:'发布',
					name_code:'publish',
					icon:'/static/footer_icon/f2.png',
					select_icon:'/static/footer_icon/f1.png',
					size:'big'
				},
				{
					name:'我的',
					name_code:'my',
					icon:'/static/footer_icon/d1.png',
					select_icon:'/static/footer_icon/d2.png',
					size:'small'
				},
			]
			
			ctx.commit("change_nav_list",menu_list)
		},
		menu_4(ctx){
			let menu_list = [
				{
					name:'首页',
					name_code:'home',
					icon:'/static/footer_icon/a2.png',
					select_icon:'/static/footer_icon/a1.png',
					size:'small'
				},
				{
					name:'我的',
					name_code:'my',
					icon:'/static/footer_icon/d1.png',
					select_icon:'/static/footer_icon/d2.png',
					size:'small'
				},
				{
					name:'发布',
					name_code:'publish',
					icon:'/static/footer_icon/f2.png',
					select_icon:'/static/footer_icon/f1.png',
					size:'small'
				},
				{
					name:'我的',
					name_code:'my',
					icon:'/static/footer_icon/d1.png',
					select_icon:'/static/footer_icon/d2.png',
					size:'small'
				},
			]
			
			ctx.commit("change_nav_list",menu_list)
		},
		menu_5(ctx){
			let menu_list = [
				{
					name:'首页',
					name_code:'home',
					icon:'/static/footer_icon/a2.png',
					select_icon:'/static/footer_icon/a1.png',
					size:'small'
				},
				{
					name:'我的',
					name_code:'my',
					icon:'/static/footer_icon/d1.png',
					select_icon:'/static/footer_icon/d2.png',
					size:'small'
				},
				{
					name:'发布',
					name_code:'publish',
					icon:'/static/footer_icon/f2.png',
					select_icon:'/static/footer_icon/f1.png',
					size:'big'
				},
				{
					name:'我的',
					name_code:'my',
					icon:'/static/footer_icon/d1.png',
					select_icon:'/static/footer_icon/d2.png',
					size:'small'
				},
				
				{
					name:'我的',
					name_code:'my',
					icon:'/static/footer_icon/d1.png',
					select_icon:'/static/footer_icon/d2.png',
					size:'small'
				},
			]
			
			ctx.commit("change_nav_list",menu_list)
		}
	}
}