123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- if (!Array) {
- const _easycom_uni_collapse_item2 = common_vendor.resolveComponent("uni-collapse-item");
- const _easycom_uni_collapse2 = common_vendor.resolveComponent("uni-collapse");
- (_easycom_uni_collapse_item2 + _easycom_uni_collapse2)();
- }
- const _easycom_uni_collapse_item = () => "../../uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.js";
- const _easycom_uni_collapse = () => "../../uni_modules/uni-collapse/components/uni-collapse/uni-collapse.js";
- if (!Math) {
- (_easycom_uni_collapse_item + _easycom_uni_collapse)();
- }
- 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({ logoUrl: "" });
- const one = common_vendor.ref("报名成功(0)");
- const two = common_vendor.ref("请假(0)");
- const thr = common_vendor.ref("未回应队员(6)");
- const accordionVal = common_vendor.ref("2");
- const is_yes = common_vendor.ref(true);
- const list = common_vendor.ref([{ id: 1, phone: "1234567890" }, { id: 1, name: "肝帝集团队" }]);
- const id = common_vendor.ref("");
- common_vendor.onLoad(async (options) => {
- id.value = options && options.id;
- if (options && options.name && options.name == "已回应队员") {
- is_yes.value = false;
- thr.value = "已回应队员(6)";
- }
- common_vendor.index.setNavigationBarTitle({
- title: options && options.name || "报名队员"
- });
- await searchConfig();
- await search();
- });
- const searchConfig = async () => {
- config.value = common_vendor.index.getStorageSync("config");
- };
- const search = async () => {
- if (id.value)
- ;
- };
- const change = async (e) => {
- console.log(e);
- };
- const toPerson = async (item) => {
- console.log(item);
- };
- return (_ctx, _cache) => {
- return {
- a: common_vendor.f(list.value, (item, index, i0) => {
- return {
- a: item.icon || config.value.logoUrl,
- b: common_vendor.t(item.name || item.phone),
- c: index,
- d: common_vendor.o(($event) => toPerson(item), index)
- };
- }),
- b: common_vendor.p({
- title: one.value
- }),
- c: common_vendor.f(list.value, (item, index, i0) => {
- return {
- a: item.icon || config.value.logoUrl,
- b: common_vendor.t(item.name || item.phone),
- c: index,
- d: common_vendor.o(($event) => toPerson(item), index)
- };
- }),
- d: common_vendor.p({
- title: two.value
- }),
- e: common_vendor.f(list.value, (item, index, i0) => {
- return common_vendor.e({
- a: item.icon || config.value.logoUrl,
- b: common_vendor.t(item.name || item.phone)
- }, is_yes.value ? {
- c: common_vendor.o(
- //@ts-ignore
- (...args) => _ctx.onLeave && _ctx.onLeave(...args),
- index
- )
- } : {
- d: common_vendor.o(
- //@ts-ignore
- (...args) => _ctx.onLeave && _ctx.onLeave(...args),
- index
- )
- }, {
- e: index,
- f: common_vendor.o(($event) => toPerson(item), index)
- });
- }),
- f: is_yes.value,
- g: common_vendor.p({
- title: thr.value
- }),
- h: common_vendor.o(change),
- i: common_vendor.o(($event) => accordionVal.value = $event),
- j: common_vendor.p({
- accordion: true,
- modelValue: accordionVal.value
- })
- };
- };
- }
- });
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-aedfc046"], ["__file", "D:/project/足球比赛/match_applet/pagesHome/enroll/index.vue"]]);
- wx.createPage(MiniProgramPage);
|