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

Page({
  onShow() {
    wx.setNavigationBarTitle({
      title: '收藏的楼盘'
    })
  },
  data: {
    UserInfo: app.globalData.UserInfo, // 用户信息
    List: [{
      Img: '/assets/images/img5.jpg',
      Name: '示例楼盘名称',
      Address: '南京市xx路xx号',
      Distance: '22.2',
      Price: '2.1'
    }, {
      Img: '/assets/images/img5.jpg',
      Name: '示例楼盘名称',
      Address: '南京市xx路xx号',
      Distance: '22.2',
      Price: '2.1'
    }, {
      Img: '/assets/images/img5.jpg',
      Name: '示例楼盘名称',
      Address: '南京市xx路xx号',
      Distance: '22.2',
      Price: '2.1'
    }, {
      Img: '/assets/images/img5.jpg',
      Name: '示例楼盘名称',
      Address: '南京市xx路xx号',
      Distance: '22.2',
      Price: '2.1'
    }, {
      Img: '/assets/images/img5.jpg',
      Name: '示例楼盘名称',
      Address: '南京市xx路xx号',
      Distance: '22.2',
      Price: '2.1'
    }, {
      Img: '/assets/images/img5.jpg',
      Name: '示例楼盘名称',
      Address: '南京市xx路xx号',
      Distance: '22.2',
      Price: '2.1'
    }, {
      Img: '/assets/images/img5.jpg',
      Name: '示例楼盘名称',
      Address: '南京市xx路xx号',
      Distance: '22.2',
      Price: '2.1'
    }, {
      Img: '/assets/images/img5.jpg',
      Name: '示例楼盘名称',
      Address: '南京市xx路xx号',
      Distance: '22.2',
      Price: '2.1'
    }, {
      Img: '/assets/images/img5.jpg',
      Name: '示例楼盘名称',
      Address: '南京市xx路xx号',
      Distance: '22.2',
      Price: '2.1'
    }],
    DeleteIndex: null,
    DeleteOff: true
  },
  DeleteItem() { // 确认删除逻辑
    if (this.data.DeleteOff) {
      this.setData({
        DeleteOff: false
      })
    }
  }
})