pay.js 351 B

1234567891011121314151617181920212223242526272829
  1. // components/pay/pay.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. amount:{
  8. type:String,
  9. value:'46.8'
  10. }
  11. },
  12. /**
  13. * 组件的初始数据
  14. */
  15. data: {
  16. },
  17. /**
  18. * 组件的方法列表
  19. */
  20. methods: {
  21. toPay(){
  22. this.triggerEvent("onPay");
  23. }
  24. }
  25. })