From 84e8de259b180274e6268c12ae2b4af122b79435 Mon Sep 17 00:00:00 2001 From: ting Date: Fri, 20 Dec 2024 16:34:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E7=BB=88=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 2 +- src/views/FrontView.vue | 57 +------------------------------------------------ 2 files changed, 2 insertions(+), 57 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6cb3056..fb52225 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2392,7 +2392,7 @@ }, "node_modules/moment": { "version": "2.30.1", - "resolved": "https://mirrors.huaweicloud.com/repository/npm/moment/-/moment-2.30.1.tgz", + "resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz", "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", "license": "MIT", "engines": { diff --git a/src/views/FrontView.vue b/src/views/FrontView.vue index 87b04a3..74b4fa5 100644 --- a/src/views/FrontView.vue +++ b/src/views/FrontView.vue @@ -7,66 +7,11 @@ const participants = ref([]); const activity = ref(); const percent = ref(); function loadParticipants() { - // participants.value = [ - // { - // id: 1, - // jwcode: "498498", - // }, - // { - // id: 2, - // jwcode: "498498", - // }, - // { - // id: 3, - // jwcode: "498498", - // }, - // { - // id: 4, - // jwcode: "498498", - // }, - // { - // id: 5, - // jwcode: "498498", - // }, - // { - // id: 5, - // jwcode: "498498", - // }, - // { - // id: 5, - // jwcode: "498498", - // }, - // { - // id: 5, - // jwcode: "498498", - // }, - // { - // id: 5, - // jwcode: "498498", - // }, - // { - // id: 5, - // jwcode: "498498", - // }, - // { - // id: 5, - // jwcode: "498498", - // }, - // { - // id: 5, - // jwcode: "498498", - // }, - // { - // id: 5, - // jwcode: "498498", - // } - // ] + ShowApi.showPage().then((result) => { - console.log("后端数据:", result.data); activity.value = result.data; // participants.value = result.data.participantList; percent.value = (result.data.nowNumber / result.data.targetNumber) * 100; - console.log("活动数据", activity.value); }); } loadParticipants();