goods.js 10 KB

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