service.js 664 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * 此文件管理项目所有接口
  3. */
  4. import {get, post, put, del} from './network';
  5. // import {
  6. // getBing
  7. // } from "../../utils/service.js";
  8. // getBing({
  9. // name:'7778880105007',
  10. // pwd: 'e10adc3949ba59abbe56e057f20f883e',
  11. // appletsId: 'oqqAL4wZlDm8UYJFjdJljt - BoFvw'
  12. // })
  13. // .then(data => {
  14. // console.log(data, "000000")
  15. // })
  16. /**
  17. * 服务器根域名
  18. * 试玩更多接口看这里
  19. * http://jsonplaceholder.typicode.com/
  20. * @type {string}
  21. */
  22. // https://sqdx.jiaxintech.com
  23. export const API_ROOT = 'https://sqdx.jiaxintech.com';
  24. /**
  25. * 获取图片
  26. */
  27. export const getXczsArr = (id) => post(`${API_ROOT}/wx/course/listCategory`);