course.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. orderGetViewSign(data) {
  191. return myRequest({
  192. url: "/order/getViewSign/" + data,
  193. method: "get",
  194. });
  195. },
  196. courseSkipPort(data) {
  197. return myRequest({
  198. url: "/course/skipPort",
  199. method: "get",
  200. data: data,
  201. });
  202. },
  203. polyvLiveHistoryChatMsgList(data) {
  204. return myRequest({
  205. url: "/polyv/live/historyChatMsgList",
  206. method: "get",
  207. data: data,
  208. });
  209. },
  210. studyRecordQueryLiveLast(data) {
  211. return myRequest({
  212. url: "/study/record/queryLiveLast",
  213. method: "get",
  214. data: data,
  215. });
  216. },
  217. courseMajorList(data) {
  218. return myRequest({
  219. url: "/course/major/list",
  220. method: "get",
  221. data: data,
  222. });
  223. },
  224. // 学习中心的直播课列表
  225. getgoodsLiveList(data) {
  226. return myRequest({
  227. url: "/goods/getLiveList",
  228. method: "get",
  229. data: data,
  230. compleLoading: true,
  231. });
  232. },
  233. // 查询用户拥有视频+直播商品
  234. listUserVideoLive(data) {
  235. return myRequest({
  236. url: "/goods/listUserVideoLive",
  237. method: "get",
  238. data: data,
  239. compleLoading: true,
  240. });
  241. },
  242. courseoldgoodslist(data) {
  243. return myRequest({
  244. url: "/course/old/goods/list",
  245. method: "get",
  246. data: data,
  247. });
  248. },
  249. reSectionExamList(data) {
  250. return myRequest({
  251. url: "/course/sectionExamList",
  252. method: "get",
  253. data: data,
  254. });
  255. },
  256. // 二建二造检测必修是否学完
  257. checkFinishRequiredCourse(data) {
  258. return myRequest({
  259. url: "/grade/grade/checkFinishRequiredCourse",
  260. method: "get",
  261. data: data,
  262. });
  263. },
  264. // 继教七大员公共课程同步
  265. syncSevenPublicClass(data) {
  266. return myRequest({
  267. url: "/study/record/syncSevenPublicClass",
  268. method: "get",
  269. data: data,
  270. });
  271. },
  272. // 七大员课程学习校验
  273. qCheckIsCanLearn(id) {
  274. return myRequest({
  275. url: "/order/study/check/" + id,
  276. method: "get",
  277. });
  278. },
  279. resetSection(data) {
  280. return myRequest({
  281. url: '/study/record/reset/section',
  282. method: 'post',
  283. data: data
  284. })
  285. },
  286. abnormal(data) {
  287. return myRequest({
  288. url: '/study/record/abnormal',
  289. method: 'post',
  290. data: data
  291. })
  292. },
  293. sys_study_prompt(data) {
  294. return myRequest({
  295. url: '/app/common/prompt',
  296. method: 'get',
  297. noToken: true,
  298. data: data,
  299. })
  300. },
  301. //课程是否允许购买
  302. ordercheckbuy(data) {
  303. return myRequest({
  304. url: "/order/check/buy/" + data,
  305. method: "get",
  306. });
  307. },
  308. };