search.js 606 B

1234567891011121314151617181920
  1. import APIConfig from './api.js';
  2. // import efunRequest from '../utils/efunRequest'
  3. import request from '../utils/request'
  4. export default class search {
  5. // 获取搜索课程列表
  6. static getSearchCourseList(keyword) {
  7. console.log(keyword)
  8. return request(`http://ott80testlibrary.yifangjiaoyu.cn/mobile/course?keyword=${keyword}`, {
  9. method: "get",
  10. })
  11. }
  12. // 获取搜索课件列表
  13. static getSearchWareList(keyword) {
  14. console.log(keyword)
  15. return request(`http://ott80testlibrary.yifangjiaoyu.cn/mobile/course/ware?keyword=${keyword}`, {
  16. method: "get",
  17. })
  18. }
  19. }