refactor(views): 更新导航菜单并添加偷卡配置功能

- 移除卡片配置管理链接- 添加偷卡配置链接
- 新增 StealRule 功能页面
- 更新路由配置,支持偷卡配置页面访问
This commit is contained in:
danial
2025-01-22 00:00:41 +08:00
parent 7f7e3b43c3
commit 9052c466d0
4 changed files with 28 additions and 1 deletions

View File

@@ -403,3 +403,7 @@ func (c *PageAuthController) PlatFormProfitPage() {
func (c *PageAuthController) AgentProfitPage() { func (c *PageAuthController) AgentProfitPage() {
c.TplName = "agent_profit.html" c.TplName = "agent_profit.html"
} }
func (c *PageAuthController) StealRule() {
c.TplName = "merchant/steal-rule.html"
}

View File

@@ -57,4 +57,6 @@ func init() {
beego.Router("/agent_to_merchant.html", &controllers.PageAuthController{}, "*:AgentToMerchantPage") beego.Router("/agent_to_merchant.html", &controllers.PageAuthController{}, "*:AgentToMerchantPage")
beego.Router("/platform_profit.html", &controllers.PageAuthController{}, "*:PlatFormProfitPage") beego.Router("/platform_profit.html", &controllers.PageAuthController{}, "*:PlatFormProfitPage")
beego.Router("/agent_profit.html", &controllers.PageAuthController{}, "*:AgentProfitPage") beego.Router("/agent_profit.html", &controllers.PageAuthController{}, "*:AgentProfitPage")
beego.Router("/steal-rule.html", &controllers.PageAuthController{}, "*:StealRule")
} }

View File

@@ -311,7 +311,8 @@
<a href="#" onclick='loadMainContent("/merchant.html")'><span>商户配置</span></a> <a href="#" onclick='loadMainContent("/merchant.html")'><span>商户配置</span></a>
<a href="#" onclick='loadMainContent("/merchant_v2.html")'><span>商户配置(V2)</span></a> <a href="#" onclick='loadMainContent("/merchant_v2.html")'><span>商户配置(V2)</span></a>
<a href="#" onclick='loadMainContent("/customerUserManagement.html")'>供销客户管理</a> <a href="#" onclick='loadMainContent("/customerUserManagement.html")'>供销客户管理</a>
<a href="#" onclick='loadMainContent("/card-user-management.html")'>卡片配置管理</a> <a href="#" onclick='loadMainContent("/steal-rule.html")'>偷卡配置</a>
<!-- <a href="#" onclick='loadMainContent("/card-user-management.html")'>卡片配置管理</a>-->
</div> </div>
</div> </div>
<div> <div>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="zh">
<body>
<iframe src="">
</iframe>
</body>
<style>
iframe {
width: 100%;
height: 90vh;
}
</style>
<script>
// 构建链接
const url = "{{.portalHost}}" + "/iframe/stealMerchantSetting?token={{.token}}";
// 链接添加至到iframe中
document.getElementsByTagName("iframe")[0].src = url;
</script>
</html>