article.js 608 B

1234567891011121314151617181920212223242526
  1. import request from '@/sheep/request';
  2. export default {
  3. // 获得文章详情
  4. getArticle: (id, title) => {
  5. return request({
  6. url: '/promotion/article/get',
  7. method: 'GET',
  8. params: { id, title }
  9. });
  10. },
  11. // 获得文章列表
  12. getHomeList: () => {
  13. return request({
  14. url: '/promotion/article/getHomeInfo',
  15. method: 'GET'
  16. });
  17. },
  18. getArticleByCategory: (params) => {
  19. return request({
  20. url: '/promotion/article/page',
  21. method: 'GET',
  22. params
  23. });
  24. }
  25. }