common.service.js 490 B

1234567891011121314151617
  1. /**
  2. * 这是所有模块公用业务逻辑的服务
  3. */
  4. export default class CommonService {
  5. constructor(AjaxService) {
  6. Object.assign(this, { AjaxService })
  7. this.name = 'CommonService'
  8. }
  9. /* 首页导航模块商品列表 */
  10. GetHomeClassify (data = {}) {
  11. return this.AjaxService.get({ url:'/home/classify', data, isLoading: true })
  12. }
  13. /* 首页初始化 */
  14. GetHomeModulesDataInfo (data = {}) {
  15. return this.AjaxService.get({ url:'/home/modules', data, isLoading: false })
  16. }
  17. }