goods.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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. bankRecord(data) {
  41. return myRequest({
  42. url: '/bank/record',
  43. data:data,
  44. method: 'POST'
  45. })
  46. },
  47. deleteCollectQuestion(data) {
  48. return myRequest({
  49. url: '/collect/question/delete/'+data,
  50. method: 'POST',
  51. })
  52. },
  53. examRecord(data) {
  54. return myRequest({
  55. url: '/exam/record',
  56. data:data,
  57. method: 'POST',
  58. })
  59. },
  60. examWrongRecord(data) {
  61. return myRequest({
  62. url: '/exam/wwrong/record',
  63. data:data,
  64. method: 'POST',
  65. })
  66. },
  67. examRecordEdit(data) {
  68. return myRequest({
  69. url: '/exam/record/edit',
  70. data:data,
  71. method: 'POST',
  72. })
  73. },
  74. goodsBankQuestionNum(data) {
  75. return myRequest({
  76. url: '/goods/bank/questionNum/'+data,
  77. data:data,
  78. method: 'get',
  79. })
  80. },
  81. examReport(data) {
  82. return myRequest({
  83. url: '/exam/record/'+data,
  84. method: 'get',
  85. })
  86. },
  87. examRecordCount(data) {
  88. return myRequest({
  89. url: '/exam/record/count',
  90. data:data,
  91. method: 'GET',
  92. })
  93. },
  94. examaperList(data) {
  95. return myRequest({
  96. url: '/exam/paper/list',
  97. data:data,
  98. method: 'GET',
  99. })
  100. },
  101. examRecordList(data) {
  102. return myRequest({
  103. url: '/exam/record/list',
  104. data:data,
  105. method: 'GET',
  106. })
  107. },
  108. collectQuestionTypeList(data) {
  109. return myRequest({
  110. url: '/collect/question/type_list',
  111. data:data,
  112. method: 'GET',
  113. })
  114. },
  115. wrongRecordTypeQuestionList(data) {
  116. return myRequest({
  117. url: '/exam/wwrong/record/type_question_list',
  118. data:data,
  119. method: 'GET',
  120. })
  121. },
  122. wrongRecordTypeList(data) {
  123. return myRequest({
  124. url: '/exam/wwrong/record/type_list',
  125. data:data,
  126. method: 'GET',
  127. })
  128. },
  129. listGoodsUserQuestion(data) {
  130. return myRequest({
  131. url: '/bank/question/listGoodsUserQuestion',
  132. data:data,
  133. method: 'get'
  134. })
  135. },
  136. getCollectInfo(data) {
  137. return myRequest({
  138. url: '/collect/question/getInfo',
  139. data:data,
  140. method: 'get'
  141. })
  142. },
  143. goodsBankList(data) {
  144. return myRequest({
  145. url: '/app/common/bank/list',
  146. method: 'get',
  147. data:data,
  148. noToken: true
  149. })
  150. },
  151. wrongRecordList(data) {
  152. return myRequest({
  153. url: '/exam/wwrong/record/list',
  154. method: 'get',
  155. data:data
  156. })
  157. },
  158. goodsChapterList(data) {
  159. return myRequest({
  160. url: '/app/common/bank/chapter/list',
  161. method: 'get',
  162. data:data,
  163. noToken: true
  164. })
  165. },
  166. wrongRecordExamQuestionList(data) {
  167. return myRequest({
  168. url: '/exam/wwrong/record/exam_question_list',
  169. method: 'get',
  170. data:data,
  171. })
  172. },
  173. wrongRecordDelete(data) {
  174. return myRequest({
  175. url: '/exam/wwrong/record/delete/question',
  176. method: 'post',
  177. data:data
  178. })
  179. },
  180. examWrongRecordWrongNum(data) {
  181. return myRequest({
  182. url:`/exam/wwrong/record/wrongNum/${data}`,
  183. method: 'get'
  184. })
  185. },
  186. bankExam(data) {
  187. return myRequest({
  188. url: '/bank/exam/'+data,
  189. method: 'get',
  190. })
  191. },
  192. goodsCollectExamList(data) {
  193. return myRequest({
  194. url: '/collect/question/exam_list',
  195. method: 'get',
  196. data:data
  197. })
  198. },
  199. goodsBankDolist(data) {
  200. return myRequest({
  201. url: '/goods/bank/dolist',
  202. method: 'get',
  203. data:data
  204. })
  205. },
  206. goodsChapterDolist(data) {
  207. return myRequest({
  208. url: '/goods/chapter/dolist',
  209. method: 'get',
  210. data:data
  211. })
  212. },
  213. goodsExamDolist(data) {
  214. return myRequest({
  215. url: '/goods/exam/dolist',
  216. method: 'get',
  217. data:data
  218. })
  219. },
  220. goodsCollectList(data) {
  221. return myRequest({
  222. url: '/collect/question/list',
  223. method: 'get',
  224. data:data
  225. })
  226. },
  227. goodsExamList(data) {
  228. return myRequest({
  229. url: '/app/common/bank/exam/list',
  230. method: 'get',
  231. data:data,
  232. noToken: true
  233. })
  234. },
  235. goodsQuestionList(data) {
  236. return myRequest({
  237. url: '/app/common/bank/question/list',
  238. method: 'get',
  239. data:data,
  240. noToken: true
  241. })
  242. },
  243. addCart(data) {
  244. return myRequest({
  245. url: '/base/cart',
  246. method: 'post',
  247. data: data
  248. })
  249. },
  250. cartList(data) {
  251. return myRequest({
  252. url: '/base/cart/list',
  253. method: 'get',
  254. data: data
  255. })
  256. },
  257. questionRecordList(data) {
  258. return myRequest({
  259. url: '/bank/question/record/list',
  260. method: 'get',
  261. data: data
  262. })
  263. },
  264. deleteCart(data) {
  265. return myRequest({
  266. url: '/base/cart/delete/'+data,
  267. method: 'post',
  268. data: data
  269. })
  270. }
  271. }