<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试支付</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/layui.js"></script>
    <script src="/js/qrcode.js"></script>
    <script type="text/javascript">
        var $ = null;
        var form = null;
        var layer = null;
        var laydate = null;
        layui.use(["layer", "form"], function(){
            $ = layui.$;
            form = layui.form;
            layer = layui.layer;

            $.ajax({
                url: "/wxpay/qrcode",
                type: "get",
                data: {
                    "price": "0.01"
                },
                headers: {"token": "07E20E117812C34B244EA73B99A65918CAD573DFB012FC523FD3CDA2E259EA06BC98731115C4DEFFF5C1226FE6DF81058A9E695C6C9BFF9B76AD417F0197BFAE1035BC7A5F3A72D83A63C8908F50DC71694CD87D43569EC0780735CCF3CAEE9AD61AD9E960E16E3A02C3CAC48BB6389C8873ED221E9E311DC37F96AB06FB94C39A788DD1BEF2585ACA2FCCDD487BF880C3030BA49F152051A1E54ACBCDE310ABF04404B51EC138AF"},
                dataType: "json",
                success: (data) => {
                    console.log(data)
                },
                error: () => {
                    layer.alert("服务器异常，请联系管理员", {icon: 2});
                    layer.closeAll("loading");
                }
            });
        })
    </script>
</head>
<body>

</body>
</html>