goods.js 5.4 KB

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