//index.js
//获取应用实例
const app = getApp()

Component({
  behaviors: [],
  properties: {},
  data: {
    UserInfo: app.globalData.UserInfo,
    NavList: [{
      value: '项目动态',
      id: ''
    }, {
      value: '精彩活动',
      id: ''
    }],
    NavActiveIndex: 0,
    ListA: [{
      Title: '示例数据A',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }, {
      Title: '示例数据A',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }, {
      Title: '示例数据A',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }, {
      Title: '示例数据A',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }, {
      Title: '示例数据A',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }, {
      Title: '示例数据A',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }],
    ListB: [{
      Title: '示例数据B',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }, {
      Title: '示例数据B',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }, {
      Title: '示例数据B',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }, {
      Title: '示例数据B',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }, {
      Title: '示例数据B',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }, {
      Title: '示例数据B',
      CreateDate: '09-02-12',
      Org: '悦见山',
      Img: '/assets/images/img1.jpg',
      Id: ''
    }]
  },
  lifetimes: {},
  ready: function() {},
  pageLifetimes: {
    show: function() {},
  },
  methods: {
    CutNav(e) { // 切换nav
      if (e.target.dataset.index !== undefined) {
        this.setData({
          NavActiveIndex: e.target.dataset.index
        })
      }
    },
    ItemClick() {
      console.log(111)
    }
  }
})