Application/Wap/View/User_paywx.html
(完整代码) 1KB<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/wap.css?res=1" />
<title>微信支付</title>
</head>
<body>
<script src="__PUBLIC__/js/jquery-3.3.1.min.js"></script>
<script src="__PUBLIC__/js/layer.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(function(){
if (typeof WeixinJSBridge == "undefined"){
if( document.addEventListener ){
document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
}else if (document.attachEvent){
document.attachEvent('WeixinJSBridgeReady', jsApiCall);
document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
}
} else {
jsApiCall();
}
});
});
function jsApiCall() {
WeixinJSBridge.invoke(
'getBrandWCPayRequest',
{$jsApiParameters},
function(res){
if(res.err_msg == "get_brand_wcpay_request:ok"){
layer.open({
content: '支付成功',
btn: '确定',
shadeClose: false,
yes: function(){ location.href = "{:U('Index/index')}"; }
});
} else {
layer.open({
content: '取消支付',
btn: '确定',
shadeClose: false,
yes: function(){ location.href = "{:U('Index/index')}"; }
});
}
}
);
}
</script>
<div style="line-height:60px; text-align:center;">请等待支付......</div>
</body>
</html>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。