index.ts 658 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // pages/mine/components/userorder/index.ts
  2. Component({
  3. options: {
  4. multipleSlots: true,
  5. addGlobalClass: true,
  6. },
  7. properties: {
  8. options: {
  9. type: Array,
  10. value: [],
  11. },
  12. title: {
  13. type: String,
  14. value: '我的订单',
  15. },
  16. desc: {
  17. type: String,
  18. value: '全部订单',
  19. },
  20. isTop: {
  21. type: Boolean,
  22. value: true,
  23. },
  24. classPrefix: {
  25. type: String,
  26. value: 'wr',
  27. },
  28. },
  29. methods: {
  30. onClickItem(e: any) {
  31. this.triggerEvent('onClickItem', e.currentTarget.dataset.item)
  32. },
  33. onClickTop() {
  34. this.triggerEvent('onClickTop', {})
  35. },
  36. },
  37. })