// tabBar/tabBar.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
      type: Object,
      value: {
        "backgroundColor": "#ffffff",
        "color": "#979795",
        "selectedColor": "#1c1c1b",
        "list": [
          {
            "pagePath": "page/tabBar/home/index",
            "iconPath": "icon/home.png",
            "selectedIconPath": "icon/home-select.png",
            "text": "首页"
          },
          {
            "pagePath": "page/tabBar/neighbor/index",
            "iconPath": "icon/book.png",
            "selectedIconPath": "icon/book-select.png",
            "text": "通迅录"
          },
          {
            "pagePath": "page/tabBar/gate/index",
            "iconPath": "icon/phone.png",
            "isSpecial": true,
            "text": ""
          },
          {
            "pagePath": "page/tabBar/message/index",
            "iconPath": "icon/message.png",
            "selectedIconPath": "icon/message-select.png",
            "text": "消息"
          },
          {
            "pagePath": "page/tabBar/mine/index",
            "iconPath": "icon/my.png",
            "selectedIconPath": "icon/my-select.png",
            "text": "我的"
          },
    
        ]
      }
    },
    unreadCount: {
      type: String,
      value: "0",
      observer(unreadCount) {
        this.setData({
          unreadCount,
        });
      },
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    isIphoneX: false,
    bottom:app.globalData.systemInfo.screenHeight-app.globalData.systemInfo.safeArea.bottom,
  },
  onShow(){
    
  },

  /**
   * 组件的方法列表
   */
  methods: {
  }
})
