goods.js 5.1 KB

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