123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- // components/house-item/house-item.js
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
- room: Object
- },
- options: {
- addGlobalClass: true,
- },
- /**
- * 组件的初始数据
- */
- data: {
- },
- /**
- * 组件的方法列表
- */
- methods: {
- gotoWV(e) {
- let {
- id
- } = e.currentTarget.dataset
- console.log(id)
- this.triggerEvent('gotoWV', id)
- // wx.navigateTo({
- // url: `/pages/webview/index?id=${id}`,
- // // url: `/pages/share/share?id=${id}`,
- // })
- }
- // toDetail () {
- // getApp().autoSubcrebe && getApp().autoSubcrebe()
- // getApp().globalData.lastHouse = this.properties.house
- // console.log(this.properties.house)
- // wx.navigateTo({
- // url: `/pages/detail/detail?house_id=${this.properties.house.house_id}`
- // })
- // }
- }
- })
|