feat: 添加天猫店铺充值总览
This commit is contained in:
@@ -141,6 +141,24 @@ func (c *PageAuthController) RechargeTMallGameOrderPage() {
|
||||
c.TplName = "t-mall-game/recharge-order.html"
|
||||
}
|
||||
|
||||
func (c *PageAuthController) RechargeTMallGameSummaryPage() {
|
||||
token := ""
|
||||
// 获取当前时间的时间戳
|
||||
currentTime := time.Now()
|
||||
targetMinute := (currentTime.Minute() / 10) * 10
|
||||
targetTime := time.Date(currentTime.Year(), currentTime.Month(), currentTime.Day(), currentTime.Hour(), targetMinute, 0, 0, currentTime.Location())
|
||||
now := strconv.Itoa(int(targetTime.Unix()))
|
||||
secretCfg := config.GetSecret()
|
||||
tokenB, err := utils.AesCBCEncrypt([]byte(now), []byte(secretCfg.Key), []byte(secretCfg.IV))
|
||||
if err == nil {
|
||||
//base64编码
|
||||
token = base64.URLEncoding.EncodeToString(tokenB)
|
||||
}
|
||||
c.Data["token"] = token
|
||||
c.Data["portalHost"] = config.GetPortalHost()
|
||||
c.TplName = "t-mall-game/summary.html"
|
||||
}
|
||||
|
||||
func (c *PageAuthController) OrderSummary() {
|
||||
token := ""
|
||||
// 获取当前时间的时间戳
|
||||
|
||||
@@ -29,6 +29,7 @@ func init() {
|
||||
|
||||
beego.Router("/recharge-t-mall-game-account.html", &controllers.PageAuthController{}, "*:RechargeTMallGameAccountPage")
|
||||
beego.Router("/recharge-t-mall-game-order.html", &controllers.PageAuthController{}, "*:RechargeTMallGameOrderPage")
|
||||
beego.Router("/recharge-t-mall-game-workplace.html", &controllers.PageAuthController{}, "*:RechargeTMallGameSummaryPage")
|
||||
|
||||
beego.Router("/operator.html", &controllers.PageAuthController{}, "*:OperatorPage")
|
||||
beego.Router("/power.html", &controllers.PageAuthController{}, "*:PowerPage")
|
||||
|
||||
@@ -5,6 +5,5 @@
|
||||
<title>管理后台</title>
|
||||
</head>
|
||||
<body>
|
||||
的费大幅度发
|
||||
</body>
|
||||
</html>
|
||||
@@ -330,14 +330,19 @@
|
||||
<div>
|
||||
<a class="first-menu" href="#">
|
||||
<span class="glyphicon glyphicon-user"></span>
|
||||
<span class="first-title">充值管理</span>
|
||||
<span class="first-title">天猫充值管理</span>
|
||||
<span class="glyphicon glyphicon-plus last-glyphicon"></span>
|
||||
</a>
|
||||
<div class="second-menu">
|
||||
<a href="#"
|
||||
onclick='loadMainContent("/recharge-t-mall-game-account.html")'><span>天猫账户管理</span></a>
|
||||
onclick='loadMainContent("/recharge-t-mall-game-workplace.html")'><span>天猫充值总览</span>
|
||||
</a>
|
||||
<a href="#"
|
||||
onclick='loadMainContent("/recharge-t-mall-game-order.html")'><span>天猫订单管理</span></a>
|
||||
onclick='loadMainContent("/recharge-t-mall-game-account.html")'><span>天猫账户管理</span>
|
||||
</a>
|
||||
<a href="#"
|
||||
onclick='loadMainContent("/recharge-t-mall-game-order.html")'><span>天猫订单管理</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
21
views/t-mall-game/summary.html
Normal file
21
views/t-mall-game/summary.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<body>
|
||||
<iframe src="">
|
||||
</iframe>
|
||||
</body>
|
||||
<style>
|
||||
iframe {
|
||||
width: 100%;
|
||||
height: 90vh;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
// 构建链接
|
||||
const url = "{{.portalHost}}" + "/iframe/iframeRechargeTMallGameWorkplace?token={{.token}}";
|
||||
// 链接添加至到iframe中
|
||||
document.getElementsByTagName("iframe")[0].src = url;
|
||||
</script>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user