bottom-reply.js 471 B

1234567891011121314151617181920212223
  1. import {getEventParam} from "../../../../utils/utils";
  2. Component({
  3. properties: {},
  4. data: {
  5. message: '',
  6. },
  7. methods: {
  8. changeMessage(e) {
  9. this.setData({
  10. message: getEventParam(e)
  11. })
  12. },
  13. reply(e) {
  14. this.triggerEvent("message", {msg: this.data.message});
  15. },
  16. clear() {
  17. this.setData({
  18. message: ""
  19. })
  20. }
  21. }
  22. });