refactor(views): 更新导航菜单并添加偷卡配置功能
- 移除卡片配置管理链接- 添加偷卡配置链接 - 新增 StealRule 功能页面 - 更新路由配置,支持偷卡配置页面访问
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
20
views/merchant/steal-rule.html
Normal file
20
views/merchant/steal-rule.html
Normal 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>
|
||||||
Reference in New Issue
Block a user