{"id":31,"date":"2026-05-31T17:32:32","date_gmt":"2026-05-31T09:32:32","guid":{"rendered":"https:\/\/gongju.jiahaoyue.top\/?page_id=31"},"modified":"2026-05-31T17:32:33","modified_gmt":"2026-05-31T09:32:33","slug":"%e5%85%85%e5%80%bc%e4%b8%ad%e5%bf%83","status":"publish","type":"page","link":"https:\/\/gongju.jiahaoyue.top\/index.php\/%e5%85%85%e5%80%bc%e4%b8%ad%e5%bf%83\/","title":{"rendered":"\u5145\u503c\u4e2d\u5fc3"},"content":{"rendered":"\n<div style=\"max-width: 500px; margin: 0 auto; padding: 30px; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08);\">\n    <h2 style=\"text-align: center; margin-bottom: 20px;\">\u79ef\u5206\u5145\u503c<\/h2>\n\n    <!-- \u79ef\u5206\u663e\u793a\u533a -->\n    <p style=\"text-align: center; font-size: 16px; color: #333;\">\n        \u5f53\u524d\u79ef\u5206\uff1a<strong id=\"livePoints\" style=\"color: #ff6b6b;\">\u52a0\u8f7d\u4e2d&#8230;<\/strong>\n    <\/p>\n\n    <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px;\">\n        <div onclick=\"selectPackage(this, 4.9, 500)\" style=\"padding: 15px; border: 2px solid #e0e0e0; border-radius: 8px; text-align: center; cursor: pointer;\">\n            <div style=\"font-size: 20px; font-weight: bold;\">500\u79ef\u5206<\/div>\n            <div style=\"color: #ff6b6b; font-size: 18px; margin-top: 5px;\">\u00a54.9<\/div>\n        <\/div>\n        <div onclick=\"selectPackage(this, 9.9, 1000)\" style=\"padding: 15px; border: 2px solid #e0e0e0; border-radius: 8px; text-align: center; cursor: pointer;\">\n            <div style=\"font-size: 20px; font-weight: bold;\">1000\u79ef\u5206<\/div>\n            <div style=\"color: #ff6b6b; font-size: 18px; margin-top: 5px;\">\u00a59.9<\/div>\n        <\/div>\n        <div onclick=\"selectPackage(this, 29.9, 5000)\" style=\"padding: 15px; border: 2px solid #e0e0e0; border-radius: 8px; text-align: center; cursor: pointer;\">\n            <div style=\"font-size: 20px; font-weight: bold;\">5000\u79ef\u5206<\/div>\n            <div style=\"color: #ff6b6b; font-size: 18px; margin-top: 5px;\">\u00a529.9<\/div>\n        <\/div>\n        <div onclick=\"selectPackage(this, 59.9, 12000)\" style=\"padding: 15px; border: 2px solid #e0e0e0; border-radius: 8px; text-align: center; cursor: pointer;\">\n            <div style=\"font-size: 20px; font-weight: bold;\">12000\u79ef\u5206<\/div>\n            <div style=\"color: #ff6b6b; font-size: 18px; margin-top: 5px;\">\u00a559.9<\/div>\n        <\/div>\n    <\/div>\n\n    <p id=\"selectedPackage\" style=\"text-align: center; color: #999; margin-bottom: 20px;\">\u8bf7\u9009\u62e9\u5145\u503c\u5957\u9910<\/p>\n\n    <form id=\"payForm\" method=\"post\" action=\" https:\/\/gongju.jiahaoyue.top\/wp-content\/themes\/twentytwentyfive\/api\/pay_submit.php \">\n        <input type=\"hidden\" name=\"amount\" id=\"payAmount\" value=\"\">\n        <input type=\"hidden\" name=\"subject\" value=\"\u5de5\u5177\u7ad9\u79ef\u5206\u5145\u503c\">\n        <input type=\"hidden\" name=\"body\" value=\"\u5145\u503c\u79ef\u5206\">\n        <input type=\"hidden\" name=\"pay_type\" id=\"payType\" value=\"wxpay\">\n    <\/form>\n\n    <div style=\"display: flex; gap: 15px;\">\n        <button onclick=\"doPay('wxpay')\" style=\"flex: 1; padding: 12px; background: #07c160; color: white; border: none; border-radius: 6px; font-size: 16px; cursor: pointer;\">\u5fae\u4fe1\u652f\u4ed8<\/button>\n        <button onclick=\"doPay('alipay')\" style=\"flex: 1; padding: 12px; background: #1677ff; color: white; border: none; border-radius: 6px; font-size: 16px; cursor: pointer;\">\u652f\u4ed8\u5b9d<\/button>\n    <\/div>\n<\/div>\n\n<script>\n    \/\/ \u663e\u793a\u79ef\u5206\uff08\u4f18\u5148\u4f7f\u7528 wp_head \u8f93\u51fa\u7684\u5168\u5c40\u53d8\u91cf\uff0c\u5426\u5219\u901a\u8fc7 AJAX \u83b7\u53d6\uff09\n    (function() {\n        var pointsEl = document.getElementById('livePoints');\n        if (typeof currentUserBalance !== 'undefined') {\n            pointsEl.textContent = currentUserBalance;\n        } else {\n            \/\/ \u5907\u7528\u65b9\u6848\uff1a\u901a\u8fc7 AJAX \u8bf7\u6c42\n            fetch('\/wp-admin\/admin-ajax.php?action=get_mycred_balance')\n                .then(response => response.text())\n                .then(balance => {\n                    pointsEl.textContent = balance;\n                })\n                .catch(() => {\n                    pointsEl.textContent = '\u83b7\u53d6\u5931\u8d25';\n                });\n        }\n    })();\n\n    var selectedAmount = 0;\n\n    function selectPackage(el, amount, points) {\n        var allDivs = document.querySelectorAll('[onclick^=\"selectPackage\"]');\n        for (var i = 0; i < allDivs.length; i++) {\n            allDivs[i].style.borderColor = '#e0e0e0';\n        }\n        el.style.borderColor = '#ff6b6b';\n        selectedAmount = amount;\n        document.getElementById('selectedPackage').innerHTML = '\u5df2\u9009\u62e9\uff1a<strong>' + points + '\u79ef\u5206<\/strong> = \u00a5' + amount;\n    }\n\n    function doPay(payType) {\n        if (selectedAmount <= 0) {\n            alert('\u8bf7\u5148\u9009\u62e9\u5145\u503c\u5957\u9910');\n            return;\n        }\n        document.getElementById('payAmount').value = selectedAmount;\n        document.getElementById('payType').value = payType;\n        document.getElementById('payForm').submit();\n    }\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u79ef\u5206\u5145\u503c \u5f53\u524d\u79ef\u5206\uff1a\u52a0\u8f7d\u4e2d&#8230; 500\u79ef\u5206 \u00a54.9 1000\u79ef\u5206 \u00a59.9 5000\u79ef\u5206 \u00a529. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-31","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/gongju.jiahaoyue.top\/index.php\/wp-json\/wp\/v2\/pages\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gongju.jiahaoyue.top\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gongju.jiahaoyue.top\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gongju.jiahaoyue.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gongju.jiahaoyue.top\/index.php\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":1,"href":"https:\/\/gongju.jiahaoyue.top\/index.php\/wp-json\/wp\/v2\/pages\/31\/revisions"}],"predecessor-version":[{"id":33,"href":"https:\/\/gongju.jiahaoyue.top\/index.php\/wp-json\/wp\/v2\/pages\/31\/revisions\/33"}],"wp:attachment":[{"href":"https:\/\/gongju.jiahaoyue.top\/index.php\/wp-json\/wp\/v2\/media?parent=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}