order.js 511 B

12345678910111213141516171819202122232425262728293031
  1. // component/order/order.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. info: Object
  8. },
  9. /**
  10. * 组件的初始数据
  11. */
  12. data: {
  13. },
  14. /**
  15. * 组件的方法列表
  16. */
  17. methods: {
  18. orderShopTap(){
  19. this.triggerEvent('orderShopTap',this.data.info)
  20. },
  21. orderBtnTap(e){
  22. this.triggerEvent('orderBtnTap',{info:this.data.info,type:e.currentTarget.dataset.type})
  23. },
  24. orderTap(e){
  25. this.triggerEvent('orderTap',this.data.info)
  26. }
  27. }
  28. })