杂务:更新 YumiNail 工作区

This commit is contained in:
xiaowang
2026-05-29 13:30:56 +08:00
parent 1d077d4089
commit 31cd06b5c9
16498 changed files with 10330586 additions and 2340 deletions
+60 -39
View File
@@ -1,45 +1,41 @@
<template>
<a-layout class="bottom-nav">
<a-layout-content class="nav-content">
<!-- 首页导航项 -->
<div class="nav-item" :class="{ active: currentRoute === 'home' }" @click="handleNavClick('home')">
<button class="nav-item" :class="{ active: currentRoute === 'home' }" type="button" @click="handleNavClick('home')">
<a-badge :count="0" :offset="[0, 0]">
<div class="nav-icon">
<HomeOutlined :style="{ fontSize: '24px' }" />
<HomeOutlined :style="{ fontSize: '22px' }" />
</div>
</a-badge>
<span class="nav-label">首页</span>
</div>
</button>
<!-- 作品导航项 -->
<div class="nav-item" :class="{ active: currentRoute === 'products' }" @click="handleNavClick('products')">
<button class="nav-item" :class="{ active: currentRoute === 'products' }" type="button" @click="handleNavClick('products')">
<a-badge :count="0" :offset="[0, 0]">
<div class="nav-icon">
<ShoppingOutlined :style="{ fontSize: '24px' }" />
<ShoppingOutlined :style="{ fontSize: '22px' }" />
</div>
</a-badge>
<span class="nav-label">作品</span>
</div>
</button>
<!-- 购物车导航项 -->
<div class="nav-item" :class="{ active: currentRoute === 'cart' }" @click="handleNavClick('cart')">
<button class="nav-item" :class="{ active: currentRoute === 'cart' }" type="button" @click="handleNavClick('cart')">
<a-badge :count="cartCount" :offset="[0, 0]">
<div class="nav-icon">
<ShoppingCartOutlined :style="{ fontSize: '24px' }" />
<ShoppingCartOutlined :style="{ fontSize: '22px' }" />
</div>
</a-badge>
<span class="nav-label">购物车</span>
</div>
</button>
<!-- 个人中心导航项 -->
<div class="nav-item" :class="{ active: currentRoute === 'profile' }" @click="handleNavClick('profile')">
<button class="nav-item" :class="{ active: currentRoute === 'profile' }" type="button" @click="handleNavClick('profile')">
<a-badge :dot="hasNotification" :offset="[0, 0]">
<div class="nav-icon">
<UserOutlined :style="{ fontSize: '24px' }" />
<UserOutlined :style="{ fontSize: '22px' }" />
</div>
</a-badge>
<span class="nav-label">我的</span>
</div>
</button>
</a-layout-content>
</a-layout>
</template>
@@ -132,11 +128,10 @@ const handleNavClick = (tab: string) => {
left: 0;
right: 0;
width: 100%;
height: 60px;
background: rgba(255, 255, 255, 0.98);
background: color-mix(in srgb, var(--theme-card-bg) 94%, transparent);
height: 64px;
background: color-mix(in srgb, var(--theme-card-bg) 96%, transparent);
border-top: 1px solid var(--theme-border);
box-shadow: 0 -12px 30px rgba(122, 67, 88, 0.1);
box-shadow: 0 -14px 34px color-mix(in srgb, var(--theme-neutral) 10%, transparent);
z-index: 1000;
display: flex;
align-items: center;
@@ -155,75 +150,80 @@ const handleNavClick = (tab: string) => {
align-items: center;
height: 100%;
width: 100%;
max-width: 560px;
max-width: none;
margin: 0 auto;
padding: 0 10px;
padding: 0 12px calc(env(safe-area-inset-bottom, 0px) / 2);
transition: none !important;
}
.nav-item {
appearance: none;
border: 0;
background: transparent;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 8px 12px;
gap: 3px;
min-width: 58px;
min-height: 54px;
padding: 6px 8px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid transparent;
border-radius: 14px;
min-width: 60px;
color: var(--text-secondary);
}
.nav-item:hover {
background: var(--theme-primary-soft);
border-color: var(--theme-border);
transform: translateY(-2px);
}
.nav-item.active {
color: var(--theme-primary);
background: var(--theme-primary-soft);
border-color: var(--theme-border);
color: var(--theme-primary-action);
}
.nav-item.active .nav-icon {
transform: scale(1.1);
transform: translateY(-2px);
}
.nav-icon {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 4px;
width: 34px;
height: 30px;
margin-bottom: 0;
border-radius: 18px 18px 16px 16px;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
color: var(--text-secondary);
opacity: 1;
}
.nav-item.active .nav-icon {
color: var(--theme-primary);
color: var(--theme-primary-action);
background: color-mix(in srgb, var(--theme-primary) 34%, var(--theme-card-bg));
}
.nav-label {
font-size: 11px;
font-weight: 500;
font-weight: 700;
color: var(--text-secondary);
transition: all 0.3s ease;
}
.nav-item.active .nav-label {
font-weight: 600;
color: var(--theme-primary);
color: var(--theme-primary-action);
}
.nav-item :deep(.ant-badge-count) {
background: var(--theme-primary);
min-width: 16px;
height: 16px;
line-height: 16px;
background: var(--theme-primary-action);
box-shadow: 0 0 0 1px var(--theme-card-bg);
}
.nav-item :deep(.ant-badge-dot) {
background: var(--theme-accent);
background: var(--theme-secondary);
box-shadow: 0 0 0 1px var(--theme-card-bg);
}
@@ -254,4 +254,25 @@ const handleNavClick = (tab: string) => {
display: none;
}
}
@media (min-width: 768px) {
.nav-content {
max-width: var(--frontend-page-max-width);
}
}
</style>
<style>
@media (min-width: 768px) {
.yumi-phone-frame > .bottom-nav {
right: auto;
bottom: 0;
left: 50%;
width: var(--frontend-page-max-width);
max-width: calc(100vw - 48px);
border-bottom-right-radius: 32px;
border-bottom-left-radius: 32px;
transform: translateX(-50%) translateZ(0);
}
}
</style>