api.js 520 B

123456789101112131415161718
  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. };
  6. export default class APIConfig {
  7. static getLibraryUrl(path) {
  8. return url.library_url + path;
  9. }
  10. static getScheduleUrl(path) {
  11. console.log(33333, url.schedule_url + path);
  12. return url.schedule_url + path;
  13. }
  14. static getUserUrl(path) {
  15. return url.user_url + path;
  16. }
  17. }