public.service.js 533 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * 这是所有模块公用业务逻辑的服务
  3. */
  4. export default class PublicService {
  5. constructor(AjaxService) {
  6. Object.assign(this, { AjaxService })
  7. this.name = 'PublicService'
  8. }
  9. /**
  10. * 获取地址
  11. */
  12. GetAllAddressData (data = {}) {
  13. return this.AjaxService.get({
  14. url:'/other/list',
  15. data,
  16. isLoading: false ,
  17. })
  18. }
  19. /**
  20. * 发送手机验证码
  21. * mobile 手机号
  22. */
  23. GetheHeSend (data = {}) {
  24. return this.AjaxService.get({
  25. url:'/user/he/send',
  26. data,
  27. isLoading: true ,
  28. })
  29. }
  30. }