提交
This commit is contained in:
47
app/home/view/pay/h5result.html
Normal file
47
app/home/view/pay/h5result.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>{:lang('pay.wechat_pay_title')}</title>
|
||||
<script type="text/javascript" src="/static/js/jquery-1.8.3.min.js"></script>
|
||||
<script type="text/javascript" src="/static/js/jquery-weui.min.js"></script>
|
||||
<link rel="stylesheet" href="/static/css/weui.min.css">
|
||||
<link rel="stylesheet" href="/static/css/jquery-weui.min.css">
|
||||
<script type="text/javascript">
|
||||
$(document).on("click", "#confirm", function () {
|
||||
//进行查询订单
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{:url('pay/h5result',['order_sn'=>$order_sn])}",//+tab,
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
$.alert(data.msg);
|
||||
setTimeout(function () {
|
||||
location.href = data.url; // 跳转
|
||||
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
})
|
||||
$(document).on("click", "#repay", function () {
|
||||
//进行重新支付
|
||||
window.location.href="{:url('pay/pay',['order_sn'=>$order_sn])}";
|
||||
})
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="weui-mask weui-mask--visible"></div>
|
||||
<div class="weui-dialog weui-dialog--visible">
|
||||
<div class="weui-dialog__hd">
|
||||
<strong class="weui-dialog__title">{:lang('pay.dialog_title')}</strong>
|
||||
</div>
|
||||
<div class="weui-dialog__bd">{:lang('pay.payment_confirmation')}</div>
|
||||
<div class="weui-dialog__ft">
|
||||
<a href="javascript:;" class="weui-dialog__btn default" id="repay">{:lang('pay.repay_button')}</a>
|
||||
<a href="javascript:;" class="weui-dialog__btn primary" id="confirm">{:lang('pay.confirm_button')}</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user