Commit 7a98add5 by dliangx

html

parent a7596d25
......@@ -71,7 +71,8 @@ func Auth(ctx context.Context, c *app.RequestContext) {
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 {
log.Println(err)
resp.Head.Code = nltconst.SYS_ERROR
......
......@@ -45,7 +45,8 @@ func QueryPayResult(ctx context.Context, c *app.RequestContext) {
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 {
......
......@@ -13,11 +13,15 @@
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
height: 60vh;
background: #f7f7f7;
}
.icon-tk {
margin-top: 100px;
}
.centered-text {
text-align: center;
margin-top: 100px;
margin-bottom: 20px;
color: #333;
}
......@@ -25,7 +29,7 @@
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background: #5cb85c;
background: #82cd82;
color: white;
border: none;
border-radius: 5px;
......@@ -47,6 +51,8 @@
</style>
</head>
<body>
<img class="icon-tk" src="./logo.jpg"/>
<div class="centered-text">请线下缴纳担保费</div>
<button id="confirmButton">确定</button>
......
package main
import (
"context"
"github.com/cloudwego/hertz/pkg/app"
"github.com/cloudwego/hertz/pkg/app/server"
"nlt.com/pf/route"
)
......@@ -8,6 +11,12 @@ import (
func main() {
h := server.Default()
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()
}
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