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();