|
@ -408,8 +408,12 @@ const processData = (data) => { |
|
|
dailyRefund.value = yesterdayRefund.toFixed(2) |
|
|
dailyRefund.value = yesterdayRefund.toFixed(2) |
|
|
|
|
|
|
|
|
yearlyRechargeNum.value = summary.yearlyRechargeNum |
|
|
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 |
|
|
rechargeNum.value = summary.rechargeNum |
|
|
firstRecharge.value = summary.firstRecharge |
|
|
firstRecharge.value = summary.firstRecharge |
|
|
} |
|
|
} |
|
@ -712,6 +716,11 @@ const getCardData = async () => { |
|
|
try { |
|
|
try { |
|
|
const response = await API({ url: '/workbench/getCard', data: {} }) |
|
|
const response = await API({ url: '/workbench/getCard', data: {} }) |
|
|
workDataUpdateTime.value = response.updateTime |
|
|
workDataUpdateTime.value = response.updateTime |
|
|
|
|
|
// 周同比 |
|
|
|
|
|
sumWow.value = response.sumWow .toFixed(2) |
|
|
|
|
|
// 日环比 |
|
|
|
|
|
sumDaily.value = response.sumDaily.toFixed(2) |
|
|
|
|
|
|
|
|
if (response && response.data) { |
|
|
if (response && response.data) { |
|
|
processData(response.data) |
|
|
processData(response.data) |
|
|
} else if (Array.isArray(response?.marketCards)) { |
|
|
} else if (Array.isArray(response?.marketCards)) { |
|
|