goods.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. listGoodsUserQuestion(data) {
  83. return myRequest({
  84. url: '/bank/question/listGoodsUserQuestion',
  85. data:data,
  86. method: 'get'
  87. })
  88. },
  89. getCollectInfo(data) {
  90. return myRequest({
  91. url: '/collect/question/getInfo',
  92. data:data,
  93. method: 'get'
  94. })
  95. },
  96. goodsBankList(data) {
  97. return myRequest({
  98. url: '/app/common/bank/list',
  99. method: 'get',
  100. data:data,
  101. noToken: true
  102. })
  103. },
  104. wrongRecordList(data) {
  105. return myRequest({
  106. url: '/exam/wwrong/record/list',
  107. method: 'get',
  108. data:data
  109. })
  110. },
  111. goodsChapterList(data) {
  112. return myRequest({
  113. url: '/app/common/bank/chapter/list',
  114. method: 'get',
  115. data:data,
  116. noToken: true
  117. })
  118. },
  119. goodsCollectExamList(data) {
  120. return myRequest({
  121. url: '/collect/question/exam_list',
  122. method: 'get',
  123. data:data
  124. })
  125. },
  126. goodsCollectList(data) {
  127. return myRequest({
  128. url: '/collect/question/list',
  129. method: 'get',
  130. data:data
  131. })
  132. },
  133. goodsExamList(data) {
  134. return myRequest({
  135. url: '/app/common/bank/exam/list',
  136. method: 'get',
  137. data:data,
  138. noToken: true
  139. })
  140. },
  141. goodsQuestionList(data) {
  142. return myRequest({
  143. url: '/app/common/bank/question/list',
  144. method: 'get',
  145. data:data,
  146. noToken: true
  147. })
  148. },
  149. addCart(data) {
  150. return myRequest({
  151. url: '/base/cart',
  152. method: 'post',
  153. data: data
  154. })
  155. },
  156. cartList(data) {
  157. return myRequest({
  158. url: '/base/cart/list',
  159. method: 'get',
  160. data: data
  161. })
  162. },
  163. questionRecordList(data) {
  164. return myRequest({
  165. url: '/bank/question/record/list',
  166. method: 'get',
  167. data: data
  168. })
  169. },
  170. deleteCart(data) {
  171. return myRequest({
  172. url: '/base/cart/delete/'+data,
  173. method: 'post',
  174. data: data
  175. })
  176. }
  177. }