roomItem.js 877 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. } = e.currentTarget.dataset
  25. console.log(id)
  26. this.triggerEvent('gotoWV', id)
  27. // wx.navigateTo({
  28. // url: `/pages/webview/index?id=${id}`,
  29. // // url: `/pages/share/share?id=${id}`,
  30. // })
  31. }
  32. // toDetail () {
  33. // getApp().autoSubcrebe && getApp().autoSubcrebe()
  34. // getApp().globalData.lastHouse = this.properties.house
  35. // console.log(this.properties.house)
  36. // wx.navigateTo({
  37. // url: `/pages/detail/detail?house_id=${this.properties.house.house_id}`
  38. // })
  39. // }
  40. }
  41. })