goods.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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. goodsDetail(data) {
  14. return myRequest({
  15. url: '/app/common/goods/'+ data,
  16. method: 'get',
  17. noToken: true
  18. })
  19. },
  20. goodsCourseList(data) {
  21. return myRequest({
  22. url: '/app/common/goods/course/list/'+ data,
  23. method: 'get',
  24. noToken: true
  25. })
  26. },
  27. collectQuestion(data) {
  28. return myRequest({
  29. url: '/collect/question',
  30. data:data,
  31. method: 'POST'
  32. })
  33. },
  34. deleteCollectQuestion(data) {
  35. return myRequest({
  36. url: '/collect/question/delete/'+data,
  37. method: 'POST',
  38. })
  39. },
  40. examRecord(data) {
  41. return myRequest({
  42. url: '/exam/record',
  43. data:data,
  44. method: 'POST',
  45. })
  46. },
  47. examWrongRecord(data) {
  48. return myRequest({
  49. url: '/exam/wwrong/record',
  50. data:data,
  51. method: 'POST',
  52. })
  53. },
  54. examRecordEdit(data) {
  55. return myRequest({
  56. url: '/exam/record/edit',
  57. data:data,
  58. method: 'POST',
  59. })
  60. },
  61. examaperList(data) {
  62. return myRequest({
  63. url: '/exam/paper/list',
  64. data:data,
  65. method: 'GET',
  66. })
  67. },
  68. examRecordList(data) {
  69. return myRequest({
  70. url: '/exam/record/list',
  71. data:data,
  72. method: 'GET',
  73. })
  74. },
  75. collectQuestionTypeList(data) {
  76. return myRequest({
  77. url: '/collect/question/type_list',
  78. data:data,
  79. method: 'GET',
  80. })
  81. },
  82. wrongRecordTypeQuestionList(data) {
  83. return myRequest({
  84. url: '/exam/wwrong/record/type_question_list',
  85. data:data,
  86. method: 'GET',
  87. })
  88. },
  89. wrongRecordTypeList(data) {
  90. return myRequest({
  91. url: '/exam/wwrong/record/type_list',
  92. data:data,
  93. method: 'GET',
  94. })
  95. },
  96. listGoodsUserQuestion(data) {
  97. return myRequest({
  98. url: '/bank/question/listGoodsUserQuestion',
  99. data:data,
  100. method: 'get'
  101. })
  102. },
  103. getCollectInfo(data) {
  104. return myRequest({
  105. url: '/collect/question/getInfo',
  106. data:data,
  107. method: 'get'
  108. })
  109. },
  110. goodsBankList(data) {
  111. return myRequest({
  112. url: '/app/common/bank/list',
  113. method: 'get',
  114. data:data,
  115. noToken: true
  116. })
  117. },
  118. wrongRecordList(data) {
  119. return myRequest({
  120. url: '/exam/wwrong/record/list',
  121. method: 'get',
  122. data:data
  123. })
  124. },
  125. goodsChapterList(data) {
  126. return myRequest({
  127. url: '/app/common/bank/chapter/list',
  128. method: 'get',
  129. data:data,
  130. noToken: true
  131. })
  132. },
  133. wrongRecordExamQuestionList(data) {
  134. return myRequest({
  135. url: '/exam/wwrong/record/exam_question_list',
  136. method: 'get',
  137. data:data,
  138. })
  139. },
  140. wrongRecordDelete(data) {
  141. return myRequest({
  142. url: '/exam/wwrong/record/delete/question',
  143. method: 'post',
  144. data:data
  145. })
  146. },
  147. bankExam(data) {
  148. return myRequest({
  149. url: '/bank/exam/'+data,
  150. method: 'get',
  151. })
  152. },
  153. goodsCollectExamList(data) {
  154. return myRequest({
  155. url: '/collect/question/exam_list',
  156. method: 'get',
  157. data:data
  158. })
  159. },
  160. goodsCollectList(data) {
  161. return myRequest({
  162. url: '/collect/question/list',
  163. method: 'get',
  164. data:data
  165. })
  166. },
  167. goodsExamList(data) {
  168. return myRequest({
  169. url: '/app/common/bank/exam/list',
  170. method: 'get',
  171. data:data,
  172. noToken: true
  173. })
  174. },
  175. goodsQuestionList(data) {
  176. return myRequest({
  177. url: '/app/common/bank/question/list',
  178. method: 'get',
  179. data:data,
  180. noToken: true
  181. })
  182. },
  183. addCart(data) {
  184. return myRequest({
  185. url: '/base/cart',
  186. method: 'post',
  187. data: data
  188. })
  189. },
  190. cartList(data) {
  191. return myRequest({
  192. url: '/base/cart/list',
  193. method: 'get',
  194. data: data
  195. })
  196. },
  197. questionRecordList(data) {
  198. return myRequest({
  199. url: '/bank/question/record/list',
  200. method: 'get',
  201. data: data
  202. })
  203. },
  204. deleteCart(data) {
  205. return myRequest({
  206. url: '/base/cart/delete/'+data,
  207. method: 'post',
  208. data: data
  209. })
  210. }
  211. }