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.

67 lines
2.9 KiB

1 week ago
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const config_api = require("../../../config/api.js");
  4. const store_modules_car = require("../../../store/modules/car.js");
  5. if (!Array) {
  6. const _easycom_up_navbar2 = common_vendor.resolveComponent("up-navbar");
  7. const _easycom_oneBtn2 = common_vendor.resolveComponent("oneBtn");
  8. (_easycom_up_navbar2 + _easycom_oneBtn2)();
  9. }
  10. const _easycom_up_navbar = () => "../../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
  11. const _easycom_oneBtn = () => "../../../components/oneBtn/oneBtn.js";
  12. if (!Math) {
  13. (_easycom_up_navbar + _easycom_oneBtn)();
  14. }
  15. const _sfc_main = {
  16. __name: "examSubjiect1",
  17. setup(__props) {
  18. var _a;
  19. let usecarStore = store_modules_car.carStore();
  20. let phone = (_a = common_vendor.index.getStorageSync("loginInfo")) == null ? void 0 : _a.phone;
  21. let info = common_vendor.ref({});
  22. async function questionExamFn() {
  23. const { data: res } = await config_api.questionExam({ stepType: usecarStore.carInfo.stepType, carType: usecarStore.carInfo.carType });
  24. let arr = res.useTime.split(":");
  25. res.useTimes = arr[0] + ":" + arr[1].substring(0, 2);
  26. info.value = res;
  27. }
  28. common_vendor.onShow(() => {
  29. questionExamFn();
  30. });
  31. return (_ctx, _cache) => {
  32. return common_vendor.e({
  33. a: common_vendor.o(($event) => _ctx.$goPage("/pages/exercises/examSubjiect1/examResultsOne")),
  34. b: common_vendor.p({
  35. leftText: " ",
  36. leftIconColor: "#fff",
  37. safeAreaInsetTop: true,
  38. autoBack: true,
  39. title: "我的学习",
  40. bgColor: "transparent",
  41. titleStyle: {
  42. color: "#fff"
  43. }
  44. }),
  45. c: common_vendor.t(common_vendor.unref(phone)),
  46. d: common_vendor.unref(info).highScore
  47. }, common_vendor.unref(info).highScore ? {
  48. e: common_vendor.t(common_vendor.unref(info).highScore),
  49. f: common_vendor.t(common_vendor.unref(info).useTimes)
  50. } : {}, {
  51. g: common_vendor.t(common_vendor.unref(usecarStore).carInfo.carTypeName),
  52. h: common_vendor.t(common_vendor.unref(info).totalExamTime),
  53. i: common_vendor.t(common_vendor.unref(info).totalCount),
  54. j: common_vendor.t(common_vendor.unref(info).score),
  55. k: common_vendor.t(common_vendor.unref(info).funllScore),
  56. l: common_vendor.t(common_vendor.unref(info).questionRule),
  57. m: common_vendor.t(common_vendor.unref(info).deductPointsRule),
  58. n: common_vendor.o(($event) => _ctx.$goPage(`/pages/exercises/brushQuestions/examQuestions?totalExamTime=${common_vendor.unref(info).totalExamTime}&score=${common_vendor.unref(info).score}`)),
  59. o: common_vendor.p({
  60. text: "开始模拟考试"
  61. })
  62. });
  63. };
  64. }
  65. };
  66. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1b9bdd0a"]]);
  67. wx.createPage(MiniProgramPage);