index.js 540 B

12345678910111213141516171819202122232425262728293031323334
  1. Component({
  2. props: {
  3. onBtnClick: () => null,
  4. memberPopUpShow: false,
  5. onPopClose: () => null,
  6. memberItem: null
  7. },
  8. data: {},
  9. didMount() {},
  10. methods: {
  11. handleBtnClick(e) {
  12. const {
  13. dataset: {
  14. type = ''
  15. }
  16. } = e.target;
  17. const {
  18. memberItem
  19. } = this.props;
  20. this.props.onBtnClick && this.props.onBtnClick({
  21. type,
  22. memberItem
  23. });
  24. this.props.onPopClose();
  25. },
  26. onPopClose() {
  27. this.props.onPopClose();
  28. }
  29. }
  30. });