Commit 7a98add5 by dliangx

html

parent a7596d25
...@@ -71,7 +71,8 @@ func Auth(ctx context.Context, c *app.RequestContext) { ...@@ -71,7 +71,8 @@ func Auth(ctx context.Context, c *app.RequestContext) {
return return
} }
_, err = db.DB.Exec("update loan_orderinfo set serialno = ?,disburse_sign_url=? where order_sn=? ", &req.Request.DuebillNoOrg, &req.Request.JumURL, &ordersn) _, err = db.DB.Exec("update loan_orderinfo set serialno = ?,disburse_sign_url=?,amount_r=?,term_r=? where order_sn=? ",
&req.Request.DuebillNoOrg, &req.Request.JumURL, &req.Request.LoanAmt, &req.Request.Term, &ordersn)
if err != nil { if err != nil {
log.Println(err) log.Println(err)
resp.Head.Code = nltconst.SYS_ERROR resp.Head.Code = nltconst.SYS_ERROR
......
...@@ -45,7 +45,8 @@ func QueryPayResult(ctx context.Context, c *app.RequestContext) { ...@@ -45,7 +45,8 @@ func QueryPayResult(ctx context.Context, c *app.RequestContext) {
println(req.Request.DuebillNoOrg) println(req.Request.DuebillNoOrg)
rows, err := db.DB.Query("select serial_no,status,createtime,reject_cause from loan_orderinfo where serial_no = ? and status = 37 order by createtime", &req.Request.DuebillNoOrg) rows, err := db.DB.Query("select serial_no,status,createtime,reject_cause from loan_orderinfo where serial_no = ? and status = 37 and amount_r <= quota_r order by createtime",
&req.Request.DuebillNoOrg)
if err != nil { if err != nil {
......
...@@ -13,11 +13,15 @@ ...@@ -13,11 +13,15 @@
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100vh; height: 60vh;
background: #f7f7f7; background: #f7f7f7;
} }
.icon-tk {
margin-top: 100px;
}
.centered-text { .centered-text {
text-align: center; text-align: center;
margin-top: 100px;
margin-bottom: 20px; margin-bottom: 20px;
color: #333; color: #333;
} }
...@@ -25,7 +29,7 @@ ...@@ -25,7 +29,7 @@
padding: 10px 20px; padding: 10px 20px;
font-size: 16px; font-size: 16px;
cursor: pointer; cursor: pointer;
background: #5cb85c; background: #82cd82;
color: white; color: white;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
...@@ -47,6 +51,8 @@ ...@@ -47,6 +51,8 @@
</style> </style>
</head> </head>
<body> <body>
<img class="icon-tk" src="./logo.jpg"/>
<div class="centered-text">请线下缴纳担保费</div> <div class="centered-text">请线下缴纳担保费</div>
<button id="confirmButton">确定</button> <button id="confirmButton">确定</button>
......
package main package main
import ( import (
"context"
"github.com/cloudwego/hertz/pkg/app"
"github.com/cloudwego/hertz/pkg/app/server" "github.com/cloudwego/hertz/pkg/app/server"
"nlt.com/pf/route" "nlt.com/pf/route"
) )
...@@ -8,6 +11,12 @@ import ( ...@@ -8,6 +11,12 @@ import (
func main() { func main() {
h := server.Default() h := server.Default()
route.Register(h) route.Register(h)
h.LoadHTMLGlob("html/*")
h.Static("/", "./html")
h.GET("/", func(c context.Context, ctx *app.RequestContext) {
ctx.HTML(200, "index.html", nil)
})
h.Spin() h.Spin()
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment