goods.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. examWrongRecordWrongNum(data) {
  174. return myRequest({
  175. url:`/exam/wwrong/record/wrongNum/${data}`,
  176. method: 'get'
  177. })
  178. },
  179. bankExam(data) {
  180. return myRequest({
  181. url: '/bank/exam/'+data,
  182. method: 'get',
  183. })
  184. },
  185. goodsCollectExamList(data) {
  186. return myRequest({
  187. url: '/collect/question/exam_list',
  188. method: 'get',
  189. data:data
  190. })
  191. },
  192. goodsBankDolist(data) {
  193. return myRequest({
  194. url: '/goods/bank/dolist',
  195. method: 'get',
  196. data:data
  197. })
  198. },
  199. goodsChapterDolist(data) {
  200. return myRequest({
  201. url: '/goods/chapter/dolist',
  202. method: 'get',
  203. data:data
  204. })
  205. },
  206. goodsExamDolist(data) {
  207. return myRequest({
  208. url: '/goods/exam/dolist',
  209. method: 'get',
  210. data:data
  211. })
  212. },
  213. goodsCollectList(data) {
  214. return myRequest({
  215. url: '/collect/question/list',
  216. method: 'get',
  217. data:data
  218. })
  219. },
  220. goodsExamList(data) {
  221. return myRequest({
  222. url: '/app/common/bank/exam/list',
  223. method: 'get',
  224. data:data,
  225. noToken: true
  226. })
  227. },
  228. goodsQuestionList(data) {
  229. return myRequest({
  230. url: '/app/common/bank/question/list',
  231. method: 'get',
  232. data:data,
  233. noToken: true
  234. })
  235. },
  236. addCart(data) {
  237. return myRequest({
  238. url: '/base/cart',
  239. method: 'post',
  240. data: data
  241. })
  242. },
  243. cartList(data) {
  244. return myRequest({
  245. url: '/base/cart/list',
  246. method: 'get',
  247. data: data
  248. })
  249. },
  250. questionRecordList(data) {
  251. return myRequest({
  252. url: '/bank/question/record/list',
  253. method: 'get',
  254. data: data
  255. })
  256. },
  257. deleteCart(data) {
  258. return myRequest({
  259. url: '/base/cart/delete/'+data,
  260. method: 'post',
  261. data: data
  262. })
  263. }
  264. }