1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- "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([]);
- 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;
- };
- const search = async () => {
- };
- const typeChange = (e) => {
- const data = typeList.value[e.detail.value];
- if (data)
- form.value.type = data.dictLabel;
- };
- const dateChange = (e) => {
- form.value.date = e.detail.value;
- };
- const formSubmit = (e) => {
- console.log(e.deatil.value);
- };
- return (_ctx, _cache) => {
- return {
- a: form.value.name,
- b: common_vendor.t(form.value.type || "请选择类型"),
- c: common_vendor.o(typeChange),
- d: _ctx.index,
- e: typeList.value,
- f: common_vendor.t(form.value.date || "请选择成立时间"),
- g: common_vendor.o(dateChange),
- h: _ctx.index,
- i: common_vendor.t(form.value.date || "请选择成立时间"),
- j: common_vendor.o(dateChange),
- k: _ctx.index,
- l: common_vendor.t(form.value.date || "请选择成立时间"),
- m: common_vendor.o(dateChange),
- n: _ctx.index,
- o: common_vendor.t(form.value.date || "请选择成立时间"),
- p: common_vendor.o(dateChange),
- q: _ctx.index,
- r: form.value.color,
- s: form.value.brief,
- t: 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);
|