80 lines
2.7 KiB
JavaScript
80 lines
2.7 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const PracticeTab = () => "./components/practice-tab.js";
|
|
const TrainingTab = () => "./components/training-tab.js";
|
|
const MaterialTab = () => "./components/material-tab.js";
|
|
const _sfc_main = {
|
|
components: {
|
|
PracticeTab,
|
|
TrainingTab,
|
|
MaterialTab
|
|
},
|
|
data() {
|
|
return {
|
|
activeTab: "practice"
|
|
};
|
|
},
|
|
onLoad() {
|
|
},
|
|
methods: {
|
|
goBack() {
|
|
common_vendor.index.navigateBack();
|
|
},
|
|
switchTab(tab) {
|
|
this.activeTab = tab;
|
|
},
|
|
handleSwitchToTraining() {
|
|
this.switchTab("training");
|
|
},
|
|
handleRefreshTrainingList() {
|
|
this.switchTab("training");
|
|
}
|
|
}
|
|
};
|
|
if (!Array) {
|
|
const _easycom_uni_nav_bar2 = common_vendor.resolveComponent("uni-nav-bar");
|
|
const _component_practice_tab = common_vendor.resolveComponent("practice-tab");
|
|
const _component_training_tab = common_vendor.resolveComponent("training-tab");
|
|
const _component_material_tab = common_vendor.resolveComponent("material-tab");
|
|
(_easycom_uni_nav_bar2 + _component_practice_tab + _component_training_tab + _component_material_tab)();
|
|
}
|
|
const _easycom_uni_nav_bar = () => "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.js";
|
|
if (!Math) {
|
|
_easycom_uni_nav_bar();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return common_vendor.e({
|
|
a: common_vendor.o($options.goBack),
|
|
b: common_vendor.p({
|
|
fixed: true,
|
|
statusBar: true,
|
|
title: "AI销冠系统",
|
|
leftIcon: "left",
|
|
color: "#333",
|
|
backgroundColor: "#FFFFFF"
|
|
}),
|
|
c: $data.activeTab === "practice" ? 1 : "",
|
|
d: common_vendor.o(($event) => $options.switchTab("practice")),
|
|
e: $data.activeTab === "training" ? 1 : "",
|
|
f: common_vendor.o(($event) => $options.switchTab("training")),
|
|
g: $data.activeTab === "quality" ? 1 : "",
|
|
h: common_vendor.o(($event) => $options.switchTab("quality")),
|
|
i: $data.activeTab === "material" ? 1 : "",
|
|
j: common_vendor.o(($event) => $options.switchTab("material")),
|
|
k: $data.activeTab === "practice"
|
|
}, $data.activeTab === "practice" ? {
|
|
l: common_vendor.o($options.handleSwitchToTraining)
|
|
} : {}, {
|
|
m: $data.activeTab === "training"
|
|
}, $data.activeTab === "training" ? {
|
|
n: common_vendor.o($options.handleRefreshTrainingList)
|
|
} : {}, {
|
|
o: $data.activeTab === "quality"
|
|
}, $data.activeTab === "quality" ? {} : {}, {
|
|
p: $data.activeTab === "material"
|
|
}, $data.activeTab === "material" ? {} : {});
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages-subpackage/champion/champion.js.map
|