goods.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. goodsCollectExamList(data) {
  148. return myRequest({
  149. url: '/collect/question/exam_list',
  150. method: 'get',
  151. data:data
  152. })
  153. },
  154. goodsCollectList(data) {
  155. return myRequest({
  156. url: '/collect/question/list',
  157. method: 'get',
  158. data:data
  159. })
  160. },
  161. goodsExamList(data) {
  162. return myRequest({
  163. url: '/app/common/bank/exam/list',
  164. method: 'get',
  165. data:data,
  166. noToken: true
  167. })
  168. },
  169. goodsQuestionList(data) {
  170. return myRequest({
  171. url: '/app/common/bank/question/list',
  172. method: 'get',
  173. data:data,
  174. noToken: true
  175. })
  176. },
  177. addCart(data) {
  178. return myRequest({
  179. url: '/base/cart',
  180. method: 'post',
  181. data: data
  182. })
  183. },
  184. cartList(data) {
  185. return myRequest({
  186. url: '/base/cart/list',
  187. method: 'get',
  188. data: data
  189. })
  190. },
  191. questionRecordList(data) {
  192. return myRequest({
  193. url: '/bank/question/record/list',
  194. method: 'get',
  195. data: data
  196. })
  197. },
  198. deleteCart(data) {
  199. return myRequest({
  200. url: '/base/cart/delete/'+data,
  201. method: 'post',
  202. data: data
  203. })
  204. }
  205. }