You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.5 KiB

2 years ago
const {hot} = require('uni-pages-hot-modules')
module.exports = hot((pagesJson)=>{
return{
...pagesJson,
pages:[
2 years ago
...require("./router/home.js"),
...require("./router/warehouse.js"),
...require("./router/massif.js"),
...require('./router/purchase.js'),
...require('./router/stock.js'),
11 months ago
...require('./router/patrolGarden.js'),
2 years ago
],
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"},
2 years ago
{pagePath:"pages/home/my",text:"我的",iconPath: "/static/tab_my.png",selectedIconPath: "/static/tab_my_active.png"},
2 years ago
]
},
2 years ago
condition : {
current: 0,
list: [
// {name:"测试页面",path:"pages/stock/agrWarehouse"},
2 years ago
// {name: "地块管理",path: "pages/massif/mana/index","query": ""},
// {name: "地块基本信息",path: "pages/massif/info","query": ""},
2 years ago
{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": ""},
2 years ago
]
}
2 years ago
}
})