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. 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. 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. }