"use strict"; const common_vendor = require("../../common/vendor.js"); if (!Array) { const _easycom_uni_segmented_control2 = common_vendor.resolveComponent("uni-segmented-control"); _easycom_uni_segmented_control2(); } const _easycom_uni_segmented_control = () => "../../uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.js"; if (!Math) { _easycom_uni_segmented_control(); } const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "index", setup(__props) { var _a; (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api; const id = common_vendor.ref(""); const config = common_vendor.ref({ logoUrl: "" }); const list = common_vendor.ref(["历史记录", "草稿箱"]); const current = common_vendor.ref(0); const historyList = common_vendor.ref([{ id: 1, title: "友谊赛" }, { id: 1, title: "肝帝联赛" }]); const draftsList = common_vendor.ref([{ id: 1, title: "友谊赛" }, { id: 1, title: "友谊赛" }]); common_vendor.onLoad(async (options) => { id.value = options && options.id; await searchConfig(); await search(); }); const searchConfig = async () => { config.value = common_vendor.index.getStorageSync("config"); }; const search = async () => { if (id.value) ; }; const onClickItem = (e) => { if (current.value !== e.currentIndex) current.value = e.currentIndex; }; return (_ctx, _cache) => { return { a: common_vendor.o(onClickItem), b: common_vendor.p({ current: current.value, values: list.value, styleType: "text", activeColor: "#dd524d" }), c: common_vendor.f(historyList.value, (item, index, i0) => { return { a: common_vendor.t(item.title || "暂无名称"), b: common_vendor.t(item.title || "暂无类型"), c: common_vendor.t(item.per || "0"), d: common_vendor.t(item.address || "暂无地址"), e: index }; }), d: current.value === 0, e: common_vendor.f(draftsList.value, (item, index, i0) => { return { a: common_vendor.t(item.title || "暂无名称"), b: common_vendor.t(item.title || "暂无类型"), c: common_vendor.t(item.address || "暂无地址"), d: index }; }), f: current.value === 1 }; }; } }); const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-872b3c9c"], ["__file", "D:/project/足球比赛/match_applet/pagesHome/draft/index.vue"]]); wx.createPage(MiniProgramPage);