"use strict"; const common_vendor = require("../../../common/vendor.js"); const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "activity", setup(__props) { var _a, _b, _c; const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api; (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$config; (_c = common_vendor.getCurrentInstance()) == null ? void 0 : _c.appContext.config.globalProperties.$apifile; common_vendor.computed(() => { return common_vendor.index.getStorageSync("openid"); }); const form = common_vendor.ref({}); const typeList = common_vendor.ref([]); const numberList = common_vendor.ref([]); const durationList = common_vendor.ref([]); common_vendor.onShow(async () => { await searchOther(); await search(); }); const searchOther = async () => { let res; res = await $api(`dict/data/list`, "GET", { dictType: "sys_user_type" }); if (res.code === 200 && res.total > 0) typeList.value = res.rows; res = await $api(`dict/data/list`, "GET", { dictType: "sys_match_number" }); if (res.code === 200 && res.total > 0) numberList.value = res.rows; res = await $api(`dict/data/list`, "GET", { dictType: "sys_match_duration" }); if (res.code === 200 && res.total > 0) durationList.value = res.rows; }; const search = async () => { }; const typeChange = (e) => { const data = typeList.value[e.detail.value]; if (data) form.value.type = data.dictLabel; }; const numberChange = (e) => { const data = numberList.value[e.detail.value]; if (data) form.value.number = data.dictLabel; }; const durationChange = (e) => { const data = durationList.value[e.detail.value]; if (data) form.value.duration = data.dictLabel; }; const dateChange = (e) => { form.value.date = e.detail.value; }; const timeChange = (e) => { form.value.time = e.detail.value; }; const formSubmit = (e) => { console.log(e.deatil.value); }; return (_ctx, _cache) => { return { a: common_vendor.t(form.value.type || "请选择类型"), b: common_vendor.o(typeChange), c: _ctx.index, d: typeList.value, e: common_vendor.t(form.value.number || "请选择人数"), f: common_vendor.o(numberChange), g: _ctx.index, h: numberList.value, i: form.value.name, j: common_vendor.t(form.value.date || "请选择日期"), k: common_vendor.o(dateChange), l: _ctx.index, m: common_vendor.t(form.value.time || "请选择时间"), n: common_vendor.o(timeChange), o: _ctx.index, p: common_vendor.t(form.value.duration || "请选择时长"), q: common_vendor.o(durationChange), r: _ctx.index, s: durationList.value, t: form.value.address, v: form.value.color, w: form.value.money, x: form.value.address, y: form.value.address, z: form.value.address, A: form.value.address, B: form.value.address, C: form.value.address, D: form.value.title, E: form.value.brief, F: common_vendor.o(formSubmit) }; }; } }); const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b4c340fa"], ["__file", "D:/project/足球比赛/match_applet/pagesHome/create/components/activity.vue"]]); wx.createComponent(Component);