123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- if (!Array) {
- const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
- _easycom_uni_icons2();
- }
- const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
- if (!Math) {
- (_easycom_uni_icons + circle)();
- }
- const circle = () => "./components/circle.js";
- const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
- __name: "info",
- setup(__props) {
- var _a;
- (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
- const info = common_vendor.ref({ id: 1, name: "测试球队", score: "39" });
- const id = common_vendor.ref("");
- common_vendor.onLoad(async (options) => {
- id.value = options && options.id;
- await search();
- });
- const search = async () => {
- if (id.value)
- ;
- };
- const menuList = common_vendor.ref([
- { name: "队员", icon: "icon-a-14-chengyuanguanli", color: "#333333" },
- { name: "相册", icon: "icon-xiangce", color: "#333333" },
- { name: "账本", icon: "icon-zhangben", color: "#333333" },
- { name: "战术板", icon: "icon-cricket-pitch", color: "#333333" }
- ]);
- const toEdit = (item) => {
- common_vendor.index.navigateTo({
- url: `/pagesHome/team/index?id=${item._id || item.id}`
- });
- };
- const toSave = () => {
- };
- return (_ctx, _cache) => {
- return {
- a: info.value.logo || "/static/qiudui.png",
- b: common_vendor.t(info.value.name || "暂无名称"),
- c: common_vendor.t(info.value.ranking || "暂无排名"),
- d: common_vendor.o(($event) => toEdit(info.value)),
- e: common_vendor.p({
- type: "plusempty",
- size: "12",
- color: "#ffffff"
- }),
- f: common_vendor.o(toSave),
- g: common_vendor.o(toSave),
- h: common_vendor.p({
- type: "list",
- size: "18"
- }),
- i: common_vendor.f(menuList.value, (item, index, i0) => {
- return {
- a: "b14ffc51-2-" + i0,
- b: common_vendor.p({
- ["custom-prefix"]: "iconfont",
- type: item.icon,
- size: "25",
- color: item.color
- }),
- c: common_vendor.t(item.name),
- d: index,
- e: common_vendor.o(($event) => _ctx.toInfo(item), index)
- };
- }),
- j: common_vendor.t(info.value.score || 0),
- k: common_vendor.p({
- pro: 16 / 100,
- border_back_color: "#f1f1f1",
- border_color: "#FF0000",
- content: "16"
- }),
- l: common_vendor.p({
- pro: 5 / 100,
- border_back_color: "#f1f1f1",
- border_color: "#35BD7B",
- content: "5"
- }),
- m: common_vendor.p({
- pro: 17 / 100,
- border_back_color: "#f1f1f1",
- border_color: "#FFA500",
- content: "17"
- }),
- n: common_vendor.p({
- type: "forward",
- size: "25",
- color: "#858585"
- })
- };
- };
- }
- });
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b14ffc51"], ["__file", "D:/project/足球比赛/match_applet/pagesHome/team/info.vue"]]);
- wx.createPage(MiniProgramPage);
|