weixin_api/wxpay/example/NativeAjax.aspx

(完整代码) 1KB

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NativeAjax.aspx.cs" Inherits="weixin_api.wxpay.example.NotiveAjax" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="content-type" content="text/html;image/gif;charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1" /> 
    <title>微信支付样例-扫码支付</title>
    <script src="/js/jquery.js"></script>
</head>
<body>
	<div style="margin-left: 10px;color:#00CD00;font-size:30px;font-weight: bolder;" id="div1">扫码支付模式二</div><br/>
	<asp:Image ID="Image2" runat="server" style="width:200px;height:200px;"/>
	<script>
	    $(function () {
	        code = "<%=code%>";

	        //code = "154061733120190627102355527";
	        my = setInterval(function () {
	            load();
	        }, 1000);
	        function load() {
	            $.post('orderquery.ashx', { 'out_trade_no': code }, function (data) {
	                //alert(data);
	                if (data == 'SUCCESS') {
	                    $('#div1').html('支付成功');
	                    clearInterval(my);
	                    setTimeout("location.href='/index.html'", 3000);
	                } else if (data == 'NOTPAY') {
	                    $('#div1').html('请支付');
	                }

	            })
	        }
	    });
	   
	</script>
</body>
</html>

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

AI 解读 AI

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

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