Browse Source

修改首页底部工具栏

master
邓宏 2 years ago
parent
commit
43e9000f23
  1. 4
      pages.js
  2. 4
      pages/home/index.vue

4
pages.js

@ -15,7 +15,7 @@ module.exports = hot((pagesJson)=>{
selectedColor:"#10C176", selectedColor:"#10C176",
backgroundColor:"#fff", backgroundColor:"#fff",
list:[ list:[
{pagePath:"pages/home/index",text:"首页",iconPath: "/static/tab_home.png",selectedIconPath: "/static/tab_home_active.png"}, {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/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"}, {pagePath:"pages/home/my",text:"我的",iconPath: "/static/tab_my.png",selectedIconPath: "/static/tab_my_active.png"},
] ]
@ -23,7 +23,7 @@ module.exports = hot((pagesJson)=>{
condition : { condition : {
current: 0, current: 0,
list: [ list: [
{name:"测试页面",path:"pages/stock/agrWarehouse"}, // {name:"测试页面",path:"pages/stock/agrWarehouse"},
// {name: "地块管理",path: "pages/massif/mana/index","query": ""}, // {name: "地块管理",path: "pages/massif/mana/index","query": ""},
// {name: "地块基本信息",path: "pages/massif/info","query": ""}, // {name: "地块基本信息",path: "pages/massif/info","query": ""},
{name: "登录",path: "pages/home/login","query": ""}, {name: "登录",path: "pages/home/login","query": ""},

4
pages/home/index.vue

@ -397,6 +397,10 @@ import request,{host} from '@/common/request.js'
} }
}, },
onLoad() { onLoad() {
// uni.setTabBarItem({
// index:0,
// pagePath:"/pages/home/rePassword"
// })
this.getHeadImg() this.getHeadImg()
if(this.isAdmin){ if(this.isAdmin){
this.getPlantBase() this.getPlantBase()

Loading…
Cancel
Save