接口页面--全局数据:

111-->[{"id":92,"title":"联系我们","short_title":"","img":"","description":null,"createdAt":"08-19","author":"","pv":1360,"pinyin":"contact","name":"联系","path":"/contact"},{"id":91,"title":"出版印刷","short_title":"","img":"","description":null,"createdAt":"08-19","author":"","pv":499,"pinyin":"contact","name":"联系","path":"/contact"},{"id":90,"title":"隐私政策","short_title":"","img":"","description":null,"createdAt":"08-19","author":"","pv":467,"pinyin":"contact","name":"联系","path":"/contact"},{"id":80,"title":"通用条款与条件","short_title":"","img":"","description":null,"createdAt":"03-31","author":"","pv":558,"pinyin":"contact","name":"联系","path":"/contact"}]

position-> [{"id":8,"pid":0,"name":"联系","pinyin":"contact","path":"/contact","sort":6,"target":"0","status":"0","list_view":"list.html","article_view":"contact.html","seo_title":"","seo_keywords":"","seo_description":"","description":"","type":"1","abstract":null,"level":1}]

article-> {"id":92,"cid":8,"sub_cid":"","title":"联系我们","short_title":"","tag_id":"","attr":"","seo_title":"","seo_keywords":"","seo_description":"","source":"","author":"","abstract":"<h1 class=\"mb-2 text-red-600 text-lg\">公司地点</h1>\n<p><img class=\"w-auto h-[300px] rounded shadow duration-300 hover:scale-105\" src=\"/public/uploads/default/2024/10/23/1729671201842_source_2215169992.jpg\" alt=\"公司地点照片\" width=\"407\" height=\"596\"></p>","description":null,"img":"","content":"<div class=\"contact-us\">\n<h1>联系我们</h1>\n<ul id=\"nav\" class=\"flex gap-6 border-b border-gray-200 mb-6\">\n<li class=\"py-2 text-red-500 text-lg border-b-4 border-red-500 !font-bold\">亚洲总部</li>\n<li class=\"py-2 text-gray-400 text-lg cursor-pointer !font-normal\">德国总部</li>\n</ul>\n<div id=\"panels\">\n<div id=\"亚洲总部\" style=\"display: block;\">\n<h2>HANSA HEIZTECHNIK - 汉恩泽供热技术有限公司</h2>\n<ul>\n<li>\n<h3>地址:</h3>\n中华人民共和国 广东省 中山市 小榄金融中心1003之二</li>\n<li>\n<h3>电子邮箱:</h3>\n<a href=\"mailto:info@hansa-asia.com\">info@hansa-asia.com</a></li>\n<li>\n<h3>联系电话:</h3>\n+86 18024206800</li>\n<li><span class=\"block py-4\">* 如果您计划前来参观,请提前致电与我们预约时间,我们诚挚欢迎您的到来。</span></li>\n</ul>\n<div id=\"map\" class=\"relative bg-gray-100 w-full h-[400px] amap-container\" style=\"background: rgb(252, 249, 242);\"></div>\n<h2 class=\"mt-8\">工作时间:</h2>\n<ul>\n<li>每周一至周五</li>\n<li>上午9:00 ~12:00</li>\n<li>下午13:30~18:00</li>\n</ul>\n<ul class=\"flex gap-6 mt-8\">\n<li>\n<h2>微信二维码:</h2>\n<img class=\"h-[150px] shadow\" src=\"/public/uploads/default/2024/08/20/1724116659396_source_wechat.jpg\" alt=\"微信二维码\" width=\"150\" height=\"150\"></li>\n<li>\n<h2>小红书二维码:</h2>\n<img class=\"h-[150px]\" src=\"/public/uploads/default/2024/08/20/1724116673373_source_2014979882.png\" alt=\"小红书二维码\" width=\"150\" height=\"150\"></li>\n</ul>\n</div>\n<div id=\"德国总部\" class=\"hidden\" style=\"display: none;\">\n<h2>Hansa &Ouml;l- und Gasbrenner GmbH</h2>\n<ul class=\"pb-4\">\n<li>\n<h3>Address:</h3>\nBurgdamm 3, 27404 Rhade, Germany</li>\n<li>\n<h3>Email:</h3>\n<a href=\"mailto:info@hansa-heiztechnik.de\">info@hansa-heiztechnik.de</a></li>\n<li>\n<h3>phone:</h3>\n+49 (0) 42 85 93 07-0</li>\n<li><span class=\"block pt-4 pb-2\">* If you would like to visit us, please call us in advance to schedule with you an appointment.</span></li>\n</ul>\n</div>\n<p> </p>\n</div>\n</div>\n<div>\n<style type=\"postcss\">\n .contact-us h1 { @apply mb-4 font-medium text-xl; }\n.contact-us h2 { @apply mb-2 p-0 font-medium text-lg; }\n.contact-us h3 { @apply font-medium mb-0 mt-4 p-0; }\n.contact-us p { @apply pb-4 text-sm; }\n.contact-us ul { @apply text-sm; } \n .amap-marker-label{border:0 !important;background-color:transparent !important;}\np {word-break:break-all !important;} \n</style>\n</div>","status":0,"js":"(()=>{\n const nav = Array.from(document.querySelectorAll('[id=\"nav\"] li'));\n nav.forEach((btn,idx)=>{\n btn.addEventListener('click', e=>{\n const target = e.currentTarget;\n const index = parseInt(target.getAttribute('index'));\n const name = target.innerText;\n nav.forEach(li=>li.setAttribute('class','py-2 text-gray-400 text-lg cursor-pointer !font-normal'));\n target.setAttribute('class', 'py-2 text-red-500 text-lg border-b-4 border-red-500 !font-bold');\n const pages = Array.from(document.querySelectorAll('[id=\"panels\"] > div'));\n pages.forEach(page=>{\n page.setAttribute('style', `display:${page.getAttribute('id')===name?'block':'none'};`);\n });\n });\n });\n})();\n (function(){\nwindow.initAmap = initAmap;\n\nloadJS('https://webapi.amap.com/maps?v=1.4.15&key=bf499a391cc698f413b68f2692d634a5&plugin=Map3D,AMap.Geocoder,AMap.ControlBar&callback=initAmap');\n\nfunction loadJS(url,cb){let s=document.createElement('script');s.charset='utf-8';s.onload=cb;s.src=url;document.head.appendChild(s)}\n\nfunction initAmap() {\nconst marker = new AMap.Marker({});\nmarker.setLabel({\n content: `\n <div style=\"text-align:center;font-size:14px; transform:translate(-50%,-100%); background:rgba(255,255,255,.8); margin-top:-8px; margin-left:6px; padding:8px 12px; border:1px solid rgba(0,0,0,.15); border-radius:4px; line-height:20px; backdrop-filter:blur(5px); box-shadow:0 4px 8px rgba(0,0,0,.15); color:rgba(0,0,0,.75);\">\n 中山市小榄镇升平中路10号<br>小榄金融中心1003房之二\n </div>`,\n // offset: new AMap.Pixel(-65, -40),\n});\n\nconst map = new AMap.Map('map', {\n viewMode: '3D',\n resizeEnable: true,\n rotateEnable: true,\n pitchEnable: true,\n zoom: 16,\n zooms: [3,20],\n pitch: 40,\n rotation: 35,\n showIndoorMap: true,\n showBuildingBlock: true,\n buildingAnimation: true,\n expandZoomRange: true,\n});\n\nmap.addControl(new AMap.ControlBar({\n showZoomBar: true,\n showControlButton: false,\n position: {right:'10px', top:'10px'}\n}));\n\nconst geocoder = new AMap.Geocoder({ city: \"0760\" });\ngeocoder.getLocation('中山市小榄镇升平中路10号', (status, result) => {\n if (status === 'complete' && result.geocodes.length) {\n const lnglat = result.geocodes[0].location;\n marker.setPosition(lnglat);\n map.add(marker);\n map.setFitView(marker);\n }else{\n log.error('根据地址查询位置失败');\n }\n});\n}\n})(); ","pv":1360,"link":"","createdAt":"2024-08-19 17:58:00","updatedAt":"2024-12-02 14:56:49","field":{}}

slide--->

navSub--->{"cate":{"id":8,"pid":0,"name":"联系","pinyin":"contact","path":"/contact","sort":6,"target":"0","status":"0","list_view":"list.html","article_view":"contact.html","seo_title":"","seo_keywords":"","seo_description":"","description":"","type":"1","abstract":null,"level":1},"id":8}

cate--->{"id":8,"pid":0,"name":"联系","pinyin":"contact","path":"/contact","sort":6,"target":"0","status":"0","list_view":"list.html","article_view":"contact.html","seo_title":"","seo_keywords":"","seo_description":"","description":"","type":"1","abstract":null,"level":1}

console.log('1')