获取第一个页面的数据

This commit is contained in:
kongyuebin
2021-05-04 16:16:14 +08:00
parent c48d2f3e2c
commit a56fa52493
4 changed files with 33 additions and 34 deletions

View File

@@ -33,8 +33,10 @@ func (c *ShowPageController) WelcomePage() {
c.Data["balance"] = accountInfo.Balance
c.Data["unBalance"] = accountInfo.FreezeAmount
c.Data["settleAmount"] = accountInfo.SettleAmount
//c.Data["todayAmount"] = accountInfo.TodayIncome
// 获取今天充值金额
todayIncome := accountService.GetTodayIncome()
logs.Debug("获取到当天充值金额:", todayIncome)
c.Data["todayAmount"] = todayIncome
c.TplName = "welcome.html"
}