goods.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. listGoodsUserQuestion(data) {
  41. return myRequest({
  42. url: '/bank/question/listGoodsUserQuestion',
  43. data:data,
  44. method: 'get'
  45. })
  46. },
  47. getCollectInfo(data) {
  48. return myRequest({
  49. url: '/collect/question/getInfo',
  50. data:data,
  51. method: 'get'
  52. })
  53. },
  54. goodsBankList(data) {
  55. return myRequest({
  56. url: '/app/common/bank/list',
  57. method: 'get',
  58. data:data,
  59. noToken: true
  60. })
  61. },
  62. goodsChapterList(data) {
  63. return myRequest({
  64. url: '/app/common/bank/chapter/list',
  65. method: 'get',
  66. data:data,
  67. noToken: true
  68. })
  69. },
  70. goodsCollectExamList(data) {
  71. return myRequest({
  72. url: '/collect/question/exam_list',
  73. method: 'get',
  74. data:data
  75. })
  76. },
  77. goodsCollectList(data) {
  78. return myRequest({
  79. url: '/collect/question/list',
  80. method: 'get',
  81. data:data
  82. })
  83. },
  84. goodsExamList(data) {
  85. return myRequest({
  86. url: '/app/common/bank/exam/list',
  87. method: 'get',
  88. data:data,
  89. noToken: true
  90. })
  91. },
  92. goodsQuestionList(data) {
  93. return myRequest({
  94. url: '/app/common/bank/question/list',
  95. method: 'get',
  96. data:data,
  97. noToken: true
  98. })
  99. },
  100. addCart(data) {
  101. return myRequest({
  102. url: '/base/cart',
  103. method: 'post',
  104. data: data
  105. })
  106. },
  107. cartList(data) {
  108. return myRequest({
  109. url: '/base/cart/list',
  110. method: 'get',
  111. data: data
  112. })
  113. },
  114. questionRecordList(data) {
  115. return myRequest({
  116. url: '/bank/question/record/list',
  117. method: 'get',
  118. data: data
  119. })
  120. },
  121. deleteCart(data) {
  122. return myRequest({
  123. url: '/base/cart/delete/'+data,
  124. method: 'post',
  125. data: data
  126. })
  127. }
  128. }