sleep.js 874 B

1234567891011121314151617181920212223242526272829303132333435
  1. import {sexTexts} from "../../model/enum";
  2. import Api from "../../model/api";
  3. const app = getApp();
  4. app.Base({
  5. data: {
  6. id: '',
  7. picUrl: '',
  8. name: '',
  9. teamJobName: '',
  10. phone: '',
  11. sex: '',
  12. nationName: '',
  13. className: '',
  14. groupName: '',
  15. sexs: sexTexts
  16. },
  17. async onLoad(options) {
  18. const {picUrl, name, id, teamJobName, phone, sex, nationName, className, groupName, myStuId} = options;
  19. this.data.id = id;
  20. this.setData({
  21. id, picUrl, name, teamJobName, phone,
  22. sex, nationName, className, groupName, myStuId
  23. })
  24. },
  25. async requestData() {
  26. let res = await Api.hotelArrange({
  27. userId: this.data.id,
  28. pageNum: this.pageNum,
  29. pageSize: this.pageSize
  30. });
  31. return res;
  32. },
  33. });