personnel.js 898 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. const util = require("../../../../utils/util");
  2. const app = getApp();
  3. Component({
  4. properties: {
  5. show: {
  6. type: Boolean,
  7. observer: function (newVal) {
  8. this.setData({ show: newVal });
  9. }
  10. },
  11. list: {
  12. type: Array,
  13. observer: function (newVal) {
  14. this.setData({ list: newVal });
  15. }
  16. },
  17. },
  18. data: {
  19. show:false,
  20. height:'65%',
  21. list:[],
  22. },
  23. methods: {
  24. // 弹窗关闭
  25. close(e) {
  26. this.triggerEvent("close", e.detail);
  27. },
  28. // 选择人员
  29. radioChange(e){
  30. let arr = e.detail.value.split('|');
  31. let data ={
  32. childName:arr[0],
  33. id:arr[1],
  34. userAvatar:arr[2],
  35. userId:arr[3],
  36. userNickname:arr[4],
  37. age:arr[5],
  38. city:arr[6],
  39. sex:arr[7]
  40. }
  41. this.triggerEvent("getChildInfo", data);
  42. },
  43. }
  44. })