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.

81 lines
2.5 KiB
HTML

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>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="__CSS__/weui.mim.css">
<link rel="stylesheet" href="__CSS__/sdkptbpay.css">
<script src="__JS__/resize.js" type=""></script>
<title>支付回调</title>
</head>
<body>
<div class="callback-box">
<input type="hidden" name="pay_order_number" class="orderno" value="{$pay_order_number}">
<input type="hidden" name="Scheme" class="Scheme" value="{$Scheme}">
<input type="hidden" name="device" class="device" value="{$device}">
<input type="hidden" name="at_once" class="at_once" value="{$at_once}">
<div class="close" onclick="javascript:history.go(-1);">
<a href="javascript:">
<img src="__IMG__/callback/close.png">
</a>
</div>
<div class="wxicon">
<img src="__IMG__/pay/wxpay.png">
</div>
<div class="paydesc">
<div>
<p>1、如果未打开微信客户端或者未完成付款点击“继续付款”<br/>2、如果您已完成请点击“已完成付款”。</p>
</div>
</div>
<div class="btn1">
<a href="{$pay_url}" style="background:url('__IMG__/callback/btn1.png') no-repeat center center/100% 100%;">
继续支付
</a>
</div>
<div class="btn2">
<a id="payed" data-order="{$pay_order_number}" href="javascript:" style="background:url('__IMG__/callback/btn2.png') no-repeat center center/100% 100%;">
已完成付款
</a>
</div>
<div class="whitesc"></div>
</div>
</body>
<script src="__JS__/jquery.min.js"></script>
<script>
$(function() {
$("#payed").click(function() {
var orderno=$('.orderno').val();
var device=$('.device').val();
if (1) {
if (!device) {
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
if (isAndroid)
device =1;
else
device =2;
}
// android
if (device == 1) {
window.mengchuang.getPayResult('succeed');
} else {
window.webkit.messageHandlers.exchangeResult.postMessage(1);
}
}
});
setTimeout(function () { if ($('.at_once').val() == 1) {
window.location.href = "{$pay_url}";
} }, 1);
});
</script>
</html>