SuLei.Web/api/payment/wxapipay/jsapipay.aspx

(完整代码) 1KB

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="jsapipay.aspx.cs" Inherits="SuLei.Web.api.payment.wxapipay.jsapipay" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>微信公众号支付</title>
<script type="text/javascript">
    //调用微信JS api 支付
    function jsApiCall(){
        WeixinJSBridge.invoke(
            'getBrandWCPayRequest',
            <%=wxJsApiParam%>, //josn串
            function (res){
                WeixinJSBridge.log(res.err_msg);
                 if(res.err_msg == "get_brand_wcpay_request:ok" ) {
                    window.location.href="<%=returnUrl%>"; //成功后跳转到提示页面
                 }
                
            }
        );
    }
    function callpay(){
        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();
        }
    }
    //页面加载完成后执行函数
    window.onload = callpay;
</script>
</head>

<body>

</body>
</html>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。