common.service.js 509 B

1234567891011121314151617
  1. /**
  2. * 这是所有模块公用业务逻辑的服务
  3. */
  4. export default class CommonService {
  5. constructor(AjaxService) {
  6. Object.assign(this, { AjaxService })
  7. this.name = 'CommonService'
  8. }
  9. /* api公用定义 */
  10. getQueryCategory (data = {}) {
  11. return this.AjaxService.get({ url:'/product/classify', data, isLoading: true })
  12. }
  13. /* 首页banner */
  14. getExpressInformation (data = {}) {
  15. return this.AjaxService.get({ url:'https://www.kuaidi100.com/autonumber/autoComNum', data, isLoading: false })
  16. }
  17. }