goods.js 3.8 KB

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