diff --git a/src/App.vue b/src/App.vue index 15d3c50..5023ce9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,6 +28,11 @@ function toggleMobileNav() { isMobileNavOpen.value = !isMobileNavOpen.value; } +// 打开备案查询网站 +function openBeianSite() { + window.open('https://beian.miit.gov.cn', '_blank'); +} + // 关闭移动导航菜单 function closeMobileNav() { isMobileNavOpen.value = false; @@ -130,7 +135,8 @@ onMounted(() => { 网站地图 @@ -311,6 +317,28 @@ main { color: #fff; } +.beian-link { + cursor: pointer; + transition: color 0.3s ease; +} + +.beian-link:hover { + color: #0056b3; + text-decoration: underline; +} + +.footer-record-number { + display: flex; + align-items: center; + gap: 8px; +} + +.beian-icon { + width: 16px; + height: 16px; + object-fit: contain; +} + /* 移动菜单按钮 */ .mobile-menu-btn { display: none; @@ -389,6 +417,7 @@ main { color: #888; word-break: break-all; text-align: center; + justify-content: center; } } @@ -416,6 +445,12 @@ main { .footer-record-number { font-size: 11px; padding: 0 5px; + justify-content: center; + } + + .beian-icon { + width: 14px; + height: 14px; } } diff --git a/src/assets/img/hui.png b/src/assets/img/hui.png new file mode 100644 index 0000000..da43de1 Binary files /dev/null and b/src/assets/img/hui.png differ diff --git a/src/components/PageHeader.vue b/src/components/PageHeader.vue index b4d55cf..1e2556d 100644 --- a/src/components/PageHeader.vue +++ b/src/components/PageHeader.vue @@ -64,7 +64,7 @@ onMounted(() => {

{{ title }}

-

{{ subtitle }}

+

{{ subtitle }}

diff --git a/src/views/pages/CaseDetail.vue b/src/views/pages/CaseDetail.vue index e4088cf..39e7b22 100644 --- a/src/views/pages/CaseDetail.vue +++ b/src/views/pages/CaseDetail.vue @@ -23,23 +23,13 @@ const defaultCaseData = { imageUrl: 'https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80', categoryName: '企业系统', categoryId: 1, - pdfUrl: '/docs/smart-campus-system.pdf', - designUrl: 'https://www.figma.com/file/smart-campus-design', - qrcodeUrl: '/images/smart-campus-qrcode.png', - gallery: [ - { - imageUrl: 'https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80', - imageTitle: '系统主界面' - }, - { - imageUrl: 'https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80', - imageTitle: '移动端应用界面' - }, - { - imageUrl: 'https://images.unsplash.com/photo-1577896851231-70ef18881754?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80', - imageTitle: '数据分析仪表盘' - } - ] + clientUrl: '/docs/smart-campus-system.pdf', + challengeUrl: 'https://www.figma.com/file/smart-campus-design', + solutionUrl: '/images/smart-campus-qrcode.png', + results: 'https://demo.smart-campus.com', + testimonialUrl: 'https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80,https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80,https://images.unsplash.com/photo-1577896851231-70ef18881754?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80', + content: '

项目详情

这是一个完整的智慧校园管理系统...

', + completionDate: '2024-12-01' }; // 获取案例详情 @@ -76,6 +66,11 @@ const goBackToList = () => { router.push('/cases'); }; +// 在新窗口打开图片 +const openImageInNewWindow = (imageUrl) => { + window.open(imageUrl.trim(), '_blank'); +}; + // 监听路由参数变化 watch(() => route.params.id, () => { getCaseDetail(); @@ -93,8 +88,8 @@ onMounted(() => { + :backgroundImage="(currentCase.imageUrl && currentCase.imageUrl.split(',')[0])" + height="60vh">