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.
187 lines
5.4 KiB
HTML
187 lines
5.4 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1,minimal-ui">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
<title>充值</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<style>
|
|
html{ background: #E2E2E2; height:100%;}
|
|
body {letter-spacing: 0.05em; padding-top:1px; background:#fff; min-height:100%; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC","Helvetica Neue",STHeiti,"Microsoft Yahei",Tahoma,Simsun,sans-serif; position:relative; max-width:650px;min-width:320px; margin:0 auto; font-family: arial,"微软雅黑",STHeiti,"Microsoft Yahei",tahoma,'Hiragino Sans GB',sans-serif;}
|
|
a{ text-decoration:none;}
|
|
.pay_suc{}
|
|
.pay_suc{ text-align:center; width:80%; padding:40px 0px; margin:0 auto;}
|
|
.pay_suc img{ width:30%; max-width:150px;}
|
|
.pay_suc span{ font-size:18px; color:#333; width:90%; display:block; margin: 20px auto; line-height:25px;}
|
|
.pay_suc h3{ font-size:20px; color:#333; font-weight:bold; height:50px; margin-top:30px; border-bottom:1px dashed #e7e7e7; color:#0bc8a6;}
|
|
.pay_suc p{ color: #999;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
text-align: center;
|
|
width: 80%;
|
|
max-width:210px!important;
|
|
font-size: 0.8em;
|
|
display: block;
|
|
margin: 0 auto;}
|
|
.pay_suc a{width: 80%;
|
|
max-width:300px;
|
|
border: 1px solid #999;
|
|
color: #999;
|
|
border-radius: 3px;
|
|
height: 45px;
|
|
line-height: 45px;
|
|
display: block;
|
|
margin: 0 auto; margin-top:40px;}
|
|
.pay_suc a:hover{ background:#999; color:#fff;}
|
|
|
|
</style>
|
|
<div class="news_area" style="padding:0px;">
|
|
<input type="hidden" name="pay_order_number" class="orderno" value="{:I('pay_order_number')}">
|
|
<input type="hidden" name="Scheme" class="Scheme" value="{$Scheme}">
|
|
<br/><br/><br/><br/><br/>
|
|
<style>
|
|
.notice {
|
|
margin: 0 auto;
|
|
padding: 0;
|
|
font-size: 1.2rem;
|
|
background: rgba(25,177,234);
|
|
color: #fff;
|
|
line-height: 3.2rem;
|
|
width: 80%;
|
|
border-radius: 0.7rem;
|
|
}
|
|
</style>
|
|
|
|
<!--未绑定-->
|
|
<div class="pay_suc">
|
|
<if condition="$paystatus eq 1">
|
|
<img src="__IMG__/my_suc.png">
|
|
<h3>支付成功</h3>
|
|
<button class="notice" id="back_success">点击返回</button>
|
|
<script src="__JS__/jquery-1.11.1.min.js"></script>
|
|
<script type="text/javascript">
|
|
var orderno=$('.orderno').val();
|
|
var u = navigator.userAgent;
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
try{
|
|
if(isAndroid){
|
|
window.mengchuang.getPayResult('succeed');
|
|
}else{
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(1);
|
|
|
|
}
|
|
}catch(err){
|
|
/* setTimeout(function () {
|
|
window.location.href= "/mobile.php?s=/User/index.html";
|
|
},1000) */
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
<else/>
|
|
|
|
|
|
|
|
|
|
<img src="__IMG__/my_fail.png">
|
|
<h3>支付失败{$paystatus}</h3>
|
|
<button class="notice" id="back_error">点击返回</button>
|
|
<script src="__JS__/jquery-1.11.1.min.js"></script>
|
|
<script type="text/javascript">
|
|
var orderno=$('.orderno').val();
|
|
var u = navigator.userAgent;
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
try{
|
|
if(isAndroid){
|
|
window.mengchuang.getPayResult('fail');
|
|
}else{
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(0);
|
|
}
|
|
}catch(err){
|
|
/* setTimeout(function () {
|
|
window.location.href= "/mobile.php?s=/User/index.html";
|
|
},1000) */
|
|
}
|
|
</script>
|
|
|
|
|
|
</if>
|
|
|
|
<!-- <p>商品名称: 赤月传说</p> -->
|
|
<!-- <p>商品金额: 8887845</p> -->
|
|
<!-- <a href="mengchuang://showWapPayResult_btnType_?1&back">返回</a> -->
|
|
</div>
|
|
<!--未绑定结束-->
|
|
|
|
</div>
|
|
|
|
<script>
|
|
$("#back_success").click(function() {
|
|
|
|
/* var orderno=$('.orderno').val();
|
|
var u = navigator.userAgent;
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
try{
|
|
if(isAndroid){
|
|
window.mengchuang.getPayResult('succeed');
|
|
}else{
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(1);
|
|
|
|
}
|
|
}catch(err){
|
|
|
|
} */
|
|
// var Scheme=$('.Scheme').val();
|
|
// var orderno=$('.orderno').val();
|
|
// var u = navigator.userAgent;
|
|
// var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
// if(isAndroid){
|
|
// window.mengchuang.getPayResult('succeed');
|
|
// }else{
|
|
window.location.href = '/mobile.php?s=/User/index.html';
|
|
// }
|
|
|
|
});
|
|
$("#back_error").click(function() {
|
|
window.location.href = '/mobile.php?s=/User/index.html';
|
|
/* var orderno=$('.orderno').val();
|
|
var u = navigator.userAgent;
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
try{
|
|
if(isAndroid){
|
|
window.mengchuang.getPayResult('fail');
|
|
}else{
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(0);
|
|
}
|
|
}catch(err){
|
|
|
|
} */
|
|
// var Scheme=$('.Scheme').val();
|
|
// var orderno=$('.orderno').val();
|
|
// var u = navigator.userAgent;
|
|
// var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
// if(isAndroid){
|
|
// window.mengchuang.getPayResult('fail');
|
|
// }else{
|
|
// <if condition="get_wx_type() neq 1">
|
|
// if (!Scheme)
|
|
// ;
|
|
// else
|
|
// window.location.href = Scheme+"://0&back";
|
|
// <else/>
|
|
// window. location.href = "mengchuang://showWapPayResult_btnType_?0&back";
|
|
// </if>
|
|
// }
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|
|
|