voucher/templates/index.tmpl

62 lines
1.9 KiB
Cheetah
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{.Title}}</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
h1 {
color: #FF6600; /* 设置为橙色可替换为其他颜色代码 */
text-align: center;
margin-bottom: 30px;
}
pre {
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
white-space: pre-line;
line-height: 1.6;
font-size: 16px;
}
pre strong {
color: #007BFF;
}
</style>
</head>
<body>
<pre>
{{if.Order}}
<strong>订单号:</strong> {{.Order.OrderNo}}
<strong>招行订单号:</strong> {{.Order.OutBizNo}}
<strong>订单状态:</strong> {{.Order.Status.GetText}}
<strong>openid:</strong> {{.Order.Account}}
<strong>微信券ID:</strong> {{.Order.VoucherNo}}
<strong>商品编号:</strong> {{.Order.ProductNo}}
<strong>批次号:</strong> {{.Order.BatchNo}}
<strong>商户号:</strong> {{.Order.MerchantNo}}
<strong>appId:</strong> {{.Order.AppID}}
<strong>订单创建时间:</strong> {{.Order.CreateTime}}
<strong>领取成功时间(成功即有该值):</strong> {{.Order.ReceiveSuccessTime}}
<strong>最后一次核销时间(核销即有该值):</strong> {{.Order.LastUseTime}}
<strong>订单备注说明(失败说明):</strong> {{.Order.Remark}}
{{else}}
<h1 style="color: #FF6600">{{.ErrMsg}}</h1>
{{end}}
</pre>
</body>
</html>