api.js 730 B

123456789101112131415161718192021222324252627
  1. const url = {
  2. library_url: 'http://ott80testlibrary.yifangjiaoyu.cn/mobile/page',
  3. schedule_url: 'http://ott80test-schedule.yifangjiaoyu.cn/mobile/schedule/',
  4. user_url: 'http://ott80test-base.yifangjiaoyu.cn/mobile/user',
  5. upload_img: 'http://ott80test-base.yifangjiaoyu.cn/file/upload',
  6. pay_url: 'http://ott80test-trade.yifangjiaoyu.cn/mobile/'
  7. };
  8. export default class APIConfig {
  9. static getLibraryUrl(path) {
  10. return url.library_url + path;
  11. }
  12. static getScheduleUrl(path) {
  13. console.log(33333, url.schedule_url + path);
  14. return url.schedule_url + path;
  15. }
  16. static getUserUrl(path) {
  17. return url.user_url + path;
  18. }
  19. static getUploadImg() {
  20. return url.upload_img;
  21. }
  22. static getPayUrl() {
  23. return url.pay_url;
  24. }
  25. }