goods.js 4.8 KB

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