first commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>测试支付</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>商户订单号:<input type="text" id="payId"/></p>
|
||||
<p>商户订单价:<input type="number" id="price" value="0.1"/></p>
|
||||
<p>自定义参数:<input type="text" id="param" value="vone666"/></p>
|
||||
<p>支付方式:<select id="type"><option value="1">微信支付</option><option value="2">支付宝支付</option></select></p>
|
||||
<button onclick="zf()">支付</button>
|
||||
<script src="https://lib.baomitu.com/jquery/3.4.0/jquery.min.js"></script>
|
||||
<script>
|
||||
$("#payId").val(new Date().getTime());
|
||||
function zf() {
|
||||
var p = "payId="+$("#payId").val() + "&price="+$("#price").val()+"¶m="+$("#param").val()+"&type="+$("#type").val();
|
||||
window.location.href = "main.php?" + p;
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user