{"id":98,"date":"2026-12-03T15:07:05","date_gmt":"2026-12-03T07:07:05","guid":{"rendered":"https:\/\/stan1688.com\/?page_id=98"},"modified":"2026-12-03T15:08:10","modified_gmt":"2026-12-03T07:08:10","slug":"%e9%99%84%e8%bf%91%e5%95%86%e5%ae%b6%e6%90%9c%e7%b4%a2","status":"publish","type":"page","link":"https:\/\/www.stan1688.com\/?page_id=98","title":{"rendered":"\u9644\u8fd1\u5546\u5bb6\u641c\u7d22"},"content":{"rendered":"    <div id=\"amap_search_box\" style=\"max-width:600px;\">\n        <div style=\"display:flex;gap:10px;flex-wrap:wrap;margin-bottom:15px;\">\n            <input type=\"text\" id=\"amap_keyword\" placeholder=\"\u8f93\u5165\u5173\u952e\u8bcd\uff0c\u5982\uff1a\u65b0\u80fd\u6e90\u79df\u8d41\"\n                   style=\"flex:1;min-width:200px;padding:8px;border:1px solid #ccc;border-radius:4px;\">\n            <input type=\"text\" id=\"amap_city\" placeholder=\"\u57ce\u5e02\uff0c\u5982\uff1a\u5e7f\u5dde\"\n                   style=\"width:160px;padding:8px;border:1px solid #ccc;border-radius:4px;\">\n            <button type=\"button\" id=\"amap_search_btn\"\n                    style=\"padding:8px 20px;background:#2271b1;color:#fff;border:none;border-radius:4px;cursor:pointer;\">\u641c\u7d22<\/button>\n        <\/div>\n        <div id=\"amap_result\"><\/div>\n    <\/div>\n\n    <script>\n    jQuery(document).ready(function($){\n        $('#amap_search_btn').on('click', function(){\n            var kw = $('#amap_keyword').val().trim();\n            var city = $('#amap_city').val().trim();\n            if(!kw || !city){ alert('\u8bf7\u586b\u5199\u5173\u952e\u8bcd\u548c\u57ce\u5e02'); return; }\n            $('#amap_result').html('<p>\u641c\u7d22\u4e2d\u2026<\/p >');\n$.post(amap_ajax.url, {\n    action: 'amap_fetch_poi',\n    keyword: kw,\n    city: city\n}, function(res){\n    if(res.success && res.data && res.data.pois && res.data.pois.length){\n        var html = '';\n        res.data.pois.forEach(function(poi){\nvar tel = '\u6682\u65e0\u7535\u8bdd';\nif (Array.isArray(poi.tel)) {\n    tel = poi.tel.length ? poi.tel.join(' \/ ') : '\u6682\u65e0\u7535\u8bdd';\n} else if (poi.tel) {\n    tel = poi.tel;\n}\n            html += '<div style=\"border-bottom:1px solid #eee;padding:10px 0;\">';\n            html += '<strong>' + poi.name + '<\/strong><br>';\n            html += '\u5730\u5740\uff1a' + (poi.address || '\u6682\u65e0') + '<br>';\n            html += '\u7535\u8bdd\uff1a' + tel;\n            html += '<\/div>';\n        });\n        $('#amap_result').html(html);\n    } else {\n        $('#amap_result').html('<p>\u672a\u627e\u5230\u76f8\u5173\u5546\u5bb6<\/p >');\n    }\n});\n        });\n    });\n    <\/script>\n    \n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-98","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.stan1688.com\/index.php?rest_route=\/wp\/v2\/pages\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stan1688.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.stan1688.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.stan1688.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stan1688.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=98"}],"version-history":[{"count":1,"href":"https:\/\/www.stan1688.com\/index.php?rest_route=\/wp\/v2\/pages\/98\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/www.stan1688.com\/index.php?rest_route=\/wp\/v2\/pages\/98\/revisions\/100"}],"wp:attachment":[{"href":"https:\/\/www.stan1688.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}