/** * 这是用户业务逻辑的服务 */ export default class UserService { constructor(AjaxService) { Object.assign(this, { AjaxService }) this.name = 'UserService' } /* 初始化授权登录 */ UserLoginAuthApplets(data = {}) { return this.AjaxService.post({ url: '/order/receipt/auth', data, isLoading: false, }) } /* 账号密码登录 */ UserLoginReceiptPassword(data = {}) { return this.AjaxService.post({ url: '/order/receipt/password', data, isLoading: true, loadText:'登录中...' }) } }