const url = { library_url: 'http://ott80testlibrary.yifangjiaoyu.cn/mobile/page', schedule_url: 'http://ott80test-schedule.yifangjiaoyu.cn/mobile/schedule/', user_url: 'http://ott80test-base.yifangjiaoyu.cn/mobile/user', upload_img: 'http://ott80test-base.yifangjiaoyu.cn/file/upload', get_member: 'http://ott80test-trade.yifangjiaoyu.cn/customer/order/member', pay_url: 'http://ott80test-trade.yifangjiaoyu.cn/mobile', get_voucher: 'http://ott80test-trade.yifangjiaoyu.cn/mobile/voucher', get_isLogin: 'http://ott80test-base.yifangjiaoyu.cn/mobile/user/isLogin', get_showcase: 'http://ott80testlibrary.yifangjiaoyu.cn/mobile/page/showcase' }; export default class APIConfig { static getLibraryUrl(path) { return url.library_url + path; } static getScheduleUrl(path) { return url.schedule_url + path; } static getUserUrl(path) { return url.user_url + path; } static getUploadImg() { return url.upload_img; } static getPayUrl() { return url.pay_url; } static getMemberUrl() { return url.get_member; } static getVoucherUrl() { return url.get_voucher; } static getIsLogin() { return url.get_isLogin; } static getShowCase(params) { console.log('url.get_showcase + params', url.get_showcase + params); return url.get_showcase + params; } }