diff --git a/src/views/workspace/index.vue b/src/views/workspace/index.vue index ff245f5..0652dc2 100644 --- a/src/views/workspace/index.vue +++ b/src/views/workspace/index.vue @@ -408,8 +408,12 @@ const processData = (data) => { dailyRefund.value = yesterdayRefund.toFixed(2) yearlyRechargeNum.value = summary.yearlyRechargeNum - sumWow.value = (summary.sumWow / length.value).toFixed(2) - sumDaily.value = (summary.sumDaily / length.value).toFixed(2) + + // // 周同比 + // sumWow.value = (marketCards.sumWow / length.value).toFixed(2) + // // 日环比 + // sumDaily.value = (marketCards.sumDaily / length.value).toFixed(2) + rechargeNum.value = summary.rechargeNum firstRecharge.value = summary.firstRecharge } @@ -712,6 +716,11 @@ const getCardData = async () => { try { const response = await API({ url: '/workbench/getCard', data: {} }) workDataUpdateTime.value = response.updateTime + // 周同比 + sumWow.value = response.sumWow .toFixed(2) + // 日环比 + sumDaily.value = response.sumDaily.toFixed(2) + if (response && response.data) { processData(response.data) } else if (Array.isArray(response?.marketCards)) {