const {hot} = require('uni-pages-hot-modules')

module.exports = hot((pagesJson)=>{
	return{
		...pagesJson,
		pages:[
			...require("./router/home.js"),
			...require("./router/warehouse.js"),
			...require("./router/massif.js"),
			...require('./router/purchase.js'),
			...require('./router/stock.js'),
			// {
			// 	"path":"pages/demo",
			// 	"style":{
			// 		"navigationBarTitleText":"测试地图",
			// 		"navigationBarBackgroundColor":"#10C176",
			// 		"navigationBarTextStyle":"white",
			// 		"app-plus":{
			// 			"titleNView":true,
			// 			"nvueCompiler":"uni-app",
			// 			"nvueStyleCompiler":"uni-app"
			// 		}
			// 	}
			// },
		],
		tabBar:{
			color:"#999",
			selectedColor:"#10C176",
			backgroundColor:"#fff",
			list:[
				{pagePath:"pages/home/index",text:"首页",iconPath: "/static/tab_home.png",selectedIconPath: "/static/tab_home_active.png"},
				{pagePath:"pages/massif/index",text:"地块管理",iconPath: "/static/tab_massif.png",selectedIconPath: "/static/tab_massif_active.png"},
				{pagePath:"pages/home/my",text:"我的",iconPath: "/static/tab_my.png",selectedIconPath: "/static/tab_my_active.png"},
			]
		},
		condition : {
			current: 0,
			list: [
				// {name:"测试页面",path:"pages/demo"},
				{name: "地块管理",path: "pages/massif/mana/index","query": ""},
				{name: "登录",path: "pages/home/login","query": ""},
				{name: "首页",path: "pages/home/index","query": ""},
				{name: "仓库管理",path: "pages/warehouse/mana","query": ""},
				{name: "仓库基本信息",path: "pages/warehouse/info","query": ""},
				{name: "仓库详情",path: "pages/warehouse/detail","query": ""},
				{name: "地块详情",path: "pages/massifDetail","query": ""},
				{name: "地块基本信息",path: "pages/massifInfo","query": ""}
			]
		}
	}
})