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