"use strict"; const common_vendor = require("../../common/vendor.js"); if (!Array) { const _easycom_uni_segmented_control2 = common_vendor.resolveComponent("uni-segmented-control"); const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); (_easycom_uni_segmented_control2 + _easycom_uni_icons2)(); } const _easycom_uni_segmented_control = () => "../../uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.js"; const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; if (!Math) { (_easycom_uni_segmented_control + match + activity + _easycom_uni_icons)(); } const activity = () => "./components/activity.js"; const match = () => "./components/match.js"; 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 config = common_vendor.ref({}); const id = common_vendor.ref(""); const list = common_vendor.ref(["友谊赛", "训练", "活动"]); const current = common_vendor.ref(0); 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: current.value === 0, d: current.value === 1, e: current.value === 2, f: common_vendor.o(_ctx.toClose), g: common_vendor.p({ ["custom-prefix"]: "iconfont", type: "icon-caogao04", size: "20", color: "#696969" }), h: common_vendor.o(_ctx.toClose), i: common_vendor.p({ ["custom-prefix"]: "iconfont", type: "icon-icon_cz", size: "20", color: "#696969" }) }; }; } }); const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-fe92273c"], ["__file", "D:/project/足球比赛/match_applet/pagesHome/create/index.vue"]]); wx.createPage(MiniProgramPage);