Browse Source

最终版本

dev
ting 5 months ago
parent
commit
84e8de259b
  1. 2
      package-lock.json
  2. 57
      src/views/FrontView.vue

2
package-lock.json

@ -2392,7 +2392,7 @@
}, },
"node_modules/moment": { "node_modules/moment": {
"version": "2.30.1", "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==", "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {

57
src/views/FrontView.vue

@ -7,66 +7,11 @@ const participants = ref([]);
const activity = ref(); const activity = ref();
const percent = ref(); const percent = ref();
function loadParticipants() { 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) => { ShowApi.showPage().then((result) => {
console.log("后端数据:", result.data);
activity.value = result.data; activity.value = result.data;
// participants.value = result.data.participantList; // participants.value = result.data.participantList;
percent.value = (result.data.nowNumber / result.data.targetNumber) * 100; percent.value = (result.data.nowNumber / result.data.targetNumber) * 100;
console.log("活动数据", activity.value);
}); });
} }
loadParticipants(); loadParticipants();

Loading…
Cancel
Save