refactor(walmart-card): 更新沃尔玛充值页面路由和 iframe URL

- 修改 account.html 和 order.html 中的 iframe URL,将 JD 替换为 Walmart
- 更新 router_pages.go 中的路由配置,将 JDAccountPage 和 JDOrderPage 替换为 WalmartAccountPage 和 WalmartOrderPage
This commit is contained in:
danial
2025-01-13 21:32:11 +08:00
parent 0d1d084a7e
commit 21aee3f08a
3 changed files with 4 additions and 4 deletions

View File

@@ -31,8 +31,8 @@ func init() {
beego.Router("/recharge-jd-account.html", &controllers.PageAuthController{}, "*:JDAccountPage")
beego.Router("/recharge-jd-order.html", &controllers.PageAuthController{}, "*:JDOrderPage")
beego.Router("/recharge-walmart-account.html", &controllers.PageAuthController{}, "*:JDAccountPage")
beego.Router("/recharge-walmart-order.html", &controllers.PageAuthController{}, "*:JDOrderPage")
beego.Router("/recharge-walmart-account.html", &controllers.PageAuthController{}, "*:WalmartAccountPage")
beego.Router("/recharge-walmart-order.html", &controllers.PageAuthController{}, "*:WalmartOrderPage")
beego.Router("/recharge-t-mall-game-account.html", &controllers.PageAuthController{}, "*:RechargeTMallGameAccountPage")
beego.Router("/recharge-t-mall-game-order.html", &controllers.PageAuthController{}, "*:RechargeTMallGameOrderPage")

View File

@@ -12,7 +12,7 @@
</style>
<script>
// 构建链接
const url = "{{.portalHost}}" + "/iframe/JDAccount?token={{.token}}";
const url = "{{.portalHost}}" + "/iframe/WalmartAccount?token={{.token}}";
// 链接添加至到iframe中
document.getElementsByTagName("iframe")[0].src = url;
</script>

View File

@@ -13,7 +13,7 @@
</style>
<script>
// 构建链接
const url = "{{.portalHost}}" + "/iframe/JDOrder?token={{.token}}";
const url = "{{.portalHost}}" + "/iframe/WalmartOrder?token={{.token}}";
// 链接添加至到iframe中
document.getElementsByTagName("iframe")[0].src = url;
</script>