init
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user