api.js 985 B

1234567891011121314151617181920212223242526272829303132333435
  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. get_member: 'http://ott80test-trade.yifangjiaoyu.cn/customer/order/member',
  7. pay_url: 'http://ott80test-trade.yifangjiaoyu.cn/mobile',
  8. get_voucher: 'http://ott80test-trade.yifangjiaoyu.cn/mobile/voucher'
  9. };
  10. export default class APIConfig {
  11. static getLibraryUrl(path) {
  12. return url.library_url + path;
  13. }
  14. static getScheduleUrl(path) {
  15. console.log(33333, url.schedule_url + path);
  16. return url.schedule_url + path;
  17. }
  18. static getUserUrl(path) {
  19. return url.user_url + path;
  20. }
  21. static getUploadImg() {
  22. return url.upload_img;
  23. }
  24. static getPayUrl() {
  25. return url.pay_url;
  26. }
  27. static getMemberUrl() {
  28. return url.get_member;
  29. }
  30. static getVoucherUrl() {
  31. return url.get_voucher;
  32. }
  33. }