feat(home): 完成首页全面重构与新增多个板块组件
- 重构首页结构,增加Banner轮播与左侧快捷入口 - 新增单位企业广告区及会员服务广告区 - 实现决策咨询板块,涵盖市县决策、行业资讯、前沿观察、企业动态 - 设计决策参考板块,展示政策原文、深度解读、研究成果、专题研究 - 完善专家资讯板块,包含专家视点、专家动态及专家申请卡片 - 添加智库观察板块与翰墨文谈板块,丰富内容分类 - 底部功能区新增资料下载、申报模板、成果报送、联系我们快捷链接 - 采用蓝色主色调和卡片式布局,提升视觉统一与响应式体验 - 使用模拟数据占位,便于后续接入实际API数据 - 重构SiteFooter提升一致性与风格统一
This commit is contained in:
@@ -47,9 +47,7 @@
|
||||
<a-button type="primary" @click="navigateTo('/login')">{{ $t('nav.login') }}</a-button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<!-- 控制台快捷按钮 -->
|
||||
<a-button class="console-btn" @click="navigateTo('/console')">{{ $t('nav.dashboard') }}</a-button>
|
||||
<!-- 消息通知铃铛仅在 /console 页面显示 -->
|
||||
<!-- 用户头像 -->
|
||||
<a-dropdown :trigger="['hover']" placement="bottomRight">
|
||||
<a-space>
|
||||
<a-avatar :src="userAvatar" :size="32">
|
||||
@@ -105,14 +103,11 @@
|
||||
</template>
|
||||
</a-menu>
|
||||
<div class="mt-4">
|
||||
<a-button v-if="!isAuthed" block type="primary" @click="onNav('/login')">{{ $t('nav.login') }}</a-button>
|
||||
<a-button v-if="!isAuthed" block type="primary" @click="onNav('/login')">{{ $t('nav.login') || '登录' }}</a-button>
|
||||
<template v-else>
|
||||
<a-button block type="primary" class="mb-2" @click="onNav('/console')">{{ $t('nav.dashboard') }}</a-button>
|
||||
<a-button block @click="onNav('/console/account')">{{ $t('nav.userCenter') }}</a-button>
|
||||
<a-button block @click="onNav('/console/orders')">{{ $t('nav.orders') || '我的订单' }}</a-button>
|
||||
<a-button v-if="isDeveloper" block @click="onNav('/developer')">🛠️ {{ $t('nav.developer') || '开发者中心' }}</a-button>
|
||||
<a-button v-if="isSuperAdmin" block @click="onNav('/admin')">⚙️ {{ $t('nav.admin') || '平台管理' }}</a-button>
|
||||
<a-button block danger class="mt-2" @click="logout">{{ $t('nav.logout') }}</a-button>
|
||||
<a-button block type="primary" class="mb-2" @click="onNav('/profile')">个人中心</a-button>
|
||||
<a-button v-if="isSuperAdmin" block @click="onNav('/admin')">⚙️ 后台管理</a-button>
|
||||
<a-button block danger class="mt-2" @click="logout">{{ $t('nav.logout') || '退出登录' }}</a-button>
|
||||
</template>
|
||||
</div>
|
||||
</a-drawer>
|
||||
|
||||
Reference in New Issue
Block a user