You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
3.2 KiB

2 weeks ago
  1. "use strict";
  2. const uni_modules_uviewPlus_index = require("../uni_modules/uview-plus/index.js");
  3. const loginApi = (data) => uni_modules_uviewPlus_index.http.post("token/login", data);
  4. const questbanktypeApi = (params = {}) => uni_modules_uviewPlus_index.http.get("idex/questbanktype/list", { params });
  5. const startQuestionApi = (data) => uni_modules_uviewPlus_index.http.post("questionBank/startQuestion", data);
  6. const submitAnswerResultApi = (data) => uni_modules_uviewPlus_index.http.post("questionBank/submitAnswerResult", data);
  7. const getQuestionApi = (data) => uni_modules_uviewPlus_index.http.post("questionBank/getQuestion", data);
  8. const questionCommentAdd = (data) => uni_modules_uviewPlus_index.http.post("questionComment/add", data);
  9. const indexNoticeApi = (subject) => uni_modules_uviewPlus_index.http.get("idex/notice-" + subject);
  10. const indexAdApi = (subject) => uni_modules_uviewPlus_index.http.get("idex/ad-" + subject);
  11. const indexAdCount = (data) => uni_modules_uviewPlus_index.http.get(`idex/count-${data.subject}-${data.carType}`, { params: { city: data.city } });
  12. const examProcessInfo = (subject) => uni_modules_uviewPlus_index.http.get(`idex/examProcessInfo-${subject}`);
  13. const columnPid = (pid, city) => uni_modules_uviewPlus_index.http.get(`idex/column-${pid}-${city}`, { params: { city } });
  14. const columnFid = (data) => uni_modules_uviewPlus_index.http.get(`idex/${data.type}-column-${data.stepType}-${data.carType}`, { params: { city: data.city } });
  15. const questionWrongColle = (data) => uni_modules_uviewPlus_index.http.post("questionWrong/dealCollection", data);
  16. const deleteWrongOrCol = (data) => uni_modules_uviewPlus_index.http.post("questionWrong/deleteWrongOrCol", data);
  17. const myWrongQuestion = (data) => uni_modules_uviewPlus_index.http.post("questionWrong/myWrongQuestion", data);
  18. const questionSubmenu = (data) => uni_modules_uviewPlus_index.http.post("questionWrong/submenu", data);
  19. const findQuestionList = (data) => uni_modules_uviewPlus_index.http.post("questionWrong/findQuestionList", data);
  20. const questionExam = (data) => uni_modules_uviewPlus_index.http.get(`questionExam/exam-${data.stepType}-${data.carType}`);
  21. const startExam = (data) => uni_modules_uviewPlus_index.http.post("questionExam/startExam", data);
  22. const startExamDo = (data) => uni_modules_uviewPlus_index.http.post("questionExam/saveExam.do", data);
  23. const idexExam = (data) => uni_modules_uviewPlus_index.http.get(`idex/exam-${data.stepType}-${data.carType}`);
  24. exports.columnFid = columnFid;
  25. exports.columnPid = columnPid;
  26. exports.deleteWrongOrCol = deleteWrongOrCol;
  27. exports.examProcessInfo = examProcessInfo;
  28. exports.findQuestionList = findQuestionList;
  29. exports.getQuestionApi = getQuestionApi;
  30. exports.idexExam = idexExam;
  31. exports.indexAdApi = indexAdApi;
  32. exports.indexAdCount = indexAdCount;
  33. exports.indexNoticeApi = indexNoticeApi;
  34. exports.loginApi = loginApi;
  35. exports.myWrongQuestion = myWrongQuestion;
  36. exports.questbanktypeApi = questbanktypeApi;
  37. exports.questionCommentAdd = questionCommentAdd;
  38. exports.questionExam = questionExam;
  39. exports.questionSubmenu = questionSubmenu;
  40. exports.questionWrongColle = questionWrongColle;
  41. exports.startExam = startExam;
  42. exports.startExamDo = startExamDo;
  43. exports.startQuestionApi = startQuestionApi;
  44. exports.submitAnswerResultApi = submitAnswerResultApi;