WeChat/nativePay.aspx

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="nativePay.aspx.cs" Inherits="eFrameWork.WeChat.nativePay" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script src="../Scripts/jquery.js"></script>
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="../Plugins/layui226/layui.all.js"></script>
</head>
<script>
    function now() { date = new Date(); var t = date.getFullYear().toString(); t += (date.getMonth() + 1).toString(); t += (date.getDate()).toString(); t += (date.getHours()).toString(); t += (date.getMinutes()).toString(); t += (date.getSeconds()).toString(); t += (date.getMilliseconds()).toString(); return t; };



    var chkTime = null;
    var json;
    var layerIndex = 0;
    function payFor() {
        var url = "?act=getorder&t=" + now();
        $.ajax({
            type: 'get',
            url: url,
            dataType: "json",
            success: function (data) {

                    json = data;

                    showRQCode(json.url);                   

            }
        });


    };
    function checkOrder() {

        var url = "?act=checkorder&orderid=" + json.orderid + "&t=" + now();
        $.ajax({
            type: 'get',
            url: url,
            dataType: "json",
            success: function (data) {
                    if (data.count != "0") {

                        clearTimeout(chkTime);
                        layer.close(layerIndex);
                        alert("支付成功!");
                    }
            }
        });

    };
    function showRQCode(codeurl) {
        layer.open({
            type: 1 //此处以iframe举例
            , title: "微信支付"
            //,skin: 'layui-layer-molv' //加上边框 layui-layer-rim  layui-layer-lan layui-layer-molv layer-ext-moon
            , shadeClose: false //点击遮罩关闭层
            , area: ["280px", "250px"]
后面还有 29 行代码,解锁后查看完整代码

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

AI 解读

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

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