|
@@ -2,14 +2,21 @@
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_vendor = require("../../common/vendor.js");
|
|
if (!Array) {
|
|
if (!Array) {
|
|
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
|
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
|
|
|
+ const _easycom_uni_segmented_control2 = common_vendor.resolveComponent("uni-segmented-control");
|
|
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
|
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
|
- (_easycom_uni_icons2 + _easycom_uni_popup2)();
|
|
|
|
|
|
+ const _easycom_uni_fab2 = common_vendor.resolveComponent("uni-fab");
|
|
|
|
+ (_easycom_uni_icons2 + _easycom_uni_segmented_control2 + _easycom_uni_popup2 + _easycom_uni_fab2)();
|
|
}
|
|
}
|
|
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
|
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
|
|
|
+const _easycom_uni_segmented_control = () => "../../uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.js";
|
|
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
|
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
|
|
|
+const _easycom_uni_fab = () => "../../uni_modules/uni-fab/components/uni-fab/uni-fab.js";
|
|
if (!Math) {
|
|
if (!Math) {
|
|
- (_easycom_uni_icons + _easycom_uni_popup)();
|
|
|
|
|
|
+ (_easycom_uni_icons + _easycom_uni_segmented_control + team + activity + game + _easycom_uni_popup + _easycom_uni_fab)();
|
|
}
|
|
}
|
|
|
|
+const activity = () => "./components/activity.js";
|
|
|
|
+const game = () => "./components/game.js";
|
|
|
|
+const team = () => "./components/team.js";
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
__name: "index",
|
|
__name: "index",
|
|
setup(__props) {
|
|
setup(__props) {
|
|
@@ -21,7 +28,34 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
const config = common_vendor.ref({});
|
|
const config = common_vendor.ref({});
|
|
const user = common_vendor.ref({});
|
|
const user = common_vendor.ref({});
|
|
const show = common_vendor.ref(false);
|
|
const show = common_vendor.ref(false);
|
|
- common_vendor.ref([]);
|
|
|
|
|
|
+ const menuList = common_vendor.ref([
|
|
|
|
+ { name: "球队", num: "5", icon: "icon-qi", color: "#1E90FF" },
|
|
|
|
+ { name: "|" },
|
|
|
|
+ { name: "出勤", num: "16%", icon: "icon-kaoqinchuqin", color: "#FF4500" },
|
|
|
|
+ { name: "|" },
|
|
|
|
+ { name: "进球", num: "1", icon: "icon-zuqiu", color: "#FFFFFF" }
|
|
|
|
+ ]);
|
|
|
|
+ const list = common_vendor.ref(["球队", "活动", "赛事"]);
|
|
|
|
+ const current = common_vendor.ref(0);
|
|
|
|
+ const pattern = common_vendor.ref({
|
|
|
|
+ color: "#3c3e49",
|
|
|
|
+ backgroundColor: "#fff",
|
|
|
|
+ selectedColor: "#fff",
|
|
|
|
+ buttonColor: "#fff",
|
|
|
|
+ iconColor: "#3c3e49"
|
|
|
|
+ });
|
|
|
|
+ const content = common_vendor.ref([
|
|
|
|
+ {
|
|
|
|
+ iconPath: "/static/qiudui.png",
|
|
|
|
+ text: "建球队",
|
|
|
|
+ route: "/pagesHome/team/index"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ iconPath: "/static/saishi.png",
|
|
|
|
+ text: "建赛事",
|
|
|
|
+ route: "/pagesHome/match/index"
|
|
|
|
+ }
|
|
|
|
+ ]);
|
|
const popup = common_vendor.ref(null);
|
|
const popup = common_vendor.ref(null);
|
|
common_vendor.onShow(() => {
|
|
common_vendor.onShow(() => {
|
|
common_vendor.index.hideHomeButton();
|
|
common_vendor.index.hideHomeButton();
|
|
@@ -32,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
common_vendor.index.stopPullDownRefresh();
|
|
common_vendor.index.stopPullDownRefresh();
|
|
});
|
|
});
|
|
const search = async () => {
|
|
const search = async () => {
|
|
- const res = await $api(`/system/matchUser/find`, "GET", {
|
|
|
|
|
|
+ const res = await $api(`matchUser/find`, "GET", {
|
|
openid: openid.value
|
|
openid: openid.value
|
|
});
|
|
});
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
@@ -63,6 +97,15 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
url: `/pages/login/index`
|
|
url: `/pages/login/index`
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+ const onClickItem = (e) => {
|
|
|
|
+ if (current.value !== e.currentIndex)
|
|
|
|
+ current.value = e.currentIndex;
|
|
|
|
+ };
|
|
|
|
+ const trigger = (e) => {
|
|
|
|
+ common_vendor.index.navigateTo({
|
|
|
|
+ url: e.item.route
|
|
|
|
+ });
|
|
|
|
+ };
|
|
const toClose = () => {
|
|
const toClose = () => {
|
|
popup.value.close();
|
|
popup.value.close();
|
|
};
|
|
};
|
|
@@ -77,20 +120,52 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
color: "#ffffff"
|
|
color: "#ffffff"
|
|
}),
|
|
}),
|
|
e: common_vendor.o(toBasic),
|
|
e: common_vendor.o(toBasic),
|
|
- f: common_vendor.o(toClose),
|
|
|
|
- g: common_vendor.p({
|
|
|
|
|
|
+ f: common_vendor.f(menuList.value, (item, index, i0) => {
|
|
|
|
+ return {
|
|
|
|
+ a: "4978fed5-1-" + i0,
|
|
|
|
+ b: common_vendor.p({
|
|
|
|
+ ["custom-prefix"]: "iconfont",
|
|
|
|
+ type: item.icon,
|
|
|
|
+ size: "18",
|
|
|
|
+ color: item.color
|
|
|
|
+ }),
|
|
|
|
+ c: common_vendor.t(item.name),
|
|
|
|
+ d: common_vendor.t(item.num),
|
|
|
|
+ e: index,
|
|
|
|
+ f: common_vendor.o(($event) => _ctx.toInfo(item), index)
|
|
|
|
+ };
|
|
|
|
+ }),
|
|
|
|
+ g: common_vendor.o(onClickItem),
|
|
|
|
+ h: common_vendor.p({
|
|
|
|
+ current: current.value,
|
|
|
|
+ values: list.value,
|
|
|
|
+ styleType: "text",
|
|
|
|
+ activeColor: "#dd524d"
|
|
|
|
+ }),
|
|
|
|
+ i: current.value === 0,
|
|
|
|
+ j: current.value === 1,
|
|
|
|
+ k: current.value === 2,
|
|
|
|
+ l: common_vendor.o(toClose),
|
|
|
|
+ m: common_vendor.p({
|
|
type: "closeempty",
|
|
type: "closeempty",
|
|
size: "18",
|
|
size: "18",
|
|
color: "#999999"
|
|
color: "#999999"
|
|
}),
|
|
}),
|
|
- h: common_vendor.o(toLogin),
|
|
|
|
- i: common_vendor.sr(popup, "4978fed5-1", {
|
|
|
|
|
|
+ n: common_vendor.o(toLogin),
|
|
|
|
+ o: common_vendor.sr(popup, "4978fed5-6", {
|
|
"k": "popup"
|
|
"k": "popup"
|
|
}),
|
|
}),
|
|
- j: common_vendor.o(change),
|
|
|
|
- k: common_vendor.p({
|
|
|
|
|
|
+ p: common_vendor.o(change),
|
|
|
|
+ q: common_vendor.p({
|
|
["background-color"]: "#fff",
|
|
["background-color"]: "#fff",
|
|
type: "bottom"
|
|
type: "bottom"
|
|
|
|
+ }),
|
|
|
|
+ r: common_vendor.o(trigger),
|
|
|
|
+ s: common_vendor.p({
|
|
|
|
+ pattern: pattern.value,
|
|
|
|
+ content: content.value,
|
|
|
|
+ horizontal: "right",
|
|
|
|
+ direction: "vertical"
|
|
})
|
|
})
|
|
};
|
|
};
|
|
};
|
|
};
|