Component({
  options: {
    addGlobalClass: true,
  },
  properties:{
    selected:Number 
  },
  data: {
    list: [
      {
        "pagePath": "/pages/index/index",
        "iconPath":"/img/navIcon1.png",
        "selectedIconPath": "/img/navIcon1_sec.png",
        "text": "首页"
      }, {
        "pagePath": "/pages/query/query",
        "iconPath":"/img/navIcon2.png",
        "selectedIconPath": "/img/navIcon2_sec.png",
        "text": "查询"
      }
      , {
        "pagePath":"/pages/my/my",
        "iconPath":"/img/navIcon3.png",
        "selectedIconPath": "/img/navIcon3_sec.png",
        "text": "我的"
      }
    ]
  },
  methods: {
    switchTab(e) {      
      const url = e.currentTarget.dataset.path
      wx.switchTab({
        url
      })
    }
  },
  pageLifetimes: {
  }
})