common.service.js 538 B

12345678910111213141516171819202122232425
  1. /**
  2. * 这是所有模块公用业务逻辑的服务
  3. */
  4. export default class CommonService {
  5. constructor(AjaxService) {
  6. Object.assign(this, { AjaxService })
  7. this.name = 'CommonService'
  8. }
  9. /* 商城首页轮播图 */
  10. GetProductCarousel (data = {}) {
  11. return this.AjaxService.get({
  12. url:'/product/carousel',
  13. data,
  14. isLoading: false ,
  15. })
  16. }
  17. /* 商城首页初始化数据查询 */
  18. GetHomeModulesDataInfo (data = {}) {
  19. return this.AjaxService.get({
  20. url:'/home/modules',
  21. data,
  22. isLoading: false ,
  23. })
  24. }
  25. }