home.js 505 B

12345678910111213141516171819202122232425
  1. import Serve from '@/api/serve/index'
  2. class Home {
  3. // 获取大部分数据
  4. static indexList(data,config){
  5. return Serve.get('/indexList',data,config)
  6. }
  7. // 获取自选数据
  8. static getCollect(){
  9. return Serve.get('/getCollect')
  10. }
  11. /**
  12. * 添加自选
  13. * @param {object} data
  14. * @param {string} data.pair_id
  15. * @param {string} data.pair_name
  16. */
  17. static option(data){
  18. return Serve.post('/option',data)
  19. }
  20. }
  21. export default Home;