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,40 +219,44 @@ export default {
|
|||||||
},
|
},
|
||||||
getTodayStatistics() {
|
getTodayStatistics() {
|
||||||
// todo fetch
|
// todo fetch
|
||||||
const {
|
staticIndex().then(response => {
|
||||||
todayLoginNum,
|
const {
|
||||||
todayLoginDiffLast,
|
todayLoginNum,
|
||||||
anchorNum,
|
todayLoginDiffLast,
|
||||||
todayRechargeAmountNum,
|
anchorNum,
|
||||||
todayRechargeNum,
|
todayRechargeAmountNum,
|
||||||
todayRechargeAmountDiffLast,
|
todayRechargeNum,
|
||||||
todayWithdrawAmount,
|
todayRechargeAmountDiffLast,
|
||||||
todayWithdrawNum,
|
todayWithdrawAmount,
|
||||||
todayWithdrawAmountDiffLast
|
todayWithdrawNum,
|
||||||
} = {
|
todayWithdrawAmountDiffLast
|
||||||
todayLoginNum: 100,
|
} = response.data
|
||||||
todayLoginDiffLast: 8.6,
|
/* {
|
||||||
anchorNum: 58,
|
todayLoginNum: 100,
|
||||||
todayRechargeAmountNum: 200,
|
todayLoginDiffLast: 8.6,
|
||||||
todayRechargeNum: 10,
|
anchorNum: 58,
|
||||||
todayRechargeAmountDiffLast: 5.6,
|
todayRechargeAmountNum: 200,
|
||||||
todayWithdrawAmount: 500,
|
todayRechargeNum: 10,
|
||||||
todayWithdrawNum: 1,
|
todayRechargeAmountDiffLast: 5.6,
|
||||||
todayWithdrawAmountDiffLast: 5.9
|
todayWithdrawAmount: 500,
|
||||||
}
|
todayWithdrawNum: 1,
|
||||||
this.loginModel.count = todayLoginNum
|
todayWithdrawAmountDiffLast: 5.9
|
||||||
this.loginModel.trendDirection = 1 // 增加还是减少
|
} */
|
||||||
this.loginModel.trendNum = todayLoginDiffLast
|
|
||||||
|
|
||||||
this.topUpModel.count = anchorNum // 主播人数
|
this.loginModel.count = todayLoginNum
|
||||||
|
this.loginModel.trendDirection = 1 // 增加还是减少
|
||||||
|
this.loginModel.trendNum = todayLoginDiffLast
|
||||||
|
|
||||||
this.withdrawDepositModel.count = todayRechargeAmountNum // 充值金额
|
this.topUpModel.count = anchorNum // 主播人数
|
||||||
this.withdrawDepositModel.money = todayRechargeNum
|
|
||||||
this.withdrawDepositModel.trendNum = todayRechargeAmountDiffLast // 与昨日相比
|
|
||||||
|
|
||||||
this.anchorModel.count = todayWithdrawAmount
|
this.withdrawDepositModel.count = todayRechargeAmountNum // 充值金额
|
||||||
this.anchorModel.money = todayWithdrawNum
|
this.withdrawDepositModel.money = todayRechargeNum
|
||||||
this.anchorModel.trendNum = todayWithdrawAmountDiffLast
|
this.withdrawDepositModel.trendNum = todayRechargeAmountDiffLast // 与昨日相比
|
||||||
|
|
||||||
|
this.anchorModel.count = todayWithdrawAmount
|
||||||
|
this.anchorModel.money = todayWithdrawNum
|
||||||
|
this.anchorModel.trendNum = todayWithdrawAmountDiffLast
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user