|
@@ -22,6 +22,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
const id = common_vendor.ref("");
|
|
const id = common_vendor.ref("");
|
|
const config = common_vendor.ref({ logoUrl: "" });
|
|
const config = common_vendor.ref({ logoUrl: "" });
|
|
const user = common_vendor.ref({});
|
|
const user = common_vendor.ref({});
|
|
|
|
+ const is_save = common_vendor.ref(true);
|
|
|
|
+ const actInfo = common_vendor.ref({});
|
|
const statusList = common_vendor.ref([]);
|
|
const statusList = common_vendor.ref([]);
|
|
common_vendor.onLoad(async (options) => {
|
|
common_vendor.onLoad(async (options) => {
|
|
id.value = options && options.id;
|
|
id.value = options && options.id;
|
|
@@ -56,7 +58,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
};
|
|
};
|
|
const searchGame = async () => {
|
|
const searchGame = async () => {
|
|
if (id.value) {
|
|
if (id.value) {
|
|
- const res = await $api("game/list", "GET", {
|
|
|
|
|
|
+ let res;
|
|
|
|
+ res = await $api("game/list", "GET", {
|
|
pageNum: pageNum.value,
|
|
pageNum: pageNum.value,
|
|
pageSize: pageSize.value,
|
|
pageSize: pageSize.value,
|
|
userId: user.value.id
|
|
userId: user.value.id
|
|
@@ -70,6 +73,20 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
icon: "error"
|
|
icon: "error"
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ res = await $api("game/list", "GET", {
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 1,
|
|
|
|
+ status: "0"
|
|
|
|
+ });
|
|
|
|
+ if (res.code === 200 && res.total > 0) {
|
|
|
|
+ is_save.value = false;
|
|
|
|
+ actInfo.value = res.rows[0];
|
|
|
|
+ } else {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: res.msg || "",
|
|
|
|
+ icon: "error"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
};
|
|
};
|
|
const menuList = common_vendor.ref([
|
|
const menuList = common_vendor.ref([
|
|
@@ -116,7 +133,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
return "暂无状态";
|
|
return "暂无状态";
|
|
};
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return (_ctx, _cache) => {
|
|
- return {
|
|
|
|
|
|
+ var _a2, _b, _c, _d, _e, _f;
|
|
|
|
+ return common_vendor.e({
|
|
a: info.value.logo || "/static/qiudui.png",
|
|
a: info.value.logo || "/static/qiudui.png",
|
|
b: common_vendor.t(info.value.name || "暂无名称"),
|
|
b: common_vendor.t(info.value.name || "暂无名称"),
|
|
c: common_vendor.t(info.value.ranking || "暂无排名"),
|
|
c: common_vendor.t(info.value.ranking || "暂无排名"),
|
|
@@ -127,15 +145,30 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
color: "#ffffff"
|
|
color: "#ffffff"
|
|
}),
|
|
}),
|
|
f: common_vendor.o(toSave),
|
|
f: common_vendor.o(toSave),
|
|
- g: common_vendor.o(toSave),
|
|
|
|
- h: common_vendor.p({
|
|
|
|
|
|
+ g: is_save.value
|
|
|
|
+ }, is_save.value ? {} : {}, {
|
|
|
|
+ h: is_save.value
|
|
|
|
+ }, is_save.value ? {
|
|
|
|
+ i: common_vendor.o(toSave)
|
|
|
|
+ } : common_vendor.e({
|
|
|
|
+ j: common_vendor.t(common_vendor.unref(common_vendor.hooks)(actInfo.value.startTime).format("MM-DD") || "暂无日期"),
|
|
|
|
+ k: common_vendor.t(getDayOfWeek(actInfo.value.startTime)),
|
|
|
|
+ l: common_vendor.t(common_vendor.unref(common_vendor.hooks)(actInfo.value.startTime).format("HH:mm") || "暂无时间"),
|
|
|
|
+ m: actInfo.value.type == "0"
|
|
|
|
+ }, actInfo.value.type == "0" ? {} : {}, {
|
|
|
|
+ n: ((_b = (_a2 = actInfo.value) == null ? void 0 : _a2.blueInfo) == null ? void 0 : _b.logo) || "/static/qiudui.png",
|
|
|
|
+ o: common_vendor.t((_d = (_c = actInfo.value) == null ? void 0 : _c.blueInfo) == null ? void 0 : _d.name),
|
|
|
|
+ p: common_vendor.t(((_f = (_e = actInfo.value) == null ? void 0 : _e.matchInfo) == null ? void 0 : _f.address) || "暂无地址"),
|
|
|
|
+ q: common_vendor.o(($event) => toActivity(actInfo.value))
|
|
|
|
+ }), {
|
|
|
|
+ r: common_vendor.p({
|
|
type: "list",
|
|
type: "list",
|
|
size: "18"
|
|
size: "18"
|
|
}),
|
|
}),
|
|
- i: common_vendor.o(($event) => toInfo({
|
|
|
|
|
|
+ s: common_vendor.o(($event) => toInfo({
|
|
route: "/pagesHome/activity/index"
|
|
route: "/pagesHome/activity/index"
|
|
})),
|
|
})),
|
|
- j: common_vendor.f(menuList.value, (item, index, i0) => {
|
|
|
|
|
|
+ t: common_vendor.f(menuList.value, (item, index, i0) => {
|
|
return {
|
|
return {
|
|
a: "b14ffc51-2-" + i0,
|
|
a: "b14ffc51-2-" + i0,
|
|
b: common_vendor.p({
|
|
b: common_vendor.p({
|
|
@@ -149,41 +182,41 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
e: common_vendor.o(($event) => toInfo(item), index)
|
|
e: common_vendor.o(($event) => toInfo(item), index)
|
|
};
|
|
};
|
|
}),
|
|
}),
|
|
- k: common_vendor.t(total.value || 0),
|
|
|
|
- l: common_vendor.p({
|
|
|
|
|
|
+ v: common_vendor.t(total.value || 0),
|
|
|
|
+ w: common_vendor.p({
|
|
pro: 16 / 100,
|
|
pro: 16 / 100,
|
|
border_back_color: "#f1f1f1",
|
|
border_back_color: "#f1f1f1",
|
|
border_color: "#FF0000",
|
|
border_color: "#FF0000",
|
|
content: "16"
|
|
content: "16"
|
|
}),
|
|
}),
|
|
- m: common_vendor.p({
|
|
|
|
|
|
+ x: common_vendor.p({
|
|
pro: 5 / 100,
|
|
pro: 5 / 100,
|
|
border_back_color: "#f1f1f1",
|
|
border_back_color: "#f1f1f1",
|
|
border_color: "#35BD7B",
|
|
border_color: "#35BD7B",
|
|
content: "5"
|
|
content: "5"
|
|
}),
|
|
}),
|
|
- n: common_vendor.p({
|
|
|
|
|
|
+ y: common_vendor.p({
|
|
pro: 17 / 100,
|
|
pro: 17 / 100,
|
|
border_back_color: "#f1f1f1",
|
|
border_back_color: "#f1f1f1",
|
|
border_color: "#FFA500",
|
|
border_color: "#FFA500",
|
|
content: "17"
|
|
content: "17"
|
|
}),
|
|
}),
|
|
- o: common_vendor.p({
|
|
|
|
|
|
+ z: common_vendor.p({
|
|
type: "forward",
|
|
type: "forward",
|
|
size: "25",
|
|
size: "25",
|
|
color: "#858585"
|
|
color: "#858585"
|
|
}),
|
|
}),
|
|
- p: common_vendor.p({
|
|
|
|
|
|
+ A: common_vendor.p({
|
|
["custom-prefix"]: "iconfont",
|
|
["custom-prefix"]: "iconfont",
|
|
type: "icon-xiangce",
|
|
type: "icon-xiangce",
|
|
size: "20",
|
|
size: "20",
|
|
color: "#333333"
|
|
color: "#333333"
|
|
}),
|
|
}),
|
|
- q: common_vendor.o(($event) => toInfo({
|
|
|
|
|
|
+ B: common_vendor.o(($event) => toInfo({
|
|
route: "/pagesHome/team/album"
|
|
route: "/pagesHome/team/album"
|
|
})),
|
|
})),
|
|
- r: common_vendor.f(list.value, (item, index, i0) => {
|
|
|
|
- var _a2, _b, _c, _d, _e, _f;
|
|
|
|
|
|
+ C: common_vendor.f(list.value, (item, index, i0) => {
|
|
|
|
+ var _a3, _b2, _c2, _d2, _e2, _f2;
|
|
return common_vendor.e({
|
|
return common_vendor.e({
|
|
a: common_vendor.t(common_vendor.unref(common_vendor.hooks)(item.startTime).format("MM-DD") || "暂无日期"),
|
|
a: common_vendor.t(common_vendor.unref(common_vendor.hooks)(item.startTime).format("MM-DD") || "暂无日期"),
|
|
b: common_vendor.t(getDayOfWeek(item.startTime)),
|
|
b: common_vendor.t(getDayOfWeek(item.startTime)),
|
|
@@ -191,21 +224,21 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
d: common_vendor.n(item.status == "0" ? "status0" : item.status == "1" ? "status1" : item.status == "2" ? "status2" : "status3"),
|
|
d: common_vendor.n(item.status == "0" ? "status0" : item.status == "1" ? "status1" : item.status == "2" ? "status2" : "status3"),
|
|
e: item.type == "0"
|
|
e: item.type == "0"
|
|
}, item.type == "0" ? {
|
|
}, item.type == "0" ? {
|
|
- f: common_vendor.t(((_a2 = item == null ? void 0 : item.matchInfo) == null ? void 0 : _a2.title) || "友谊赛")
|
|
|
|
|
|
+ f: common_vendor.t(((_a3 = item == null ? void 0 : item.matchInfo) == null ? void 0 : _a3.title) || "友谊赛")
|
|
} : {
|
|
} : {
|
|
- g: common_vendor.t(((_b = item == null ? void 0 : item.leagueInfo) == null ? void 0 : _b.title) || "联赛")
|
|
|
|
|
|
+ g: common_vendor.t(((_b2 = item == null ? void 0 : item.leagueInfo) == null ? void 0 : _b2.title) || "联赛")
|
|
}, {
|
|
}, {
|
|
- h: common_vendor.t(((_c = item == null ? void 0 : item.redInfo) == null ? void 0 : _c.name) || "暂无红方名称"),
|
|
|
|
- i: ((_d = item == null ? void 0 : item.redInfo) == null ? void 0 : _d.logo) || config.value.logoUrl,
|
|
|
|
|
|
+ h: common_vendor.t(((_c2 = item == null ? void 0 : item.redInfo) == null ? void 0 : _c2.name) || "暂无红方名称"),
|
|
|
|
+ i: ((_d2 = item == null ? void 0 : item.redInfo) == null ? void 0 : _d2.logo) || config.value.logoUrl,
|
|
j: common_vendor.t(item.redScore || 0),
|
|
j: common_vendor.t(item.redScore || 0),
|
|
k: common_vendor.t(item.blueScore || 0),
|
|
k: common_vendor.t(item.blueScore || 0),
|
|
- l: ((_e = item == null ? void 0 : item.blueInfo) == null ? void 0 : _e.logo) || config.value.logoUrl,
|
|
|
|
- m: common_vendor.t(((_f = item == null ? void 0 : item.blueInfo) == null ? void 0 : _f.name) || "暂无蓝方名称"),
|
|
|
|
|
|
+ l: ((_e2 = item == null ? void 0 : item.blueInfo) == null ? void 0 : _e2.logo) || config.value.logoUrl,
|
|
|
|
+ m: common_vendor.t(((_f2 = item == null ? void 0 : item.blueInfo) == null ? void 0 : _f2.name) || "暂无蓝方名称"),
|
|
n: index,
|
|
n: index,
|
|
o: common_vendor.o(($event) => toActivity(item), index)
|
|
o: common_vendor.o(($event) => toActivity(item), index)
|
|
});
|
|
});
|
|
})
|
|
})
|
|
- };
|
|
|
|
|
|
+ });
|
|
};
|
|
};
|
|
}
|
|
}
|
|
});
|
|
});
|