This commit is contained in:
张良(004796)
2024-02-27 19:35:28 +08:00
parent 27ea0e6de4
commit 3620076799

View File

@@ -101,6 +101,7 @@
import CountTo from 'vue-count-to'
import RankList from '@/views/components/rankList'
import LineChart from '../dashboard/LineChart'
import { staticIndex } from '@/api/cai/static'
const chartSelect = [
{ label: '最近一周', key: '1' },
@@ -210,7 +211,6 @@ export default {
handleDatePickerChange(value) {
console.log('----value:', value);
},
handleChartTimeChange(val) {
// todo
},
@@ -219,6 +219,7 @@ export default {
},
getTodayStatistics() {
// todo fetch
staticIndex().then(response => {
const {
todayLoginNum,
todayLoginDiffLast,
@@ -229,7 +230,8 @@ export default {
todayWithdrawAmount,
todayWithdrawNum,
todayWithdrawAmountDiffLast
} = {
} = response.data
/* {
todayLoginNum: 100,
todayLoginDiffLast: 8.6,
anchorNum: 58,
@@ -239,7 +241,8 @@ export default {
todayWithdrawAmount: 500,
todayWithdrawNum: 1,
todayWithdrawAmountDiffLast: 5.9
}
} */
this.loginModel.count = todayLoginNum
this.loginModel.trendDirection = 1 // 增加还是减少
this.loginModel.trendNum = todayLoginDiffLast
@@ -253,6 +256,7 @@ export default {
this.anchorModel.count = todayWithdrawAmount
this.anchorModel.money = todayWithdrawNum
this.anchorModel.trendNum = todayWithdrawAmountDiffLast
})
}
}
}