course.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. import {
  2. myRequest
  3. } from "../request.js";
  4. export default {
  5. polyvSign(data) {
  6. return myRequest({
  7. url: "/polyv/video/sign/auth",
  8. method: "get",
  9. data: data,
  10. });
  11. },
  12. recordLast(data) {
  13. return myRequest({
  14. url: "/study/record/last",
  15. method: "get",
  16. data: data,
  17. });
  18. },
  19. menuExamList(data) {
  20. return myRequest({
  21. url: "/course/menu/exam/list",
  22. method: "get",
  23. data: data,
  24. });
  25. },
  26. reSectionList(data) {
  27. return myRequest({
  28. url: "/course/sectionList",
  29. method: "get",
  30. data: data,
  31. });
  32. },
  33. reChapterList(data) {
  34. return myRequest({
  35. url: "/course/chapterList",
  36. method: "get",
  37. data: data,
  38. });
  39. },
  40. appBeforeAddress(data) {
  41. return myRequest({
  42. url: "/app/before/address",
  43. method: "get",
  44. data: data,
  45. });
  46. },
  47. reMenuList(data) {
  48. return myRequest({
  49. url: "/course/menuList",
  50. method: "get",
  51. data: data,
  52. });
  53. },
  54. menuList(data) {
  55. return myRequest({
  56. url: "/app/common/course/menuList",
  57. method: "get",
  58. data: data,
  59. noToken: true,
  60. });
  61. },
  62. chapterList(data) {
  63. return myRequest({
  64. url: "/app/common/course/chapterList/" + data,
  65. method: "get",
  66. noToken: true,
  67. });
  68. },
  69. sectionList(data) {
  70. return myRequest({
  71. url: "/app/common/course/sectionList/" + data,
  72. method: "get",
  73. noToken: true,
  74. });
  75. },
  76. courseGoodsList(data) {
  77. return myRequest({
  78. url: "/course/goodsList",
  79. method: "get",
  80. data: data,
  81. });
  82. },
  83. // 购买讲义列表
  84. goodsHandoutsList(data) {
  85. return myRequest({
  86. url: "/course/goodsHandoutsList",
  87. method: "get",
  88. data: data,
  89. });
  90. },
  91. courseCourseList(data) {
  92. return myRequest({
  93. url: "/course/courseList",
  94. method: "get",
  95. data: data,
  96. });
  97. },
  98. //商品双师资模板
  99. courseTeacherList(data) {
  100. return myRequest({
  101. url: "/goods/course/teacher/list",
  102. method: "get",
  103. data: data,
  104. });
  105. },
  106. courseDetail(data) {
  107. return myRequest({
  108. url: "/course/" + data,
  109. method: "get",
  110. });
  111. },
  112. courseBusiness(data) {
  113. return myRequest({
  114. url: "/app/common/course/business/" + data,
  115. method: "get",
  116. noToken: true,
  117. });
  118. },
  119. courseHandouts(data) {
  120. return myRequest({
  121. url: "/course/handouts/file/detail",
  122. method: "get",
  123. data,
  124. });
  125. },
  126. appcommoncourseHandouts(data) {
  127. return myRequest({
  128. url: "/app/common/course/handouts/file/detail",
  129. method: "get",
  130. data,
  131. noToken: true
  132. });
  133. },
  134. getHandoutList(data) {
  135. return myRequest({
  136. url: "/course/handouts/listByGoods",
  137. method: "get",
  138. data: data,
  139. });
  140. },
  141. courseGoodsRebuildStatus(data) {
  142. return myRequest({
  143. url: "/course/goodsRebuildStatus",
  144. method: "get",
  145. data: data,
  146. });
  147. },
  148. orderfirstChoiceGoods(data) {
  149. return myRequest({
  150. url: '/order/firstChoiceGoods',
  151. method: 'post',
  152. data: data
  153. })
  154. },
  155. faceCertificationIDCardOCR(data) {
  156. return myRequest({
  157. url: "/face/certification/IDCardOCR",
  158. method: "post",
  159. data: data,
  160. });
  161. },
  162. facCertificationImageRecognition(data) {
  163. return myRequest({
  164. url: "/face/certification/ImageRecognition",
  165. method: "post",
  166. data: data,
  167. });
  168. },
  169. faceCertificationIdCardCompareFace(data) {
  170. return myRequest({
  171. url: "/face/certification/idCardCompareFace",
  172. method: "post",
  173. data: data,
  174. });
  175. },
  176. faceCertificationCompareFace(data) {
  177. return myRequest({
  178. url: "/face/certification/CompareFace",
  179. method: "post",
  180. data: data,
  181. });
  182. },
  183. gradeCheckGoodsStudy(data) {
  184. return myRequest({
  185. url: "/grade/grade/checkGoodsStudy",
  186. method: "get",
  187. data: data,
  188. });
  189. },
  190. polyvLiveHistoryChatMsgList(data) {
  191. return myRequest({
  192. url: "/polyv/live/historyChatMsgList",
  193. method: "get",
  194. data: data,
  195. });
  196. },
  197. studyRecordQueryLiveLast(data) {
  198. return myRequest({
  199. url: "/study/record/queryLiveLast",
  200. method: "get",
  201. data: data,
  202. });
  203. },
  204. courseMajorList(data) {
  205. return myRequest({
  206. url: "/course/major/list",
  207. method: "get",
  208. data: data,
  209. });
  210. },
  211. // 学习中心的直播课列表
  212. getgoodsLiveList(data) {
  213. return myRequest({
  214. url: "/goods/getLiveList",
  215. method: "get",
  216. data: data,
  217. compleLoading: true,
  218. });
  219. },
  220. // 查询用户拥有视频+直播商品
  221. listUserVideoLive(data) {
  222. return myRequest({
  223. url: "/goods/listUserVideoLive",
  224. method: "get",
  225. data: data,
  226. compleLoading: true,
  227. });
  228. },
  229. courseoldgoodslist(data) {
  230. return myRequest({
  231. url: "/course/old/goods/list",
  232. method: "get",
  233. data: data,
  234. });
  235. },
  236. reSectionExamList(data) {
  237. return myRequest({
  238. url: "/course/sectionExamList",
  239. method: "get",
  240. data: data,
  241. });
  242. },
  243. // 二建二造检测必修是否学完
  244. checkFinishRequiredCourse(data) {
  245. return myRequest({
  246. url: "/grade/grade/checkFinishRequiredCourse",
  247. method: "get",
  248. data: data,
  249. });
  250. },
  251. // 继教七大员公共课程同步
  252. syncSevenPublicClass(data) {
  253. return myRequest({
  254. url: "/study/record/syncSevenPublicClass",
  255. method: "get",
  256. data: data,
  257. });
  258. },
  259. // 七大员课程学习校验
  260. qCheckIsCanLearn(id) {
  261. return myRequest({
  262. url: "/order/study/check/" + id,
  263. method: "get",
  264. });
  265. },
  266. // 获取skipPort
  267. courseSkipPort(data) {
  268. return myRequest({
  269. url: '/course/skipPort',
  270. method: 'get',
  271. data: data
  272. })
  273. },
  274. // 获取判断课程类型
  275. orderGetViewSign(data) {
  276. return myRequest({
  277. url: '/order/getViewSign/' + data,
  278. method: 'get'
  279. })
  280. },
  281. };