|
|
|
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'),
|
|
|
|
...require('./router/patrolGarden.js'),
|
|
|
|
],
|
|
|
|
tabBar:{
|
|
|
|
color:"#999",
|
|
|
|
selectedColor:"#10C176",
|
|
|
|
backgroundColor:"#fff",
|
|
|
|
list:[
|
|
|
|
{pagePath:"pages/home/index",visible:true,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/stock/agrWarehouse"},
|
|
|
|
// {name: "地块管理",path: "pages/massif/mana/index","query": ""},
|
|
|
|
// {name: "地块基本信息",path: "pages/massif/info","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/massif/detail","query": ""},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|