detail-banner.js 569 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // components/house-item/house-item.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. imglist: Array,
  8. vrLink: String
  9. },
  10. /**
  11. * 组件的初始数据
  12. */
  13. data: {
  14. currentIndex: 0,
  15. preIndex: 1
  16. },
  17. /**
  18. * 组件的方法列表
  19. */
  20. methods: {
  21. swiperchange (e) {
  22. this.setData({
  23. preIndex: e.detail.current + 1
  24. })
  25. },
  26. HandleImgClick (e) {
  27. },
  28. onlineWatch () {
  29. this.triggerEvent('onlineWatch')
  30. },
  31. toVrHouse () {
  32. this.triggerEvent('toVrHouse')
  33. }
  34. }
  35. })