页脚新增公司地址与高德导航

This commit is contained in:
Rei
2026-09-09 12:38:53 +08:00
parent ebb5568d79
commit 65cb9edcee
3 changed files with 17 additions and 2 deletions
+9 -1
View File
@@ -7,14 +7,22 @@ export default function Footer() {
const { data: texts } = useCMSTexts()
const hotline = String(config?.hotline || '').trim()
const phoneLink = hotline.replace(/[^\d+]/g, '')
const companyName = texts['footer.company'] || '成都阿美巴企业管理咨询有限公司'
const address = String(config?.contact_address || '四川省成都市双流区正兴街道湖畔路北段366号1栋3楼1号').trim()
const amapLink = `https://uri.amap.com/search?keyword=${encodeURIComponent(`${companyName} ${address}`)}&city=${encodeURIComponent('成都')}&view=map&callnative=1&src=ameiba`
return (
<footer className="site-footer">
<div className="container footer-grid">
<div>
<div className="footer-brand">{texts['footer.company'] || '成都阿美巴企业管理咨询有限公司'}</div>
<div className="footer-brand">{companyName}</div>
<p className="footer-desc">
{texts['footer.description'] || config?.slogan || '帮助企业看清位置、找到方向、持续进化。'}
</p>
<a className="footer-address" href={amapLink} target="_blank" rel="noreferrer" aria-label={`在高德地图中查找并导航至${address}`}>
<span>{texts['footer.address_title'] || '公司地址'}</span>
<strong>{address}</strong>
<em>{texts['footer.navigate_label'] || '打开高德地图导航'} →</em>
</a>
</div>
<div>
<h4>{texts['footer.navigation_title'] || '网站导航'}</h4>