1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
- __name: "index",
- setup(__props) {
- var _a;
- const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
- const config = common_vendor.ref({ logoUrl: "" });
- const id = common_vendor.ref("");
- const teamInfo = common_vendor.ref({});
- const list = common_vendor.ref([{ title: "球队活动通知 无缝对接微信群助手" }, { title: "球队数据记录 考勤/胜负/进球,记录运动回忆" }, { title: "队费明细管理 缴费收费实时提醒" }, { title: "团队共享相册 高清视频相册共享管理" }]);
- const teamList = common_vendor.ref([{ name: "入驻", num: "3年" }, { name: "|" }, { name: "活动", num: "21次" }, { name: "|" }, { name: "队员", num: "6人" }]);
- 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 res = await $api(`team/${id.value}`, "GET", {});
- if (res.code === 200) {
- if (res.data)
- teamInfo.value = res.data;
- } else {
- common_vendor.index.showToast({
- title: res.msg || "",
- icon: "error"
- });
- }
- }
- };
- const toAdd = async () => {
- console.log("立即加入");
- };
- return (_ctx, _cache) => {
- return {
- a: teamInfo.value.logo || "/static/qiudui.png",
- b: teamInfo.value.logo || "/static/qiudui.png",
- c: common_vendor.t(teamInfo.value.name || "暂无名称"),
- d: common_vendor.f(teamList.value, (item, index, i0) => {
- return {
- a: common_vendor.t(item.num),
- b: common_vendor.t(item.name || "暂无"),
- c: index
- };
- }),
- e: common_vendor.f(list.value, (item, index, i0) => {
- return {
- a: common_vendor.t(item.title),
- b: index
- };
- }),
- f: common_vendor.o(toAdd)
- };
- };
- }
- });
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-167827a6"], ["__file", "D:/project/足球比赛/match_applet/pagesHome/share/index.vue"]]);
- wx.createPage(MiniProgramPage);
|