|
|
"use strict"; const common_vendor = require("../../../common/vendor.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 + nodata + _easycom_oneBtn)(); } const nodata = () => "../../../components/nodata/nodata.js"; const _sfc_main = { __name: "myStudy", setup(__props) { common_vendor.ref(false); const currentNav = common_vendor.ref(1); function changeNav(val) { currentNav.value = val; } const statisticsData = common_vendor.ref([ { name: "我的收藏", num: 0 }, { name: "我的错题", num: 1 }, { name: "考试记录", num: 2 }, { name: "预计合格率", num: "100%" } ]); const currentChart = common_vendor.ref(1); function changeChart(num) { currentChart.value = num; } return (_ctx, _cache) => { return common_vendor.e({ a: common_vendor.p({ leftText: " ", leftIconColor: "#fff", safeAreaInsetTop: true, autoBack: true, title: "我的学习", bgColor: "transparent", titleStyle: { color: "#fff" } }), b: common_vendor.o(($event) => changeNav(1)), c: currentNav.value == 1 ? 1 : "", d: common_vendor.o(($event) => changeNav(2)), e: currentNav.value == 2 ? 1 : "", f: common_vendor.f(statisticsData.value, (item, index, i0) => { return { a: common_vendor.t(item.num), b: common_vendor.t(item.name), c: index }; }), g: common_vendor.o(($event) => changeChart(1)), h: currentChart.value == 1 ? 1 : "", i: common_vendor.o(($event) => changeChart(2)), j: currentChart.value == 2 ? 1 : "", k: currentChart.value == 1 }, currentChart.value == 1 ? {} : {}, { l: currentChart.value == 2 }, currentChart.value == 2 ? {} : {}, { m: currentNav.value == 2 }, currentNav.value == 2 ? { n: common_vendor.o(($event) => _ctx.$goPage("/pages/exercises/beforeExam/beforeExam")), o: common_vendor.p({ text: "去考试" }) } : {}); }; } }; const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-140ee42a"]]); wx.createPage(MiniProgramPage);
|