public.service.js 627 B

1234567891011121314151617181920212223
  1. /**
  2. * 这是所有模块公用业务逻辑的服务
  3. */
  4. export default class PublicService {
  5. constructor(AjaxService) {
  6. Object.assign(this, { AjaxService })
  7. this.name = 'PublicService'
  8. }
  9. /**
  10. * 获取图形验证码
  11. * platformType:小程序 2 WWW 0 CRM 1
  12. */
  13. GetImgVerifyCode (data = {platformType:2}) {
  14. return this.AjaxService.get({ url:'/user/getImgVerifyCode', data, isLoading: true })
  15. }
  16. /**
  17. * 获取图形验证码
  18. * activateCodeType:机构 2 供应商 3 找回密码 1
  19. */
  20. GetMobileCode (data = {}) {
  21. return this.AjaxService.get({ url:'/user/activateCodeByReg', data, isLoading: true })
  22. }
  23. }