goods.js 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  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. actGoodsList(data) {
  14. return myRequest({
  15. url: '/app/common/goods/share/list/' + data,
  16. method: 'get',
  17. noToken: true
  18. })
  19. },
  20. fxGoodsList(data) {
  21. return myRequest({
  22. url: '/app/common/distribution/goods/list/' + data,
  23. method: 'get',
  24. noToken: true
  25. })
  26. },
  27. commonSystemTime() {
  28. return myRequest({
  29. url: '/app/common/system/dict/data/sys/time',
  30. method: 'get',
  31. noToken: true
  32. })
  33. },
  34. commonGoodsDetail(data) {
  35. return myRequest({
  36. url: '/app/common/goods/' + data,
  37. method: 'get',
  38. noToken: true
  39. })
  40. },
  41. // 校验商品状态
  42. checkGoodsStatus(data) {
  43. return myRequest({
  44. url: '/goods/check/goods/status',
  45. method: 'post',
  46. data
  47. })
  48. },
  49. goodsBank(data) {
  50. return myRequest({
  51. url: '/goods/bank/list',
  52. method: 'get',
  53. data: data,
  54. })
  55. },
  56. // goodsBank(data) {
  57. // return myRequest({
  58. // url: '/goods/bank/list',
  59. // method: 'get',
  60. // data: data,
  61. // })
  62. // },
  63. bankExamExamList(data) {
  64. return myRequest({
  65. url: '/bank/exam/exam/list',
  66. method: 'get',
  67. data: data,
  68. })
  69. },
  70. goodsDetail(data) {
  71. return myRequest({
  72. url: '/goods/' + data,
  73. method: 'get'
  74. })
  75. },
  76. goodsCourseList(data) {
  77. return myRequest({
  78. url: '/app/common/goods/course/list/' + data,
  79. method: 'get',
  80. noToken: true
  81. })
  82. },
  83. // 获取双师制
  84. getGoodsCourseTeacher(data) {
  85. return myRequest({
  86. url: '/app/common/course/teacher/list',
  87. method: 'get',
  88. data: data,
  89. noToken: true
  90. })
  91. },
  92. collectQuestion(data) {
  93. return myRequest({
  94. url: '/collect/question',
  95. data: data,
  96. method: 'POST'
  97. })
  98. },
  99. bankRecordEdit(data) {
  100. return myRequest({
  101. url: '/bank/record/edit',
  102. data: data,
  103. method: 'POST'
  104. })
  105. },
  106. bankReportData(data) {
  107. return myRequest({
  108. url: '/bank/record/' + data,
  109. method: 'get',
  110. })
  111. },
  112. deleteCollectQuestion(data) {
  113. return myRequest({
  114. url: '/collect/question/delete/' + data,
  115. method: 'POST',
  116. })
  117. },
  118. examRecord(data) {
  119. return myRequest({
  120. url: '/exam/record',
  121. data: data,
  122. method: 'POST',
  123. })
  124. },
  125. examRecordRightList(data) {
  126. return myRequest({
  127. url: '/exam/record/right_list',
  128. data: data,
  129. method: 'GET',
  130. })
  131. },
  132. examRecordWrongList(data) {
  133. return myRequest({
  134. url: '/exam/record/wrong_list',
  135. data: data,
  136. method: 'GET',
  137. })
  138. },
  139. bankRecord(data) {
  140. return myRequest({
  141. url: '/bank/record',
  142. data: data,
  143. method: 'POST',
  144. })
  145. },
  146. examWrongRecord(data) {
  147. return myRequest({
  148. url: '/exam/wwrong/record',
  149. data: data,
  150. method: 'POST',
  151. })
  152. },
  153. examRecordEdit(data) {
  154. return myRequest({
  155. url: '/exam/record/edit',
  156. data: data,
  157. method: 'POST',
  158. })
  159. },
  160. goodsBankQuestionNum(data) {
  161. return myRequest({
  162. url: '/goods/bank/questionNum/' + data,
  163. method: 'get',
  164. })
  165. },
  166. bankExamNextExam(data) {
  167. return myRequest({
  168. url: '/bank/exam/nextExam',
  169. data: data,
  170. method: 'get',
  171. })
  172. },
  173. examReport(data) {
  174. return myRequest({
  175. url: '/exam/record/' + data,
  176. method: 'get',
  177. })
  178. },
  179. // 随机练习
  180. bankTempReport(data) {
  181. return myRequest({
  182. url: '/bank/exam/temp/' + data,
  183. method: 'get',
  184. })
  185. },
  186. examRecordCount(data) {
  187. return myRequest({
  188. url: '/exam/record/count',
  189. data: data,
  190. method: 'GET',
  191. })
  192. },
  193. examaperList(data) {
  194. return myRequest({
  195. url: '/exam/paper/list',
  196. data: data,
  197. method: 'GET',
  198. })
  199. },
  200. examRecordList(data) {
  201. return myRequest({
  202. url: '/exam/record/list',
  203. data: data,
  204. method: 'GET',
  205. })
  206. },
  207. examRecordGroupList(data) {
  208. return myRequest({
  209. url: '/exam/record/group_list',
  210. data: data,
  211. method: 'GET',
  212. })
  213. },
  214. collectQuestionTypeList(data) {
  215. return myRequest({
  216. url: '/collect/question/type_list',
  217. data: data,
  218. method: 'GET',
  219. })
  220. },
  221. wrongRecordTypeQuestionList(data) {
  222. return myRequest({
  223. url: '/exam/wwrong/record/type_question_list',
  224. data: data,
  225. method: 'GET',
  226. })
  227. },
  228. bankRecordDoNum(data) {
  229. return myRequest({
  230. url: '/bank/record/doNum',
  231. data: data,
  232. method: 'GET',
  233. })
  234. },
  235. wrongRecordTypeList(data) {
  236. return myRequest({
  237. url: '/exam/wwrong/record/type_list',
  238. data: data,
  239. method: 'GET',
  240. })
  241. },
  242. listGoodsUserQuestion(data) {
  243. return myRequest({
  244. url: '/bank/question/listGoodsUserQuestion',
  245. data: data,
  246. method: 'get'
  247. })
  248. },
  249. getCollectInfo(data) {
  250. return myRequest({
  251. url: '/collect/question/getInfo',
  252. data: data,
  253. method: 'get'
  254. })
  255. },
  256. goodsBankList(data) {
  257. return myRequest({
  258. url: '/app/common/bank/list',
  259. method: 'get',
  260. data: data,
  261. noToken: true
  262. })
  263. },
  264. wrongRecordList(data) {
  265. return myRequest({
  266. url: '/exam/wwrong/record/list',
  267. method: 'get',
  268. data: data
  269. })
  270. },
  271. goodsChapterList(data) {
  272. return myRequest({
  273. url: '/app/common/bank/chapter/list',
  274. method: 'get',
  275. data: data,
  276. noToken: true
  277. })
  278. },
  279. wrongRecordExamQuestionList(data) {
  280. return myRequest({
  281. url: '/exam/wwrong/record/exam_question_list',
  282. method: 'get',
  283. data: data,
  284. })
  285. },
  286. wrongRecordDelete(data) {
  287. return myRequest({
  288. url: '/exam/wwrong/record/delete/question',
  289. method: 'post',
  290. data: data
  291. })
  292. },
  293. examWrongRecordWrongNum(data) {
  294. return myRequest({
  295. url: `/exam/wwrong/record/wrongNum`,
  296. method: 'get',
  297. data
  298. })
  299. },
  300. collectQuestionExamQuestionList(data) {
  301. return myRequest({
  302. url: `/collect/question/exam_question_list`,
  303. method: 'get',
  304. data: data
  305. })
  306. },
  307. bankExam(data) {
  308. return myRequest({
  309. url: '/bank/exam/' + data,
  310. method: 'get',
  311. })
  312. },
  313. goodsCollectExamList(data) {
  314. return myRequest({
  315. url: '/collect/question/exam_list',
  316. method: 'get',
  317. data: data
  318. })
  319. },
  320. goodsBankDolist(data) {
  321. return myRequest({
  322. url: '/goods/bank/dolist',
  323. method: 'get',
  324. data: data
  325. })
  326. },
  327. goodsChapterDolist(data) {
  328. return myRequest({
  329. url: '/goods/chapter/dolist',
  330. method: 'get',
  331. data: data
  332. })
  333. },
  334. goodsExamDolist(data) {
  335. return myRequest({
  336. url: '/goods/exam/dolist',
  337. method: 'get',
  338. data: data
  339. })
  340. },
  341. goodsCollectList(data) {
  342. return myRequest({
  343. url: '/collect/question/list',
  344. method: 'get',
  345. data: data
  346. })
  347. },
  348. goodsExamList(data) {
  349. return myRequest({
  350. url: '/app/common/bank/exam/list',
  351. method: 'get',
  352. data: data,
  353. noToken: true
  354. })
  355. },
  356. studyRecordMenuAllList(data) {
  357. return myRequest({
  358. url: '/study/record/menuAllList',
  359. method: 'get',
  360. data: data
  361. })
  362. },
  363. goodsTodayStudySectionNum(data) {
  364. return myRequest({
  365. url: '/goods/todayStudySectionNum',
  366. method: 'get',
  367. data: data
  368. })
  369. },
  370. goodsQuestionList(data) {
  371. return myRequest({
  372. url: '/app/common/bank/question/list',
  373. method: 'get',
  374. data: data,
  375. noToken: true
  376. })
  377. },
  378. // 随机组题题目列表
  379. goodsRandomQuestionList(data) {
  380. return myRequest({
  381. url: '/bank/exam/simulate',
  382. method: 'post',
  383. data
  384. })
  385. },
  386. // 随时练习解析
  387. goodsQuestionTempList(data) {
  388. return myRequest({
  389. url: '/app/common/bank/question/temp/list',
  390. method: 'get',
  391. data: data,
  392. noToken: true
  393. })
  394. },
  395. addCart(data) {
  396. return myRequest({
  397. url: '/base/cart',
  398. method: 'post',
  399. data: data
  400. })
  401. },
  402. cartList(data) {
  403. return myRequest({
  404. url: '/base/cart/list',
  405. method: 'get',
  406. data: data
  407. })
  408. },
  409. questionRecordList(data) {
  410. return myRequest({
  411. url: '/bank/question/record/list',
  412. method: 'get',
  413. data: data
  414. })
  415. },
  416. deleteCart(data) {
  417. return myRequest({
  418. url: '/base/cart/delete/' + data,
  419. method: 'post'
  420. })
  421. },
  422. bankQuestionListFreeGoodsList(data) {
  423. return myRequest({
  424. url: '/bank/question/listFreeGoodsList',
  425. method: 'get',
  426. data: data
  427. })
  428. },
  429. appCommonGoodsCourseModuleFreeExamList(data) {
  430. return myRequest({
  431. url: '/app/common/goods/course/moduleFreeExamList/' + data,
  432. method: 'get',
  433. noToken: true
  434. })
  435. },
  436. goodsLivingSectionList(data) {
  437. return myRequest({
  438. url: '/goods/livingSectionList',
  439. method: 'get',
  440. data: data
  441. })
  442. },
  443. // 查询用户拥有免费+自购题库商品
  444. listUserFreeUnionBuyGoodsList(data) {
  445. return myRequest({
  446. url: '/bank/question/listUserFreeUnionBuyGoodsList',
  447. method: 'get',
  448. data: data
  449. })
  450. },
  451. }