showcase.js 491 B

1234567891011121314151617181920
  1. import APIConfig from './api.js';
  2. import request from '../utils/request';
  3. export default class showcase {
  4. /**
  5. * 开机页推荐 code STARTING_UP_RECOMMEND
  6. */
  7. static getSTARTING_UP_RECOMMEND() {
  8. return request(APIConfig.getShowCase('?code=STARTING_UP_RECOMMEND'), {
  9. method: 'get'
  10. });
  11. }
  12. /**
  13. * 开机页推荐 code UCENTER_RECOMMEND
  14. */
  15. static getUCENTER_RECOMMEND() {
  16. return request(APIConfig.getShowCase('?code=UCENTER_RECOMMEND'), { method: 'GET' });
  17. }
  18. }