提交新项目

This commit is contained in:
kongyuebin
2019-12-19 14:47:58 +08:00
parent 7ba20ac1b9
commit f29066a984
609 changed files with 238892 additions and 0 deletions

View 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
View 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>

View File

@@ -0,0 +1 @@
{{str2html .bankInfo}}

View 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>

View 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">&nbsp;&nbsp;请输入持卡人信息:</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>