course.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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. getHandoutList(data) {
  127. return myRequest({
  128. url: '/course/handouts/listByGoods',
  129. method: 'get',
  130. data: data
  131. })
  132. },
  133. courseGoodsRebuildStatus(data) {
  134. return myRequest({
  135. url: '/course/goodsRebuildStatus',
  136. method: 'get',
  137. data: data
  138. })
  139. },
  140. faceCertificationIDCardOCR(data) {
  141. return myRequest({
  142. url: '/face/certification/IDCardOCR',
  143. method: 'post',
  144. data: data
  145. })
  146. },
  147. updateCommitment(data) {
  148. return myRequest({
  149. url: '/base/profile/tp/commitment/upload',
  150. method: 'post',
  151. data: data
  152. })
  153. },
  154. facCertificationImageRecognition(data) {
  155. return myRequest({
  156. url: '/face/certification/ImageRecognition',
  157. method: 'post',
  158. data: data
  159. })
  160. },
  161. faceCertificationIdCardCompareFace(data) {
  162. return myRequest({
  163. url: '/face/certification/idCardCompareFace',
  164. method: 'post',
  165. data: data
  166. })
  167. },
  168. faceCertificationCompareFace(data) {
  169. return myRequest({
  170. url: '/face/certification/CompareFace',
  171. method: 'post',
  172. data: data
  173. })
  174. },
  175. gradeCheckGoodsStudy(data) {
  176. return myRequest({
  177. url: '/grade/grade/checkGoodsStudy',
  178. method: 'get',
  179. data: data
  180. })
  181. },
  182. polyvLiveHistoryChatMsgList(data) {
  183. return myRequest({
  184. url: '/polyv/live/historyChatMsgList',
  185. method: 'get',
  186. data: data
  187. })
  188. },
  189. studyRecordQueryLiveLast(data) {
  190. return myRequest({
  191. url: '/study/record/queryLiveLast',
  192. method: 'get',
  193. data: data
  194. })
  195. },
  196. courseMajorList(data) {
  197. return myRequest({
  198. url: '/course/major/list',
  199. method: 'get',
  200. data: data
  201. })
  202. },
  203. // 学习中心的直播课列表
  204. getgoodsLiveList(data) {
  205. return myRequest({
  206. url: '/goods/getLiveList',
  207. method: 'get',
  208. data: data,
  209. compleLoading: true
  210. })
  211. },
  212. // 查询用户拥有视频+直播商品
  213. listUserVideoLive(data) {
  214. return myRequest({
  215. url: '/goods/listUserVideoLive',
  216. method: 'get',
  217. data: data,
  218. compleLoading: true
  219. })
  220. },
  221. // 查询考前须知
  222. getExamTip(data) {
  223. return myRequest({
  224. url: '/apply/before/know',
  225. method: 'get',
  226. data: data
  227. })
  228. },
  229. reSectionExamList(data) {
  230. return myRequest({
  231. url: '/course/sectionExamList',
  232. method: 'get',
  233. data: data
  234. })
  235. },
  236. // 二建二造检测必修是否学完
  237. checkFinishRequiredCourse(data) {
  238. return myRequest({
  239. url: '/grade/grade/checkFinishRequiredCourse',
  240. method: 'get',
  241. data: data
  242. })
  243. },
  244. }