mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2025-11-01 11:17:33 +08:00
提交新项目
This commit is contained in:
15
shop/views/error.html
Normal file
15
shop/views/error.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>错误页面</title>
|
||||
<style>
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<p>{{.error}}</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
160
shop/views/index.html
Normal file
160
shop/views/index.html
Normal file
@@ -0,0 +1,160 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title>{{.siteName}}</title>
|
||||
<link rel="shortcut icon" type="tmpay/image/x-icon" href="../static/img/icon.ico">
|
||||
<link href="../static/css/cashier.css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
#maxthon-1eec22d4-0232-4212-8283-6f2ac8f967-iframe {
|
||||
display: block !important;
|
||||
position: absolute !important;
|
||||
visibility: visible !important;
|
||||
z-index: 2147483647 !important;
|
||||
border-style: none !important;
|
||||
opacity: 1 !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, .3) !important;
|
||||
border: 1px solid #b3b3b3 !important
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="">
|
||||
<div class="tastesdk-box">
|
||||
<div class="header clearfix">
|
||||
<div class="title">
|
||||
<p class="logo">
|
||||
<span style="width: 100%;">{{.siteName}}</span>
|
||||
</p>
|
||||
<div class="right">
|
||||
<div class="clearfix">
|
||||
<ul class="clearfix">
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="typedemo" style="height: 900px;">
|
||||
<div class="demo-pc">
|
||||
<div class="pay-jd">
|
||||
<form action="/pay.html" method="post" autocomplete="off">
|
||||
<input type="text" style="display: none" name="orderid" value="{{.orderNo}}">
|
||||
|
||||
<div class="two-step">
|
||||
<p><strong>请您及时付款,以便订单尽快处理!</strong>请您在提交订单后<span>24小时</span>内完成支付,否则订单会自动取消。</p>
|
||||
<ul class="pay-infor">
|
||||
<li>商品名称:{{.pname}}</li>
|
||||
<li>订单编号:<span>{{.orderNo}}</span></li>
|
||||
</ul>
|
||||
<ul class="pay-infor">
|
||||
<li>支付金额:<strong><input type="text" id="amount" name="amount" value="" required>
|
||||
<span>元</span></strong></li>
|
||||
<li class="" style="float: left;">
|
||||
<button type="submit" class="pcdemo-btn sbpay-btn">立即支付</button>
|
||||
</li>
|
||||
</ul>
|
||||
<h4>扫码支付:</h4>
|
||||
<ul class="pay-label type">
|
||||
<li>
|
||||
<input value="UNION_SCAN" checked="checked" name="SCAN" id="UNION_SCAN" type="radio">
|
||||
<label for="UNION_SCAN"><img src="../static/img/yunshanfu.jpg" alt="银联扫码"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="ALI_SCAN" name="SCAN" id="ALI_SCAN" type="radio">
|
||||
<label for="ALI_SCAN"><img src="../static/img/zhifubao.png" alt="支付宝扫码支付"
|
||||
style="width:100px;height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="WEIXIN_SCAN" name="SCAN" id="WEIXIN_SCAN" type="radio">
|
||||
<label for="WEIXIN_SCAN"><img src="../static/img/weixin.png" alt="微信扫码支付"
|
||||
style="width:100px;height: 35px;"><span></span></label>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 style="margin-top: 125px">H5支付(只支持手机端,不支持PC端):</h4>
|
||||
<ul class="pay-label type">
|
||||
<li>
|
||||
<input value="WEIXIN_H5" name="H5" id="WEIXIN_H5" type="radio">
|
||||
<label for="WEIXIN_H5"><img src="../static/img/weixin.jpg" alt="微信H5"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="ALI_H5" name="H5" id="ALI_H5" type="radio">
|
||||
<label for="ALI_H5"><img src="../static/img/zhifubao.png" alt="支付宝H5"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 style="margin-top: 120px">快捷支付:</h4>
|
||||
<ul class="pay-label type">
|
||||
<li>
|
||||
<input value="04031000" name="KJ" id="beijing_kj" type="radio">
|
||||
<label for="beijing_kj"><img src="../static/img/beijing_0.jpg" alt="中国北京银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01020000" name="KJ" id="gongshang_kj" type="radio">
|
||||
<label for="gongshang_kj"><img src="../static/img/gongshang_0.jpg" alt="中国工商银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="03030000" name="KJ" id="guangda_kj" type="radio">
|
||||
<label for="guangda_kj"><img src="../static/img/guangda_0.jpg" alt="中国光大银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01050000" name="KJ" id="jianshe_kj" type="radio">
|
||||
<label for="jianshe_kj"><img src="../static/img/jieshe_0.jpg" alt="中国建设银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="03050000" name="KJ" id="minsheng_kj" type="radio">
|
||||
<label for="minsheng_kj"><img src="../static/img/minsheng_0.jpg" alt="中国民生银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01030000" name="KJ" id="nongye_kj" type="radio">
|
||||
<label for="nongye_kj"><img src="../static/img/nongye_0.jpg" alt="中国农业银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="04012900" name="KJ" id="shanghai_kj" type="radio">
|
||||
<label for="shanghai_kj"><img src="../static/img/shanghai_0.jpg" alt="中国上海银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01000000" name="KJ" id="youzheng_kj" type="radio">
|
||||
<label for="youzheng_kj"><img src="../static/img/youzheng_0.jpg" alt="中国邮政银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
</ul>
|
||||
<input value="CCB" name="bankCode" type="hidden">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="../static/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../static/js/base.js"></script>
|
||||
<script type="text/javascript">
|
||||
$("#amount").blur(function () {
|
||||
var idBank = /([1-9]\d*\.?\d*)|(0\.\d*[1-9])/;
|
||||
if ($("#amount").val().match(idBank) == null) {
|
||||
$("#amount").val("");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
$(function () {
|
||||
window.location = "/";
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
185
shop/views/indexKV.html
Normal file
185
shop/views/indexKV.html
Normal file
@@ -0,0 +1,185 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title>{{.siteName}}</title>
|
||||
<link rel="shortcut icon" type="tmpay/image/x-icon" href="../static/img/icon.ico">
|
||||
<link href="../static/css/cashier.css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
#maxthon-1eec22d4-0232-4212-8283-6f2ac8f967-iframe {
|
||||
display: block !important;
|
||||
position: absolute !important;
|
||||
visibility: visible !important;
|
||||
z-index: 2147483647 !important;
|
||||
border-style: none !important;
|
||||
opacity: 1 !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, .3) !important;
|
||||
border: 1px solid #b3b3b3 !important
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="">
|
||||
<div class="tastesdk-box">
|
||||
<div class="header clearfix">
|
||||
<div class="title">
|
||||
<p class="logo" >
|
||||
<span style="width: 100%;">{{.siteName}}</span>
|
||||
</p>
|
||||
<div class="right">
|
||||
<div class="clearfix">
|
||||
<ul class="clearfix">
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="typedemo" style="height: 600px;">
|
||||
<div class="demo-pc">
|
||||
<div class="pay-jd">
|
||||
<form action="/payfor.py/" method="post" autocomplete="off">
|
||||
<input type="text" style="display: none" name="orderid" value="{{.orderNo}}">
|
||||
|
||||
<div class="two-step">
|
||||
<p><strong>请您及时付款,以便订单尽快处理!</strong>请您在提交订单后<span>24小时</span>内完成支付,否则订单会自动取消。</p>
|
||||
<ul class="pay-infor">
|
||||
<li>商品名称:{{.pname}}</li>
|
||||
<li>订单编号:<span>{{.orderNo}}</span></li>
|
||||
</ul>
|
||||
<ul class="pay-infor">
|
||||
<li>支付金额:<strong><input type="number" name="amount" value="" required>
|
||||
<span>元</span></strong></li>
|
||||
</ul>
|
||||
<h5>扫码支付:</h5>
|
||||
<ul class="pay-label type">
|
||||
<li>
|
||||
<input value="SCAN_YL" name="SCAN" id="SCAN_YL" type="radio">
|
||||
<label for="SCAN_YL"><img src="../static/img/yinlian.jpg" alt="银联扫码"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="SCAN_ALIPAY" checked="checked" name="SCAN" id="SCAN_ALIPAY"
|
||||
type="radio">
|
||||
<label for="SCAN_ALIPAY"><img src="../static/img/zhifubao.png" alt="支付宝扫码支付"
|
||||
style="width:100px;height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="SCAN_WEIXIN" name="SCAN" id="SCAN_WEIXIN" type="radio">
|
||||
<label for="SCAN_WEIXIN"><img src="../static/img/weixin.png" alt="微信扫码支付"
|
||||
style="width:100px;height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="SCAN_QQ" name="SCAN" id="SCAN_QQ" type="radio">
|
||||
<label for="SCAN_QQ"><img src="../static/img/qqq.jpg" alt="QQ扫码支付"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
</ul>
|
||||
<h5 style="margin-top: 115px">网银支付:</h5>
|
||||
<ul class="pay-label type">
|
||||
<li>
|
||||
<input value="04031000" name="WY" id="beijing_wy" type="radio">
|
||||
<label for="beijing_wy"><img src="../static/img/beijing_0.jpg" alt="中国北京银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01020000" name="WY" id="gongshang_wy" type="radio">
|
||||
<label for="gongshang_wy"><img src="../static/img/gongshang_0.jpg" alt="中国工商银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="03030000" name="WY" id="guangda_wy" type="radio">
|
||||
<label for="guangda_wy"><img src="../static/img/guangda_0.jpg" alt="中国光大银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01050000" name="WY" id="jianshe_wy" type="radio">
|
||||
<label for="jianshe_wy"><img src="../static/img/jieshe_0.jpg" alt="中国建设银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="03050000" name="WY" id="minsheng_wy" type="radio">
|
||||
<label for="minsheng_wy"><img src="../static/img/minsheng_0.jpg" alt="中国民生银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01030000" name="WY" id="nongye_wy" type="radio">
|
||||
<label for="nongye_wy"><img src="../static/img/nongye_0.jpg" alt="中国农业银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="04012900" name="WY" id="shanghai_wy" type="radio">
|
||||
<label for="shanghai_wy"><img src="../static/img/shanghai_0.jpg" alt="中国上海银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01000000" name="WY" id="youzheng_wy" type="radio">
|
||||
<label for="youzheng_wy"><img src="../static/img/youzheng_0.jpg" alt="中国邮政银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
</ul>
|
||||
<h5 style="margin-top: 175px">快捷支付:</h5>
|
||||
<ul class="pay-label type">
|
||||
<li>
|
||||
<input value="04031000" name="KJ" id="beijing_kj" type="radio">
|
||||
<label for="beijing_kj"><img src="../static/img/beijing_0.jpg" alt="中国北京银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01020000" name="KJ" id="gongshang_kj" type="radio">
|
||||
<label for="gongshang_kj"><img src="../static/img/gongshang_0.jpg" alt="中国工商银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="03030000" name="KJ" id="guangda_kj" type="radio">
|
||||
<label for="guangda_kj"><img src="../static/img/guangda_0.jpg" alt="中国光大银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01050000" name="KJ" id="jianshe_kj" type="radio">
|
||||
<label for="jianshe_kj"><img src="../static/img/jieshe_0.jpg" alt="中国建设银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="03050000" name="KJ" id="minsheng_kj" type="radio">
|
||||
<label for="minsheng_kj"><img src="../static/img/minsheng_0.jpg" alt="中国民生银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01030000" name="KJ" id="nongye_kj" type="radio">
|
||||
<label for="nongye_kj"><img src="../static/img/nongye_0.jpg" alt="中国农业银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="04012900" name="KJ" id="shanghai_kj" type="radio">
|
||||
<label for="shanghai_kj"><img src="../static/img/shanghai_0.jpg" alt="中国上海银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01000000" name="KJ" id="youzheng_kj" type="radio">
|
||||
<label for="youzheng_kj"><img src="../static/img/youzheng_0.jpg" alt="中国邮政银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
</ul>
|
||||
<input value="CCB" name="bankCode" type="hidden">
|
||||
|
||||
<div class="" style="float: right;">
|
||||
<button type="submit" class="pcdemo-btn sbpay-btn">立即支付</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="../static/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../static/js/base.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
81
shop/views/pay/payfor.html
Normal file
81
shop/views/pay/payfor.html
Normal file
@@ -0,0 +1,81 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title>收银台</title>
|
||||
<link rel="shortcut icon" type="tmpay/image/x-icon" href="../../static/img/icon.ico">
|
||||
<link rel="stylesheet" type="text/css" href="../../static/css/hy_basic.css">
|
||||
</head>
|
||||
|
||||
<body style="">
|
||||
<div class="tastesdk-box" style="margin-top: 15%;">
|
||||
<div class="main">
|
||||
<div class="typedemo" style="height: 600px;">
|
||||
<div style="z-index:100;background:#000000;position:absolute;left:0px;top:0px;display:none;"
|
||||
id="cover"></div>
|
||||
<div class="container">
|
||||
<div class="c-box1 clearfix">
|
||||
<div class="bt_border-green">
|
||||
<div class="hy-hd0815 vip20130401 c30 clearfix">
|
||||
<div class="pay_box fl">
|
||||
<ul class="disc">
|
||||
{{if eq .statusCode "00"}}
|
||||
<h3><img src="../../static/img/barcode/joker.png"></h3>
|
||||
<li>
|
||||
交易金额:{{.orderPrice}}
|
||||
</li>
|
||||
<li>
|
||||
交易订单号:{{.orderNo}}
|
||||
</li>
|
||||
{{else}}
|
||||
<li>
|
||||
交易失败:{{.statusMsg}}
|
||||
</li>
|
||||
{{end}}
|
||||
<li>
|
||||
交易状态:<span id="status">等待支付</span>
|
||||
</li>
|
||||
<li>
|
||||
此订单5分钟内交易有效!
|
||||
</li>
|
||||
<br>
|
||||
<li style="float: right;list-style: none;">
|
||||
<a href="/youxi" style="text-decoration: none;" class="c00">返回支付页</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="../../static/js/jquery-3.2.1.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
//每隔2秒检测cookie中订单状态
|
||||
var count = 0;
|
||||
setInterval('getSession()', 3000);
|
||||
function getSession() {
|
||||
if (count <= 300) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "/queryOrderStatus.py/" +{{.orderNo}},
|
||||
dataType: "JSON",
|
||||
success: function (res) {
|
||||
console.info(res.code);
|
||||
if (res.code == "9") {
|
||||
$("#status").val(res.tradeStatus);
|
||||
window.location.href = "/queryOrder.py/";
|
||||
}
|
||||
}
|
||||
});
|
||||
count++;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
96
shop/views/pay/scan.html
Normal file
96
shop/views/pay/scan.html
Normal file
@@ -0,0 +1,96 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<meta http-equiv="Content-Language" content="zh-cn">
|
||||
<meta name="apple-mobile-web-app-capable" content="no">
|
||||
<meta name="apple-touch-fullscreen" content="yes">
|
||||
<meta name="format-detection" content="telephone=no,email=no">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="white">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<meta http-equiv="Expires" content="0">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Cache-control" content="no-cache">
|
||||
<meta http-equiv="Cache" content="no-cache">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<title>
|
||||
{{.payTypeName}} </title>
|
||||
<link href="../../static/css/pay.css" rel="stylesheet" media="screen">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="body">
|
||||
<h1 class="mod-title">
|
||||
<span class="ico_log
|
||||
ico-0"></span>
|
||||
</h1>
|
||||
<div class="mod-ct">
|
||||
<div class="order">
|
||||
</div>
|
||||
<div class="amount" id="money" style="font-size: 8px;">
|
||||
<label style="color: red;font-size: 30px;">¥{{.price}}</label> </div>
|
||||
<div class="paybtn" style="display: none;" id="btnalipay">
|
||||
<div class="payalipaybtn" style="display: none;">
|
||||
{{.openApp}}
|
||||
</div>
|
||||
|
||||
<h1 style="font-size:1.5em;color:red;">1.截图保存二维码到手机</h1>
|
||||
<h1 style="font-size:1.5em;color:red;">2.打开对应的app进行支付</h1> <div id="openalipay" style="display: none"></div>
|
||||
</div>
|
||||
<div style="color:blue;font-size:13px; display: block;">
|
||||
方式一:直接打开app进行支付APP扫码支付!<br/> 方式二:截图保存到相册,再打开app扫一扫,从相册选择图片!<br> 温馨提示:请不要重复支付,不要修改金额,否则无法到账 </div> <div class="qrcode-img-wrapper" data-role="qrPayImgWrapper">
|
||||
<div data-role="qrPayImg" class="qrcode-img-area">
|
||||
<div class="ui-loading qrcode-loading" data-role="qrPayImgLoading" style="display: none;"></div>
|
||||
<div style="position: relative;display: inline-block;">
|
||||
<div id="show_qrcode" style="padding:8px;"></div>
|
||||
<img src="{{.qrCode}}" width="200px" height="200px">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="time-item" style="padding-top: 5px">
|
||||
<div class="time-item" id="msg"><h2>付款即时到账,未到账可联系我们。 <br>订单号:{{.orderNo}}</h2></div>
|
||||
|
||||
</div>
|
||||
{{/* <div class="tip">
|
||||
<div class="tip-text">
|
||||
<i src="../../static/img/epay.jpg" width="30" height="30"></i> <p id="showtext">打开
|
||||
各大银行APP [扫一扫]</p>
|
||||
</div>
|
||||
</div>*/}}
|
||||
<div class="tip-text">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<script type="text/javascript" src="../../static/js/jquery-3.2.1.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
//每隔2秒检测cookie中订单状态
|
||||
var count = 0;
|
||||
/*setInterval('getSession()', 3000);
|
||||
function getSession() {
|
||||
if (count <= 300) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "/queryOrderStatus.py/" +{{.orderNo}},
|
||||
dataType: "JSON",
|
||||
success: function (res) {
|
||||
console.info(res.code);
|
||||
if (res.code == "9") {
|
||||
$("#status").val(res.tradeStatus);
|
||||
window.location.href = "/queryOrder.py/";
|
||||
}
|
||||
}
|
||||
});
|
||||
count++;
|
||||
}*/
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
1
shop/views/pay/show_bank.html
Normal file
1
shop/views/pay/show_bank.html
Normal file
@@ -0,0 +1 @@
|
||||
{{str2html .bankInfo}}
|
||||
12
shop/views/pay/toPayfor.html
Normal file
12
shop/views/pay/toPayfor.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
<title>收银台</title>
|
||||
<link rel="shortcut icon" type="tmpay/image/x-icon" href="../../static/img/icon.ico">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{str2html .toPayfor}}
|
||||
</body>
|
||||
</html>
|
||||
134
shop/views/pay/userInfo.html
Normal file
134
shop/views/pay/userInfo.html
Normal file
@@ -0,0 +1,134 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title>收银台</title>
|
||||
<link rel="shortcut icon" type="tmpay/image/x-icon" href="../../static/img/icon.ico">
|
||||
<link rel="stylesheet" type="text/css" href="../../static/css/hy_basic.css">
|
||||
<link href="../../static/css/cashier.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body style="">
|
||||
<form action="/payfor_kj.py/" method="post">
|
||||
<div class="" style="margin-top: 15%;">
|
||||
<div class="">
|
||||
<div class="">
|
||||
<div style="z-index:100;background:#000000;position:absolute;left:0px;top:0px;display:none;"
|
||||
id="cover"></div>
|
||||
<div class="container">
|
||||
<div class="c-box1 clearfix">
|
||||
<div class="bt_border-green">
|
||||
<div class="hy-hd0815 vip20130401 c30 clearfix" style="height: 300px">
|
||||
<div class="pay_box fl">
|
||||
<h3 style="position: absolute;left: 200px;"><img
|
||||
src="../../static/img/pay-icon_user.png"> 请输入持卡人信息:</h3>
|
||||
<br><br>
|
||||
<ul class="disc" style="position: absolute;left: 280px;">
|
||||
<li><span>身份证号:</span>
|
||||
<input type="text" id="IDCard" name="IDCard"
|
||||
style="float: right;width: 148px" required/>
|
||||
</li>
|
||||
<li style="list-style: none;">
|
||||
<span style="font-size: 13px;color: red;" id="vIDCard"></span>
|
||||
</li>
|
||||
<li><span>银行卡号:</span>
|
||||
<input type="text" id="IDBank" name="IDBank"
|
||||
style="float: right;width: 148px" required/>
|
||||
</li>
|
||||
<li style="list-style: none;">
|
||||
<span style="font-size: 13px;color: red;" id="vIDBank"></span>
|
||||
</li>
|
||||
<li><span>持卡人:</span>
|
||||
<input type="text" id="userId" name="userId"
|
||||
style="float: right;width: 148px" required/>
|
||||
</li>
|
||||
<li><span>银行预留手机号:</span>
|
||||
<input type="text" id="phone" name="phone" style="float: right;width: 148px"
|
||||
required/>
|
||||
</li>
|
||||
<li style="list-style: none;">
|
||||
<span style="font-size: 13px;color: red;" id="vphone"></span>
|
||||
</li>
|
||||
{{/*<li><span>短信验证码:</span>*/}}
|
||||
{{/*<input type="text" id="phoneCode" name="phoneCode"*/}}
|
||||
{{/*style="float: right;width: 148px"*/}}
|
||||
{{/*required/>*/}}
|
||||
{{/*<button class="pcdemo-btn sbpay-btn"*/}}
|
||||
{{/*style="width: 93px;line-height:25px;height:25px;background-color: #9a9a9a;position: absolute; left: 260px"*/}}
|
||||
{{/*type="button"*/}}
|
||||
{{/*onclick="javascript:history.go(-1);">重发短信验证码*/}}
|
||||
{{/*</button>*/}}
|
||||
{{/*</li>*/}}
|
||||
</ul>
|
||||
<div style="position: absolute; margin-top: 200px;left: 380px">
|
||||
<button class="pcdemo-btn sbpay-btn" style="font-size: 20px" type="submit">提交
|
||||
</button>
|
||||
<button class="pcdemo-btn sbpay-btn"
|
||||
style="width: 43px;background-color: #9a9a9a" type="button"
|
||||
onclick="javascript:history.go(-1);">返回
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="text" name="kj" value="{{.kj}}" style="display: none"/>
|
||||
<input type="text" name="orderNo" value="{{.orderNo}}" style="display: none"/>
|
||||
<input type="text" name="money" value="{{.money}}" style="display: none"/>
|
||||
<input type="text" name="productName" value="{{.productName}}" style="display: none" />
|
||||
</form>
|
||||
<script type="text/javascript" src="../../static/js/jquery-3.2.1.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("#IDCard").blur(function () {
|
||||
var idCard1 = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/,
|
||||
idCard2 = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[A-Z])$/,
|
||||
card = $("#IDCard").val();
|
||||
if (card.match(idCard1) == null && card.match(idCard2) == null) {
|
||||
$("#vIDCard").html("身份证号输入不合法!");
|
||||
return false;
|
||||
} else {
|
||||
$("#vIDCard").html("");
|
||||
}
|
||||
});
|
||||
$("#IDBank").blur(function () {
|
||||
var idBank = /^\d{13,}$/;
|
||||
if ($("#IDBank").val().match(idBank) == null) {
|
||||
$("#vIDBank").html("银行卡号输入不合法!");
|
||||
return false;
|
||||
} else {
|
||||
$("#vIDBank").html("");
|
||||
}
|
||||
});
|
||||
$("#phone").blur(function () {
|
||||
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
|
||||
if ($("#phone").val().match(phone) == null) {
|
||||
$("#vphone").html("手机号输入不合法!");
|
||||
return false;
|
||||
} else {
|
||||
$("#vphone").html("");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// function getPhoneCode() {
|
||||
// $.ajax({
|
||||
// type: "get",
|
||||
// url: "",
|
||||
// success: function (res) {
|
||||
// if (res.code == "9") {
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
49
shop/views/pay_fail.html
Normal file
49
shop/views/pay_fail.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title>收银台</title>
|
||||
<link rel="shortcut icon" type="tmpay/image/x-icon" href="../static/img/icon.ico">
|
||||
<link rel="stylesheet" type="text/css" href="../static/css/hy_basic.css">
|
||||
</head>
|
||||
|
||||
<body style="">
|
||||
<div class="tastesdk-box" style="margin-top: 15%;">
|
||||
<div class="main">
|
||||
<div class="typedemo" style="height: 600px;">
|
||||
<div style="z-index:100;background:#000000;position:absolute;left:0px;top:0px;display:none;"
|
||||
id="cover"></div>
|
||||
<div class="container">
|
||||
<div class="c-box1 clearfix">
|
||||
<div class="bt_border-green">
|
||||
<div class="hy-hd0815 vip20130401 c30 clearfix">
|
||||
<div class="pay_box fl">
|
||||
|
||||
|
||||
<h3><img src="../static/img/pay_fail.png">支付失败!</h3>
|
||||
<ul class="disc">
|
||||
<li>
|
||||
银行卡已扣款
|
||||
<p class="c999">可能是由于网络传输发生故障或延时造成的,请稍后再次查看订单状态,勿重复支付。</p>
|
||||
</li>
|
||||
<li>
|
||||
银行卡未扣款
|
||||
<p class="c999">请选择其他支付方式完成支付。<a
|
||||
href="/payfor.py" class="c00">返回支付页</a>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
44
shop/views/pay_ok.html
Normal file
44
shop/views/pay_ok.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title>收银台</title>
|
||||
<link rel="shortcut icon" type="tmpay/image/x-icon" href="../static/img/icon.ico">
|
||||
<link rel="stylesheet" type="text/css" href="../static/css/hy_basic.css">
|
||||
<link href="../static/css/cashier.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body style="">
|
||||
<div class="tastesdk-box" style="margin-top: 15%;">
|
||||
<div class="main">
|
||||
<div class="typedemo" style="height: 600px;">
|
||||
<div style="z-index:100;background:#000000;position:absolute;left:0px;top:0px;display:none;"
|
||||
id="cover"></div>
|
||||
<div class="container">
|
||||
<div class="c-box1 clearfix">
|
||||
<div class="bt_border-green">
|
||||
<div class="hy-hd0815 vip20130401 c30 clearfix">
|
||||
<div class="pay_box fl">
|
||||
|
||||
|
||||
<h3><img src="../static/img/pay_ok1.png">支付成功!</h3>
|
||||
<ul class="disc">
|
||||
<li>交易订单号:{{.orderNo}}</li>
|
||||
<li>付款金额:{{.orderPrice}} 元</li>
|
||||
<li>交易时间:{{.orderTime}}</li>
|
||||
<li><button type="button" onclick="javascript:window.location.href='{{.hrefUrl}}'" class="pcdemo-btn sbpay-btn">返回商城</button></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
155
shop/views/pay_page.html
Normal file
155
shop/views/pay_page.html
Normal file
@@ -0,0 +1,155 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title>{{.siteName}}</title>
|
||||
<link rel="shortcut icon" type="tmpay/image/x-icon" href="../static/img/icon.ico">
|
||||
<link href="../static/css/cashier.css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
#maxthon-1eec22d4-0232-4212-8283-6f2ac8f967-iframe {
|
||||
display: block !important;
|
||||
position: absolute !important;
|
||||
visibility: visible !important;
|
||||
z-index: 2147483647 !important;
|
||||
border-style: none !important;
|
||||
opacity: 1 !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, .3) !important;
|
||||
border: 1px solid #b3b3b3 !important
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="">
|
||||
<div class="tastesdk-box">
|
||||
<div class="header clearfix">
|
||||
<div class="title">
|
||||
<p class="logo">
|
||||
<span style="width: 100%;">{{.siteName}}</span>
|
||||
</p>
|
||||
<div class="right">
|
||||
<div class="clearfix">
|
||||
<ul class="clearfix">
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="typedemo" style="height: 900px;">
|
||||
<div class="demo-pc">
|
||||
<div class="pay-jd">
|
||||
<form action="/payfor.py/" method="post" autocomplete="off">
|
||||
<input type="text" style="display: none" name="orderid" value="{{.orderNo}}">
|
||||
<input type="text" style="display: none" name="shopName" value="{{.shopName}}">
|
||||
<input type="text" style="display: none" name="productName" value="{{.productName}}">
|
||||
|
||||
<div class="two-step">
|
||||
<p><strong>请您及时付款,以便订单尽快处理!</strong></p>
|
||||
<ul class="pay-infor">
|
||||
<li>商城:{{.shopName}}</li>
|
||||
<li>商品名称:{{.productName}}</li>
|
||||
<li>订单编号:<span>{{.orderNo}}</span></li>
|
||||
<li>商品数量:{{.count}}</li>
|
||||
<li>商品单价:{{.price}}</li>
|
||||
</ul>
|
||||
<ul class="pay-infor">
|
||||
<li>支付金额:<strong><input style="border: 0px;width: 34px;color: red;" value="{{.allPrice}}" id="amount" name="amount" />
|
||||
<span>元</span></strong></li>
|
||||
<li class="" style="float: left;">
|
||||
<button type="submit" class="pcdemo-btn sbpay-btn">立即支付</button>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 >扫码支付:</h4>
|
||||
<ul class="pay-label type" >
|
||||
<li>
|
||||
<input value="SCAN_YL" name="SCAN" id="SCAN_YL" type="radio" checked>
|
||||
<label for="SCAN_YL"><img src="../static/img/yinlian.jpg" alt="银联扫码"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="SCAN_QQ" name="SCAN" id="SCAN_QQ" type="radio">
|
||||
<label for="SCAN_QQ"><img src="../static/img/qqq.jpg" alt="QQ扫码支付"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 style="margin-top: 115px">H5支付:</h4>
|
||||
<ul class="pay-label type">
|
||||
<li>
|
||||
<input value="SCAN_YL_H5" name="H5" id="SCAN_YL_H5" type="radio">
|
||||
<label for="SCAN_YL_H5"><img src="../static/img/yinlian.jpg" alt="银联H5"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h4 style="margin-top: 115px">快捷支付:</h4>
|
||||
<ul class="pay-label type">
|
||||
<li>
|
||||
<input value="04031000" name="KJ" id="beijing_kj" type="radio">
|
||||
<label for="beijing_kj"><img src="../static/img/beijing_0.jpg" alt="中国北京银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01020000" name="KJ" id="gongshang_kj" type="radio">
|
||||
<label for="gongshang_kj"><img src="../static/img/gongshang_0.jpg" alt="中国工商银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="03030000" name="KJ" id="guangda_kj" type="radio">
|
||||
<label for="guangda_kj"><img src="../static/img/guangda_0.jpg" alt="中国光大银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01050000" name="KJ" id="jianshe_kj" type="radio">
|
||||
<label for="jianshe_kj"><img src="../static/img/jieshe_0.jpg" alt="中国建设银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="03050000" name="KJ" id="minsheng_kj" type="radio">
|
||||
<label for="minsheng_kj"><img src="../static/img/minsheng_0.jpg" alt="中国民生银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01030000" name="KJ" id="nongye_kj" type="radio">
|
||||
<label for="nongye_kj"><img src="../static/img/nongye_0.jpg" alt="中国农业银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="04012900" name="KJ" id="shanghai_kj" type="radio">
|
||||
<label for="shanghai_kj"><img src="../static/img/shanghai_0.jpg" alt="中国上海银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
<li>
|
||||
<input value="01000000" name="KJ" id="youzheng_kj" type="radio">
|
||||
<label for="youzheng_kj"><img src="../static/img/youzheng_0.jpg" alt="中国邮政银行"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h4 style="margin-top: 175px">WAP支付(只支持手机端,不支持PC端):</h4>
|
||||
<ul class="pay-label type">
|
||||
<li>
|
||||
<input value="SCAN_QQ_WAP" name="WAP" id="SCAN_QQ_WAP" type="radio">
|
||||
<label for="SCAN_QQ_WAP"><img src="../static/img/qqq.jpg" alt="QQ-WAP支付"
|
||||
style="height: 35px;"><span></span></label>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<input value="CCB" name="bankCode" type="hidden">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="../static/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../static/js/base.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user