chart.js 589 B

123456789101112131415161718192021222324
  1. import {get,post} from '@/api/index'
  2. export default{
  3. // 获取图表详情
  4. getChartDetail:params=>{
  5. return get('v1/chart/detail',params)
  6. },
  7. // 收藏图表
  8. chartCollect:params=>{
  9. return post('/mychart/collect',params)
  10. },
  11. // 取消收藏图表
  12. chartCollectCancel:params=>{
  13. return post('/mychart/collectCancel',params)
  14. },
  15. // 获取首页进入图表上一张下一张信息
  16. commonChartLocate:()=>{
  17. return get('/chart/locate',{})
  18. },
  19. // 获取收藏进入图表上一张下一张信息
  20. myChartLocate:()=>{
  21. return get('/mychart/locate',{})
  22. }
  23. }