partyItem.js 862 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // components/house-item/house-item.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. room: Object
  8. },
  9. options: {
  10. addGlobalClass: true,
  11. },
  12. /**
  13. * 组件的初始数据
  14. */
  15. data: {
  16. },
  17. /**
  18. * 组件的方法列表
  19. */
  20. methods: {
  21. gotoWV(e) {
  22. let {
  23. id,
  24. index,
  25. roomid
  26. } = e.currentTarget.dataset
  27. console.log(id)
  28. let data = {
  29. id: id,
  30. index: index,
  31. roomId: roomid,
  32. }
  33. this.triggerEvent('gotoWV', data)
  34. }
  35. // toDetail () {
  36. // getApp().autoSubcrebe && getApp().autoSubcrebe()
  37. // getApp().globalData.lastHouse = this.properties.house
  38. // console.log(this.properties.house)
  39. // wx.navigateTo({
  40. // url: `/pages/detail/detail?house_id=${this.properties.house.house_id}`
  41. // })
  42. // }
  43. }
  44. })