goods.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. import {
  2. myRequest
  3. } from '../request.js'
  4. export default {
  5. goodsList(data) {
  6. return myRequest({
  7. url: '/app/common/goods/list',
  8. method: 'get',
  9. data: data,
  10. noToken: true
  11. })
  12. },
  13. commonGoodsDetail(data) {
  14. return myRequest({
  15. url: '/app/common/goods/'+ data,
  16. method: 'get',
  17. noToken: true
  18. })
  19. },
  20. goodsDetail(data) {
  21. return myRequest({
  22. url: '/goods/'+ data,
  23. method: 'get'
  24. })
  25. },
  26. goodsCourseList(data) {
  27. return myRequest({
  28. url: '/app/common/goods/course/list/'+ data,
  29. method: 'get',
  30. noToken: true
  31. })
  32. },
  33. collectQuestion(data) {
  34. return myRequest({
  35. url: '/collect/question',
  36. data:data,
  37. method: 'POST'
  38. })
  39. },
  40. deleteCollectQuestion(data) {
  41. return myRequest({
  42. url: '/collect/question/delete/'+data,
  43. method: 'POST',
  44. })
  45. },
  46. examRecord(data) {
  47. return myRequest({
  48. url: '/exam/record',
  49. data:data,
  50. method: 'POST',
  51. })
  52. },
  53. examWrongRecord(data) {
  54. return myRequest({
  55. url: '/exam/wwrong/record',
  56. data:data,
  57. method: 'POST',
  58. })
  59. },
  60. examRecordEdit(data) {
  61. return myRequest({
  62. url: '/exam/record/edit',
  63. data:data,
  64. method: 'POST',
  65. })
  66. },
  67. goodsBankQuestionNum(data) {
  68. return myRequest({
  69. url: '/goods/bank/questionNum/'+data,
  70. data:data,
  71. method: 'get',
  72. })
  73. },
  74. examReport(data) {
  75. return myRequest({
  76. url: '/exam/record/'+data,
  77. method: 'get',
  78. })
  79. },
  80. examRecordCount(data) {
  81. return myRequest({
  82. url: '/exam/record/count',
  83. data:data,
  84. method: 'GET',
  85. })
  86. },
  87. examaperList(data) {
  88. return myRequest({
  89. url: '/exam/paper/list',
  90. data:data,
  91. method: 'GET',
  92. })
  93. },
  94. examRecordList(data) {
  95. return myRequest({
  96. url: '/exam/record/list',
  97. data:data,
  98. method: 'GET',
  99. })
  100. },
  101. collectQuestionTypeList(data) {
  102. return myRequest({
  103. url: '/collect/question/type_list',
  104. data:data,
  105. method: 'GET',
  106. })
  107. },
  108. wrongRecordTypeQuestionList(data) {
  109. return myRequest({
  110. url: '/exam/wwrong/record/type_question_list',
  111. data:data,
  112. method: 'GET',
  113. })
  114. },
  115. wrongRecordTypeList(data) {
  116. return myRequest({
  117. url: '/exam/wwrong/record/type_list',
  118. data:data,
  119. method: 'GET',
  120. })
  121. },
  122. listGoodsUserQuestion(data) {
  123. return myRequest({
  124. url: '/bank/question/listGoodsUserQuestion',
  125. data:data,
  126. method: 'get'
  127. })
  128. },
  129. getCollectInfo(data) {
  130. return myRequest({
  131. url: '/collect/question/getInfo',
  132. data:data,
  133. method: 'get'
  134. })
  135. },
  136. goodsBankList(data) {
  137. return myRequest({
  138. url: '/app/common/bank/list',
  139. method: 'get',
  140. data:data,
  141. noToken: true
  142. })
  143. },
  144. wrongRecordList(data) {
  145. return myRequest({
  146. url: '/exam/wwrong/record/list',
  147. method: 'get',
  148. data:data
  149. })
  150. },
  151. goodsChapterList(data) {
  152. return myRequest({
  153. url: '/app/common/bank/chapter/list',
  154. method: 'get',
  155. data:data,
  156. noToken: true
  157. })
  158. },
  159. wrongRecordExamQuestionList(data) {
  160. return myRequest({
  161. url: '/exam/wwrong/record/exam_question_list',
  162. method: 'get',
  163. data:data,
  164. })
  165. },
  166. wrongRecordDelete(data) {
  167. return myRequest({
  168. url: '/exam/wwrong/record/delete/question',
  169. method: 'post',
  170. data:data
  171. })
  172. },
  173. bankExam(data) {
  174. return myRequest({
  175. url: '/bank/exam/'+data,
  176. method: 'get',
  177. })
  178. },
  179. goodsCollectExamList(data) {
  180. return myRequest({
  181. url: '/collect/question/exam_list',
  182. method: 'get',
  183. data:data
  184. })
  185. },
  186. goodsBankDolist(data) {
  187. return myRequest({
  188. url: '/goods/bank/dolist',
  189. method: 'get',
  190. data:data
  191. })
  192. },
  193. goodsChapterDolist(data) {
  194. return myRequest({
  195. url: '/goods/chapter/dolist',
  196. method: 'get',
  197. data:data
  198. })
  199. },
  200. goodsExamDolist(data) {
  201. return myRequest({
  202. url: '/goods/exam/dolist',
  203. method: 'get',
  204. data:data
  205. })
  206. },
  207. goodsCollectList(data) {
  208. return myRequest({
  209. url: '/collect/question/list',
  210. method: 'get',
  211. data:data
  212. })
  213. },
  214. goodsExamList(data) {
  215. return myRequest({
  216. url: '/app/common/bank/exam/list',
  217. method: 'get',
  218. data:data,
  219. noToken: true
  220. })
  221. },
  222. goodsQuestionList(data) {
  223. return myRequest({
  224. url: '/app/common/bank/question/list',
  225. method: 'get',
  226. data:data,
  227. noToken: true
  228. })
  229. },
  230. addCart(data) {
  231. return myRequest({
  232. url: '/base/cart',
  233. method: 'post',
  234. data: data
  235. })
  236. },
  237. cartList(data) {
  238. return myRequest({
  239. url: '/base/cart/list',
  240. method: 'get',
  241. data: data
  242. })
  243. },
  244. questionRecordList(data) {
  245. return myRequest({
  246. url: '/bank/question/record/list',
  247. method: 'get',
  248. data: data
  249. })
  250. },
  251. deleteCart(data) {
  252. return myRequest({
  253. url: '/base/cart/delete/'+data,
  254. method: 'post',
  255. data: data
  256. })
  257. }
  258. }