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