From 9052c466d04793054b645b284bab3901597d9bb7 Mon Sep 17 00:00:00 2001 From: danial Date: Wed, 22 Jan 2025 00:00:41 +0800 Subject: [PATCH] =?UTF-8?q?refactor(views):=20=E6=9B=B4=E6=96=B0=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E8=8F=9C=E5=8D=95=E5=B9=B6=E6=B7=BB=E5=8A=A0=E5=81=B7?= =?UTF-8?q?=E5=8D=A1=E9=85=8D=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除卡片配置管理链接- 添加偷卡配置链接 - 新增 StealRule 功能页面 - 更新路由配置,支持偷卡配置页面访问 --- internal/controllers/pageController.go | 4 ++++ internal/routers/router_pages.go | 2 ++ views/index.html | 3 ++- views/merchant/steal-rule.html | 20 ++++++++++++++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 views/merchant/steal-rule.html diff --git a/internal/controllers/pageController.go b/internal/controllers/pageController.go index 08a82e8..a677784 100644 --- a/internal/controllers/pageController.go +++ b/internal/controllers/pageController.go @@ -403,3 +403,7 @@ func (c *PageAuthController) PlatFormProfitPage() { func (c *PageAuthController) AgentProfitPage() { c.TplName = "agent_profit.html" } + +func (c *PageAuthController) StealRule() { + c.TplName = "merchant/steal-rule.html" +} diff --git a/internal/routers/router_pages.go b/internal/routers/router_pages.go index c845f64..872ac45 100644 --- a/internal/routers/router_pages.go +++ b/internal/routers/router_pages.go @@ -57,4 +57,6 @@ func init() { beego.Router("/agent_to_merchant.html", &controllers.PageAuthController{}, "*:AgentToMerchantPage") beego.Router("/platform_profit.html", &controllers.PageAuthController{}, "*:PlatFormProfitPage") beego.Router("/agent_profit.html", &controllers.PageAuthController{}, "*:AgentProfitPage") + beego.Router("/steal-rule.html", &controllers.PageAuthController{}, "*:StealRule") + } diff --git a/views/index.html b/views/index.html index f1d5271..38e0e1b 100644 --- a/views/index.html +++ b/views/index.html @@ -311,7 +311,8 @@ 商户配置 商户配置(V2) 供销客户管理 - 卡片配置管理 + 偷卡配置 +
diff --git a/views/merchant/steal-rule.html b/views/merchant/steal-rule.html new file mode 100644 index 0000000..19d5ca4 --- /dev/null +++ b/views/merchant/steal-rule.html @@ -0,0 +1,20 @@ + + + + + + + + + \ No newline at end of file