You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dongfeng-pay/legend/views/merchant-key.html

92 lines
4.0 KiB
Go

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title></title>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
{{/* <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />*/}}
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" href="../static/x-admin/css/font.css">
<link rel="stylesheet" href="../static/x-admin/css/xadmin.css">
<!-- <link rel="stylesheet" href="./css/theme5.css"> -->
<script src="../static/x-admin/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="../static/x-admin/js/xadmin.js"></script>
<script type="text/javascript" src="../static/js/jquery-3.5.1.min.js"></script>
<!-- IE8/9 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="layui-fluid">
{{/* <div class="layui-row layui-col-space15">*/}}
<div class="layui-card">
<div class="layui-card-header"><strong></strong></div>
<div class="layui-card-body ">
<table class="layui-table">
<tbody>
<tr>
<th><h3></h3></th>
<td><h3>{{.userName}}</h3></td></tr>
<tr>
<th><h3></h3></th>
<td>{{.userInfo.MerchantUid}}</td></tr>
<tr>
<th><h3></h3></th>
<td><h3 id="copy-key" style="float:left;">{{.userInfo.MerchantSecret}} </h3>
<button style="float:left; margin-left: 20px;" class="layui-btn layui-btn-normal layui-btn-sm" onclick="copy();"></button>
</td>
</tr>
<tr>
<th><h3>KEY</h3></th>
<td><h3 id="copy-pay" style="float:left;">{{.userInfo.MerchantKey}}</h3>
<button style="float: left; margin-left: 20px;" class="layui-btn layui-btn-normal layui-btn-sm" onclick="copy(1);"></button></td></tr>
<tr>
<th><h3></h3></th>
<td><h3>{{.bankInfo.AccountName}}</h3></td></tr>
<tr>
<th><h3></h3></th>
<td><h3>{{.bankInfo.BankName}}</h3></td></tr>
<tr>
<th><h3></h3></th>
<td><h3>{{.bankInfo.BankNo}}</h3></td></tr>
<tr>
<th><h3></h3></th>
<td><h3>{{.bankInfo.BankCode}}</h3></td></tr>
<tr>
<th><h3></h3></th>
<td><h3>{{.bankInfo.PhoneNo}}</h3></td></tr>
</tbody>
</table>
</div>
{{/* </div>*/}}
</div>
<style id="welcome_style"></style>
</div>
</div>
</div>
<script>
function copy(num) {
let texts = document.getElementById("copy-key").innerText;
if (num === 1) {
texts = document.getElementById("copy-pay").innerText;
}
let inputs = document.createElement("input");
inputs.value = texts;
document.body.appendChild(inputs);
inputs.select();
document.execCommand('copy');
inputs.parentNode.removeChild(inputs);
let layer = layui.layer;
layer.msg("复制成功", {time: 1000});
}
</script>
</body>
</html>