index.js 571 B

1234567891011121314151617181920212223242526272829303132333435
  1. Component({
  2. properties: {
  3. visible: {
  4. type: Boolean,
  5. value: false,
  6. },
  7. amount: {
  8. type: String,
  9. value: "",
  10. },
  11. accountName: {
  12. type: String,
  13. value: "",
  14. },
  15. withdrawConfig: {
  16. type: Object,
  17. value: {},
  18. },
  19. },
  20. methods: {
  21. noop() {},
  22. handleCancel() {
  23. this.triggerEvent("cancel");
  24. },
  25. handleConfirm() {
  26. this.triggerEvent("confirm");
  27. },
  28. handleAmountInput(e) {
  29. this.triggerEvent("amountchange", {
  30. value: e.detail.value || "",
  31. });
  32. },
  33. },
  34. });