feat(home): 首页三入口官方 logo 化——亚马逊官方字标(Wikimedia Commons 官方 SVG)/京东官方 JOY 狗(官方 CDN favicon 96px)/视频手绘 SVG 播放钮(evenodd 镂空实心圆,用户定稿黑色实底「不要紫色」);页头补数富 logo(后台同款)与标题;背景卡白卡 hover 上浮;权限显隐与 href 逻辑不动,jd-console-tool-catalog 判据 11 绿

This commit is contained in:
2026-11-20 02:10:12 +08:00
parent e903bc1845
commit 132c19d51f
4 changed files with 150 additions and 27 deletions
+141 -27
View File
@@ -1,7 +1,10 @@
<template>
<div class="home-root">
<header class="header">
<span class="header-title">数富AI</span>
<div class="header-brand">
<img class="brand-logo" :src="shufuLogo" alt="数富AI" />
<span class="header-title">数富AI</span>
</div>
<div class="header-right">
<button
type="button"
@@ -51,28 +54,56 @@
<router-link
v-if="canShow.amazon"
:to="amazonHref"
class="entrance-btn"
class="entrance-card"
:class="{ disabled: !amazonHref }"
data-column-key="brand"
>亚马逊</router-link>
>
<!-- 亚马逊:官方字标(Wikimedia Commons 官方 SVG,原色呈现) -->
<span class="entrance-media" aria-hidden="true">
<img :src="amazonLogo" class="entrance-logo amazon" alt="" />
</span>
<span class="entrance-name">亚马逊</span>
<span class="entrance-desc">亚马逊运营工具台</span>
</router-link>
<router-link
v-if="canShow.video"
:to="videoHref"
class="entrance-btn wb"
class="entrance-card"
:class="{ disabled: !videoHref }"
data-column-key="wb"
>视频</router-link>
>
<!-- 视频:数富自家工作台,无第三方品牌 logo;与京东卡同风格——实底徽章+满幅白色实心
播放圆钮(evenodd 镂空三角透出紫底),分量感与京东狗一致 -->
<span class="entrance-media" aria-hidden="true">
<span class="entrance-icon video">
<svg viewBox="0 0 24 24" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M12 2.7c5.13 0 9.3 4.17 9.3 9.3s-4.17 9.3-9.3 9.3S2.7 17.13 2.7 12 6.87 2.7 12 2.7Zm-2.2 5.6 6.5 3.7-6.5 3.7V8.3Z"
fill="currentColor" />
</svg>
</span>
</span>
<span class="entrance-name">视频</span>
<span class="entrance-desc">图片 · 视频工作台</span>
</router-link>
<!-- 京东入口(V209 起纳入 app 菜单权限):jd_tools 组行或其子项/祖先命中即可见。
权限接口异常时退回显示(与亚马逊/视频入口同一兜底),不空白。 -->
<router-link
v-if="canShow.jd"
:to="jdHref"
class="entrance-btn jd"
class="entrance-card"
:class="{ disabled: !jdHref }"
data-column-key="jd"
>京东</router-link>
>
<!-- 京东:官方 JOY 狗图标(京东官方 CDN favicon,原色呈现) -->
<span class="entrance-media" aria-hidden="true">
<img :src="jdLogo" class="entrance-logo jd" alt="" />
</span>
<span class="entrance-name">京东</span>
<span class="entrance-desc">京东运营工具台</span>
</router-link>
</div>
<div class="toast" :class="{ show: Boolean(toastText) }">{{ toastText }}</div>
@@ -90,6 +121,9 @@ import UpdateLogList from '@/shared/components/UpdateLogList.vue'
import VersionPicker from '@/shared/components/VersionPicker.vue'
import NotificationBell from '@/shared/components/NotificationBell.vue'
import { resolvePageHref } from '@/shared/page-prefix'
import shufuLogo from './assets/shufu-logo.jpg'
import amazonLogo from './assets/amazon-logo.svg'
import jdLogo from './assets/jd-logo.png'
const username = ref('')
const updatePanel = ref(false)
@@ -235,6 +269,20 @@ body {
background: rgba(255, 255, 255, 0.5);
}
.header-brand {
display: flex;
align-items: center;
gap: 10px;
}
.brand-logo {
width: 30px;
height: 30px;
border-radius: 8px;
display: block;
box-shadow: 0 2px 6px rgba(31, 56, 88, 0.18);
}
.header-title {
font-size: 18px;
font-weight: 600;
@@ -369,37 +417,103 @@ body {
.entrances {
display: flex;
gap: 32px;
gap: 28px;
flex-wrap: wrap;
justify-content: center;
}
.entrance-btn {
width: 160px;
height: 100px;
background: #c5c1c1;
border: 4px solid #b8d4e3;
border-radius: 12px;
/* 三入口卡片:渐变图标徽章沿用后管数富 logo 的「圆角方块+白色图形」语言,
不再用文字图标/无图标(2026-11-20 用户口径「图标用数富的」)。 */
.entrance-card {
width: 188px;
padding: 26px 18px 22px;
background: rgba(255, 255, 255, 0.92);
border: 1px solid rgba(255, 255, 255, 0.75);
border-radius: 18px;
box-shadow: 0 6px 18px rgba(31, 56, 88, 0.1);
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
cursor: pointer;
text-decoration: none;
transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.entrance-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 26px rgba(31, 56, 88, 0.16);
}
.entrance-card.disabled {
cursor: not-allowed;
opacity: 0.55;
filter: grayscale(0.6);
}
.entrance-card.disabled:hover {
transform: none;
box-shadow: 0 6px 18px rgba(31, 56, 88, 0.1);
}
/* 三入口 logo 区:官方品牌 logo 原色呈现(2026-11-20 用户口径「logo 是要官方的 logo」)。
统一 60px 高的展示区垂直居中,各卡片视觉重心一致。 */
.entrance-media {
height: 60px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: 600;
color: #333;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
}
.entrance-btn:hover {
background: #f8fbfd;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
.entrance-logo {
display: block;
}
.entrance-btn.disabled {
cursor: not-allowed;
opacity: 0.9;
color: #888;
.entrance-logo.amazon {
/* 官方字标为 3:1 横版,宽撑到 112px 高约 37px,与另两卡 56px 图标等重 */
width: 112px;
height: auto;
}
.entrance-logo.jd {
width: 58px;
height: 58px;
filter: drop-shadow(0 4px 10px rgba(31, 56, 88, 0.16));
}
.entrance-icon {
width: 56px;
height: 56px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
box-shadow: 0 4px 10px rgba(31, 56, 88, 0.16);
}
.entrance-icon svg {
width: 28px;
height: 28px;
display: block;
}
.entrance-icon.video {
/* 黑色实底(2026-11-20 用户口径「视频做黑色不要紫色」),白色播放钮不变 */
background: linear-gradient(135deg, #35353c, #0f0f13);
}
.entrance-name {
font-size: 17px;
font-weight: 700;
color: #2c3550;
line-height: 1.2;
}
.entrance-desc {
font-size: 12px;
color: #8a93ad;
}
.toast {
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB