Browse Source

fix: 工作台换 为外层 对应的字段

zhangrenyuan/feature-20250714163943-金币前端二期
lihui 2 weeks ago
parent
commit
29f628c606
  1. 13
      src/views/workspace/index.vue

13
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)) {

Loading…
Cancel
Save