index.ts 564 B

123456789101112131415161718192021222324252627282930313233343536
  1. // components/roomitem/index.ts
  2. Component({
  3. options: {
  4. styleIsolation: 'apply-shared'
  5. },
  6. /**
  7. * 组件的属性列表
  8. */
  9. properties: {
  10. g_cdn:String,
  11. type:Number,
  12. info:Object
  13. },
  14. /**
  15. * 组件的初始数据
  16. */
  17. data: {
  18. },
  19. /**
  20. * 组件的方法列表
  21. */
  22. methods: {
  23. tapItem(){
  24. // if (this.data.info.statusVo == 1) {
  25. // return
  26. // }
  27. this.triggerEvent('tapItem',{item:this.data.info})
  28. // { bubbles: true, composed: true }
  29. // this.triggerEvent('tapItem',{})
  30. }
  31. }
  32. })