feat: merge V1.3 CMS content support
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import { PRIMARY_NAV } from '@/data/nav'
|
||||
import { getCMSConfig, useCMS, useCMSTexts } from '@/services/cms'
|
||||
|
||||
export default function Footer() {
|
||||
const { data: config } = useCMS(getCMSConfig, null)
|
||||
const { data: texts } = useCMSTexts()
|
||||
return (
|
||||
<footer className="site-footer">
|
||||
<div className="container footer-grid">
|
||||
<div>
|
||||
<div className="footer-brand">成都阿美巴企业管理咨询有限公司</div>
|
||||
<div className="footer-brand">{texts['footer.company'] || '成都阿美巴企业管理咨询有限公司'}</div>
|
||||
<p className="footer-desc">
|
||||
以“企业进化”为核心主张,以四大价值坐标与 A/M/B 状态坐标为观察系,陪跑企业体系化增长落地。
|
||||
{texts['footer.description'] || config?.slogan || '帮助企业看清位置、找到方向、持续进化。'}
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h4>一级导航(冻结6项)</h4>
|
||||
<h4>{texts['footer.navigation_title'] || '网站导航'}</h4>
|
||||
<ul>
|
||||
{PRIMARY_NAV.map(n => (
|
||||
<li key={n.key}>
|
||||
@@ -22,7 +25,7 @@ export default function Footer() {
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h4>常驻行动入口</h4>
|
||||
<h4>{texts['footer.action_title'] || '行动入口'}</h4>
|
||||
<ul>
|
||||
<li>
|
||||
<Link to="/self-check">看看你的企业(轻量对照)</Link>
|
||||
@@ -31,12 +34,11 @@ export default function Footer() {
|
||||
<Link to="/contact">咨询获取方案</Link>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 style={{ marginTop: 16 }}>部署</h4>
|
||||
<p className="footer-desc">复用现有服务器与域名 · 旧站完整备份可回滚</p>
|
||||
{(config?.hotline || config?.contact_email) && <p className="footer-desc" style={{marginTop:16}}>{[config.hotline, config.contact_email].filter(Boolean).join(' · ')}</p>}
|
||||
</div>
|
||||
</div>
|
||||
<div className="container footer-bottom">
|
||||
<p>© 2026 成都阿美巴企业管理咨询有限公司 | aiameiba.com · ameiba.cn</p>
|
||||
<p>{texts['footer.copyright'] || '© 2026 成都阿美巴企业管理咨询有限公司 | aiameiba.com · ameiba.cn'}</p>
|
||||
<p className="footer-links">
|
||||
<Link to="/contact">联系我们</Link> · <Link to="/self-check">看看你的企业</Link>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user