Page({
  data: {
    scan_list: [
      {
        name: '智能电饭煲',
        imgUrl: '/assets/images/xian/adddevice_scan1.png',
        checked : true,
      },
      {
        name: '智能电饭煲2',
        imgUrl: '/assets/images/xian/adddevice_scan2.png',
        checked : false,
      },
    ],
    device_list: [
      {
        category: '厨房电器',
        device: [
          {
            name: '智能电饭煲',
            imgUrl: '/assets/images/xian/adddevice_img1.png',
          },
          {
            name: '电热水壶',
            imgUrl: '/assets/images/xian/adddevice_img2.png',
          },
          {
            name: '空气炸锅',
            imgUrl: '/assets/images/xian/adddevice_img3.png',
          },
          {
            name: '破壁料理机',
            imgUrl: '/assets/images/xian/adddevice_img4.png',
          },
        ]
      },
      {
        category: '清洁电器',
        device: [
          {
            name: '扫地机器人',
            imgUrl: '/assets/images/xian/adddevice_img5.png',
          }
        ]
      },
    ],
  },

  onShow() {
    this.setData({
      // hasHiddenTabBar: true,
      // scan_list: []
    })
    ty.hideMenuButton()
  },

  goSelectWifi() { 
    ty.navigateTo({
      url: '/pages/selectwifi/index',
    })
  }


})
