user.service.js 687 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * 这是用户业务逻辑的服务
  3. */
  4. export default class UserService {
  5. constructor(AjaxService) {
  6. Object.assign(this, {
  7. AjaxService
  8. })
  9. this.name = 'UserService'
  10. }
  11. /* 初始化授权登录 */
  12. UserLoginAuthApplets(data = {}) {
  13. return this.AjaxService.post({
  14. url: '/order/receipt/auth',
  15. data,
  16. isLoading: false,
  17. })
  18. }
  19. /* 账号密码登录 */
  20. UserLoginReceiptPassword(data = {}) {
  21. return this.AjaxService.post({
  22. url: '/order/receipt/password',
  23. data,
  24. isLoading: true,
  25. loadText:'登录中...'
  26. })
  27. }
  28. }