index.js 905 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Component({
  2. properties: {
  3. visible: {
  4. type: Boolean,
  5. value: false,
  6. },
  7. receiveUserPhone: {
  8. type: String,
  9. value: "",
  10. },
  11. score: {
  12. type: String,
  13. value: "",
  14. },
  15. minScore: {
  16. type: Number,
  17. value: 10,
  18. },
  19. maxScore: {
  20. type: Number,
  21. value: 500,
  22. },
  23. remainTimes: {
  24. type: Number,
  25. value: 3,
  26. },
  27. },
  28. methods: {
  29. noop() {},
  30. handleCancel() {
  31. this.triggerEvent("cancel");
  32. },
  33. handleConfirm() {
  34. this.triggerEvent("confirm", {
  35. receiveUserPhone: (this.data.receiveUserPhone || "").trim(),
  36. score: this.data.score || "",
  37. });
  38. },
  39. handleReceiverInput(e) {
  40. this.triggerEvent("receiverchange", { value: e.detail.value || "" });
  41. },
  42. handleScoreInput(e) {
  43. this.triggerEvent("scorechange", { value: e.detail.value || "" });
  44. },
  45. },
  46. });