// components/house-item/house-item.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    imglist: Array,
    vrLink: String
  },

  /**
   * 组件的初始数据
   */
  data: {
    currentIndex: 0,
    preIndex: 1
  },

  /**
   * 组件的方法列表
   */
  methods: {
    swiperchange (e) {
      this.setData({
        preIndex: e.detail.current + 1
      })
    },
    HandleImgClick (e) {
      
    },
    onlineWatch () {
      this.triggerEvent('onlineWatch')
    },
    toVrHouse () {
      this.triggerEvent('toVrHouse')
    }
  }
})
