This commit is contained in:
77
2024-03-18 20:56:46 +08:00
parent 79d79f69ce
commit e165f78a1c
3 changed files with 38 additions and 81 deletions

View File

@@ -219,7 +219,7 @@ export default {
},
getTodayStatistics() {
// todo fetch
staticIndex().then(response => {
/* staticIndex().then(response => {
const {
todayLoginNum,
todayLoginDiffLast,
@@ -231,7 +231,18 @@ export default {
todayWithdrawNum,
todayWithdrawAmountDiffLast
} = response.data
/* {
}) */
const {
todayLoginNum,
todayLoginDiffLast,
anchorNum,
todayRechargeAmountNum,
todayRechargeNum,
todayRechargeAmountDiffLast,
todayWithdrawAmount,
todayWithdrawNum,
todayWithdrawAmountDiffLast
} = {
todayLoginNum: 100,
todayLoginDiffLast: 8.6,
anchorNum: 58,
@@ -241,8 +252,7 @@ export default {
todayWithdrawAmount: 500,
todayWithdrawNum: 1,
todayWithdrawAmountDiffLast: 5.9
} */
};
this.loginModel.count = todayLoginNum
this.loginModel.trendDirection = 1 // 增加还是减少
this.loginModel.trendNum = todayLoginDiffLast
@@ -256,7 +266,6 @@ export default {
this.anchorModel.count = todayWithdrawAmount
this.anchorModel.money = todayWithdrawNum
this.anchorModel.trendNum = todayWithdrawAmountDiffLast
})
}
}
}