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
67 lines
2.9 KiB
"use strict";
|
|
const common_vendor = require("../../../common/vendor.js");
|
|
const config_api = require("../../../config/api.js");
|
|
const store_modules_car = require("../../../store/modules/car.js");
|
|
if (!Array) {
|
|
const _easycom_up_navbar2 = common_vendor.resolveComponent("up-navbar");
|
|
const _easycom_oneBtn2 = common_vendor.resolveComponent("oneBtn");
|
|
(_easycom_up_navbar2 + _easycom_oneBtn2)();
|
|
}
|
|
const _easycom_up_navbar = () => "../../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
|
|
const _easycom_oneBtn = () => "../../../components/oneBtn/oneBtn.js";
|
|
if (!Math) {
|
|
(_easycom_up_navbar + _easycom_oneBtn)();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "examSubjiect1",
|
|
setup(__props) {
|
|
var _a;
|
|
let usecarStore = store_modules_car.carStore();
|
|
let phone = (_a = common_vendor.index.getStorageSync("loginInfo")) == null ? void 0 : _a.phone;
|
|
let info = common_vendor.ref({});
|
|
async function questionExamFn() {
|
|
const { data: res } = await config_api.questionExam({ stepType: usecarStore.carInfo.stepType, carType: usecarStore.carInfo.carType });
|
|
let arr = res.useTime.split(":");
|
|
res.useTimes = arr[0] + ":" + arr[1].substring(0, 2);
|
|
info.value = res;
|
|
}
|
|
common_vendor.onShow(() => {
|
|
questionExamFn();
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return common_vendor.e({
|
|
a: common_vendor.o(($event) => _ctx.$goPage("/pages/exercises/examSubjiect1/examResultsOne")),
|
|
b: common_vendor.p({
|
|
leftText: " ",
|
|
leftIconColor: "#fff",
|
|
safeAreaInsetTop: true,
|
|
autoBack: true,
|
|
title: "我的学习",
|
|
bgColor: "transparent",
|
|
titleStyle: {
|
|
color: "#fff"
|
|
}
|
|
}),
|
|
c: common_vendor.t(common_vendor.unref(phone)),
|
|
d: common_vendor.unref(info).highScore
|
|
}, common_vendor.unref(info).highScore ? {
|
|
e: common_vendor.t(common_vendor.unref(info).highScore),
|
|
f: common_vendor.t(common_vendor.unref(info).useTimes)
|
|
} : {}, {
|
|
g: common_vendor.t(common_vendor.unref(usecarStore).carInfo.carTypeName),
|
|
h: common_vendor.t(common_vendor.unref(info).totalExamTime),
|
|
i: common_vendor.t(common_vendor.unref(info).totalCount),
|
|
j: common_vendor.t(common_vendor.unref(info).score),
|
|
k: common_vendor.t(common_vendor.unref(info).funllScore),
|
|
l: common_vendor.t(common_vendor.unref(info).questionRule),
|
|
m: common_vendor.t(common_vendor.unref(info).deductPointsRule),
|
|
n: common_vendor.o(($event) => _ctx.$goPage(`/pages/exercises/brushQuestions/examQuestions?totalExamTime=${common_vendor.unref(info).totalExamTime}&score=${common_vendor.unref(info).score}`)),
|
|
o: common_vendor.p({
|
|
text: "开始模拟考试"
|
|
})
|
|
});
|
|
};
|
|
}
|
|
};
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1b9bdd0a"]]);
|
|
wx.createPage(MiniProgramPage);
|