统一 Salon 全端薄荷绿主题

This commit is contained in:
2026-10-20 17:54:09 +08:00
parent 274c6af30b
commit 527754af02
47 changed files with 419 additions and 382 deletions
@@ -96,7 +96,7 @@ const displayContentHtml = computed(() => renderRichContent(displayContent.value
}
.system-message-card--preview {
box-shadow: 0 20px 54px rgba(77, 50, 62, 0.16);
box-shadow: 0 20px 54px rgba(23, 33, 31, 0.16);
}
.system-message-card--modal {
@@ -24,20 +24,21 @@ describe('useShopTheme', () => {
document.documentElement.removeAttribute('style')
})
it('uses the first preset as the default visible theme', async () => {
it('uses the mint theme as the default visible theme', async () => {
const { resetShopTheme } = useShopTheme()
resetShopTheme()
expect(DEFAULT_SHOP_THEME.primaryColor).toBe('#E8B4B8')
expect(DEFAULT_SHOP_THEME.secondaryColor).toBe('#C5A059')
expect(DEFAULT_SHOP_THEME.accentColor).toBe('#4A443F')
expect(DEFAULT_SHOP_THEME.pageBgColor).toBe('#FDFBF9')
expect(DEFAULT_SHOP_THEME.primaryColor).toBe('#247B63')
expect(DEFAULT_SHOP_THEME.secondaryColor).toBe('#B8E4D4')
expect(DEFAULT_SHOP_THEME.accentColor).toBe('#17211F')
expect(DEFAULT_SHOP_THEME.pageBgColor).toBe('#F3F7F4')
expect(DEFAULT_SHOP_THEME.cardBgColor).toBe('#FFFFFF')
expect(document.documentElement.style.getPropertyValue('--theme-primary')).toBe('#E8B4B8')
expect(document.documentElement.style.getPropertyValue('--theme-secondary')).toBe('#C5A059')
expect(document.documentElement.style.getPropertyValue('--theme-neutral')).toBe('#4A443F')
expect(document.documentElement.style.getPropertyValue('--theme-tertiary')).toBe('#FDFBF9')
expect(document.documentElement.style.getPropertyValue('--theme-primary')).toBe('#247B63')
expect(document.documentElement.style.getPropertyValue('--theme-secondary')).toBe('#B8E4D4')
expect(document.documentElement.style.getPropertyValue('--theme-neutral')).toBe('#17211F')
expect(document.documentElement.style.getPropertyValue('--theme-tertiary')).toBe('#F3F7F4')
expect(document.documentElement.style.getPropertyValue('--text-secondary')).toBe('#71807A')
})
it('refreshes the admin theme from the cached admin shop context', async () => {
@@ -66,6 +67,6 @@ describe('useShopTheme', () => {
await refreshShopTheme({ mode: 'admin' })
expect(shopApi.getShopById).not.toHaveBeenCalled()
expect(document.documentElement.style.getPropertyValue('--theme-primary')).toBe('#E8B4B8')
expect(document.documentElement.style.getPropertyValue('--theme-primary')).toBe('#247B63')
})
})
+26 -26
View File
@@ -1,26 +1,26 @@
:root {
--primary-color: #E8B4B8;
--theme-primary: #E8B4B8;
--theme-secondary: #C5A059;
--theme-accent: #4A443F;
--theme-neutral: #4A443F;
--theme-tertiary: #FDFBF9;
--theme-primary-action: #766361;
--theme-primary-soft: #FAEFF0;
--theme-secondary-soft: #EADCC2;
--theme-page-bg: #FDFBF9;
--primary-color: #247B63;
--theme-primary: #247B63;
--theme-secondary: #B8E4D4;
--theme-accent: #17211F;
--theme-neutral: #17211F;
--theme-tertiary: #F3F7F4;
--theme-primary-action: #247B63;
--theme-primary-soft: #E5F4ED;
--theme-secondary-soft: #E5F4ED;
--theme-page-bg: #F3F7F4;
--theme-card-bg: #FFFFFF;
--theme-border: #F9EAEC;
--theme-gradient: linear-gradient(135deg, #766361 0%, #C5A059 100%);
--theme-gradient-soft: linear-gradient(145deg, #FFFFFF 0%, #EADCC2 58%, #F5E0E0 100%);
--theme-button-shadow: 0 12px 28px rgba(232, 180, 184, 0.26);
--theme-focus-shadow: 0 0 0 3px rgba(232, 180, 184, 0.2);
--theme-border: #E7ECE9;
--theme-gradient: linear-gradient(135deg, #247B63 0%, #1E6B55 100%);
--theme-gradient-soft: linear-gradient(145deg, #FFFFFF 0%, #E5F4ED 58%, #F3F7F4 100%);
--theme-button-shadow: 0 12px 28px rgba(36, 123, 99, 0.22);
--theme-focus-shadow: 0 0 0 3px rgba(36, 123, 99, 0.16);
--theme-background-image: none;
--bg-color: #FDFBF9;
--secondary-bg-color: #EADCC2;
--bg-color: #F3F7F4;
--secondary-bg-color: #E5F4ED;
--surface-color: #FFFFFF;
--text-primary: #4A443F;
--text-secondary: #6B6662;
--text-primary: #17211F;
--text-secondary: #71807A;
--border-radius-base: 10px;
--border-radius-large: 30px;
--frontend-min-safe-width: 320px;
@@ -78,7 +78,7 @@ body {
padding: 18px 18px calc(88px + env(safe-area-inset-bottom, 0px));
color: var(--text-primary);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(253, 251, 249, 0.96)),
linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(243, 247, 244, 0.96)),
var(--theme-background-image),
var(--theme-page-bg);
background-size: cover, cover, auto;
@@ -131,7 +131,7 @@ body {
border: 1px solid rgba(255, 255, 255, 0.9);
border-radius: 24px;
background: color-mix(in srgb, var(--theme-card-bg) 88%, transparent);
box-shadow: 0 20px 44px rgba(74, 68, 63, 0.1);
box-shadow: 0 20px 44px rgba(23, 33, 31, 0.1);
backdrop-filter: blur(16px);
}
@@ -232,7 +232,7 @@ body {
border-color: var(--theme-border);
border-radius: 24px;
background: rgba(255, 255, 255, 0.86);
box-shadow: 0 18px 42px rgba(74, 68, 63, 0.09);
box-shadow: 0 18px 42px rgba(23, 33, 31, 0.09);
backdrop-filter: blur(14px);
}
@@ -284,8 +284,8 @@ body {
@media (min-width: 768px) {
body {
background:
radial-gradient(circle at 18% 8%, rgba(254, 212, 136, 0.28), transparent 30%),
radial-gradient(circle at 82% 12%, rgba(232, 180, 184, 0.24), transparent 34%),
radial-gradient(circle at 18% 8%, rgba(184, 228, 212, 0.28), transparent 30%),
radial-gradient(circle at 82% 12%, rgba(36, 123, 99, 0.12), transparent 34%),
var(--secondary-bg-color);
}
@@ -303,9 +303,9 @@ body {
min-height: 100vh;
margin: 0 auto;
overflow: clip;
border: 1px solid rgba(212, 194, 195, 0.72);
border: 1px solid rgba(203, 220, 213, 0.72);
border-radius: 32px;
box-shadow: 0 28px 80px rgba(74, 68, 63, 0.14);
box-shadow: 0 28px 80px rgba(23, 33, 31, 0.14);
}
.jayucloud-salon-phone-frame > .bottom-nav,
@@ -33,14 +33,14 @@
var(--admin-mobile-shell-end) 100%
);
border-radius: 24px;
box-shadow: 0 18px 40px rgba(146, 103, 82, 0.2);
box-shadow: 0 18px 40px rgba(23, 33, 31, 0.16);
}
.admin-page-intro__eyebrow {
font-size: 12px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: rgba(255, 248, 241, 0.74);
color: rgba(255, 255, 255, 0.74);
}
.admin-page-intro__title {
@@ -53,7 +53,7 @@
.admin-page-intro__subtitle {
margin: 0;
line-height: 1.65;
color: rgba(255, 248, 241, 0.82);
color: rgba(255, 255, 255, 0.82);
}
.shops .admin-page-intro__subtitle,
@@ -108,7 +108,7 @@
background: var(--admin-mobile-card);
border: 1px solid var(--admin-mobile-border);
border-radius: 22px;
box-shadow: 0 12px 28px rgba(144, 103, 84, 0.09);
box-shadow: 0 12px 28px rgba(23, 33, 31, 0.08);
}
.admin-mobile-card__cover {
@@ -224,7 +224,7 @@
background: var(--admin-mobile-card);
border: 1px solid var(--admin-mobile-border);
border-radius: 20px;
box-shadow: 0 10px 24px rgba(144, 103, 84, 0.08);
box-shadow: 0 10px 24px rgba(23, 33, 31, 0.07);
}
.admin-mobile-stat__label {
@@ -244,7 +244,7 @@
background: var(--admin-mobile-card);
border: 1px solid var(--admin-mobile-border);
border-radius: 22px;
box-shadow: 0 12px 28px rgba(144, 103, 84, 0.09);
box-shadow: 0 12px 28px rgba(23, 33, 31, 0.08);
}
.admin-mobile-section-card__title {
+9 -7
View File
@@ -89,19 +89,21 @@ export function notifyShopThemeChanged() {
*/
function resolveShopThemeSource(source?: ShopThemeSource | null): ResolvedShopTheme {
const normalizedPrimaryColor = normalizeHexColor(source?.themePrimaryColor)
const primaryColor = normalizedPrimaryColor || '#E8B4B8'
const primaryColor = normalizedPrimaryColor || '#247B63'
const secondaryColor = normalizeHexColor(source?.themeSecondaryColor)
|| (normalizedPrimaryColor ? mixColor(primaryColor, '#C5A059', 0.35) : '#C5A059')
|| (normalizedPrimaryColor ? mixColor(primaryColor, '#B8E4D4', 0.35) : '#B8E4D4')
const neutralColor = normalizeHexColor(source?.themeAccentColor)
|| (normalizedPrimaryColor ? mixColor('#4A443F', primaryColor, 0.14) : '#4A443F')
|| (normalizedPrimaryColor ? mixColor('#17211F', primaryColor, 0.14) : '#17211F')
const accentColor = neutralColor
const tertiaryColor = normalizeHexColor(source?.themePageBgColor) || '#FDFBF9'
const tertiaryColor = normalizeHexColor(source?.themePageBgColor) || '#F3F7F4'
const pageBgColor = tertiaryColor
const cardBgColor = normalizeHexColor(source?.themeCardBgColor) || '#FFFFFF'
const textPrimary = readableTextColor(pageBgColor, neutralColor)
const textSecondary = textPrimary === neutralColor
? mixColor(neutralColor, cardBgColor, 0.18)
: mixColor('#FFFFFF', primaryColor, 0.3)
const textSecondary = !normalizedPrimaryColor
? '#71807A'
: textPrimary === neutralColor
? mixColor(neutralColor, cardBgColor, 0.4)
: mixColor('#FFFFFF', primaryColor, 0.3)
const borderColor = mixColor(primaryColor, cardBgColor, 0.72)
const primarySoftColor = mixColor(primaryColor, cardBgColor, 0.78)
const secondarySoftColor = mixColor(secondaryColor, pageBgColor, 0.66)
@@ -129,7 +129,7 @@ onMounted(loadOrder)
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 9px 14px; background: color-mix(in srgb, var(--theme-card-bg) 92%, transparent); border-bottom: 1px solid var(--theme-border); backdrop-filter: blur(14px); }
.header h1 { margin: 0; font-size: 18px; }
.content { padding: 16px 14px 32px; }
.hero-card, .form-card { border: 1px solid var(--theme-border); border-radius: 20px; background: color-mix(in srgb, var(--theme-card-bg) 88%, transparent); box-shadow: 0 18px 44px rgba(74, 68, 63, 0.08); }
.hero-card, .form-card { border: 1px solid var(--theme-border); border-radius: 20px; background: color-mix(in srgb, var(--theme-card-bg) 88%, transparent); box-shadow: 0 18px 44px rgba(23, 33, 31, 0.08); }
.hero-card { padding: 22px; margin-bottom: 14px; background: var(--theme-gradient-soft); }
.hero-card span { color: var(--theme-primary); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.hero-card h2 { margin: 10px 0 6px; font-size: 21px; }
@@ -104,7 +104,7 @@ onMounted(loadRecords)
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 9px 14px; background: color-mix(in srgb, var(--theme-card-bg) 92%, transparent); border-bottom: 1px solid var(--theme-border); backdrop-filter: blur(14px); }
.header h1 { margin: 0; font-size: 18px; }
.content { padding: 16px 14px 32px; }
.hero-card, .record-card { border: 1px solid var(--theme-border); border-radius: 20px; background: color-mix(in srgb, var(--theme-card-bg) 88%, transparent); box-shadow: 0 18px 44px rgba(74, 68, 63, 0.08); }
.hero-card, .record-card { border: 1px solid var(--theme-border); border-radius: 20px; background: color-mix(in srgb, var(--theme-card-bg) 88%, transparent); box-shadow: 0 18px 44px rgba(23, 33, 31, 0.08); }
.hero-card { padding: 22px; margin-bottom: 14px; background: var(--theme-gradient-soft); }
.hero-card span, .record-label { color: var(--theme-primary); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.hero-card h2 { margin: 10px 0 6px; font-size: 21px; }
@@ -373,7 +373,7 @@ onMounted(loadOrder)
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 9px 14px; background: color-mix(in srgb, var(--theme-card-bg) 92%, transparent); border-bottom: 1px solid var(--theme-border); backdrop-filter: blur(14px); }
.header h1 { margin: 0; font-size: 18px; }
.content { padding: 16px 14px 28px; }
.hero-card, .section-card, .timeline-card { border: 1px solid var(--theme-border); border-radius: 20px; background: color-mix(in srgb, var(--theme-card-bg) 88%, transparent); box-shadow: 0 18px 44px rgba(74, 68, 63, 0.08); }
.hero-card, .section-card, .timeline-card { border: 1px solid var(--theme-border); border-radius: 20px; background: color-mix(in srgb, var(--theme-card-bg) 88%, transparent); box-shadow: 0 18px 44px rgba(23, 33, 31, 0.08); }
.hero-card { padding: 22px; background: var(--theme-gradient-soft); }
.eyebrow { display: block; color: var(--theme-primary); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.hero-card h2 { margin: 10px 0 6px; font-size: 21px; }
+15 -15
View File
@@ -1881,27 +1881,27 @@ onMounted(async () => {
.order-page {
--order-shell-width: min(100%, var(--frontend-page-max-width, 780px));
--order-bg: #fff8f4;
--order-bg: var(--theme-page-bg);
--order-surface: rgba(255, 255, 255, 0.8);
--order-surface-solid: #ffffff;
--order-surface-low: #fcf2ea;
--order-text: #1f1b17;
--order-muted: #504444;
--order-primary: #7c5357;
--order-primary-soft: #ffdadc;
--order-primary-dim: #eeb9bd;
--order-gold: #775a19;
--order-gold-soft: #ffdea5;
--order-outline: #d4c2c3;
--order-outline-strong: #827474;
--order-shadow: rgba(74, 68, 63, 0.04);
--order-surface-low: var(--theme-primary-soft);
--order-text: var(--text-primary);
--order-muted: var(--text-secondary);
--order-primary: var(--theme-primary);
--order-primary-soft: var(--theme-primary-soft);
--order-primary-dim: var(--theme-secondary);
--order-gold: var(--theme-primary-action);
--order-gold-soft: var(--theme-secondary);
--order-outline: var(--theme-border);
--order-outline-strong: var(--text-secondary);
--order-shadow: rgba(23, 33, 31, 0.04);
padding-top: 64px;
padding-bottom: calc(32px + env(safe-area-inset-bottom));
color: var(--order-text);
background: var(--order-bg);
background-image:
radial-gradient(circle at 92% 8%, rgba(232, 180, 184, 0.22), transparent 30%),
radial-gradient(circle at 8% 18%, rgba(254, 212, 136, 0.22), transparent 28%);
radial-gradient(circle at 92% 8%, rgba(184, 228, 212, 0.28), transparent 30%),
radial-gradient(circle at 8% 18%, rgba(36, 123, 99, 0.1), transparent 28%);
font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@@ -1917,7 +1917,7 @@ onMounted(async () => {
height: 64px;
padding: 8px 20px;
background: rgba(255, 248, 244, 0.82);
box-shadow: 0 6px 18px rgba(74, 68, 63, 0.05);
box-shadow: 0 6px 18px rgba(23, 33, 31, 0.05);
backdrop-filter: blur(18px);
transform: translateX(-50%);
}
@@ -126,7 +126,7 @@ onMounted(loadProgress)
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 9px 14px; background: color-mix(in srgb, var(--theme-card-bg) 92%, transparent); border-bottom: 1px solid var(--theme-border); backdrop-filter: blur(14px); }
.header h1 { margin: 0; font-size: 18px; }
.content { padding: 16px 14px 32px; }
.hero-card, .section-card, .progress-list { border: 1px solid var(--theme-border); border-radius: 20px; background: color-mix(in srgb, var(--theme-card-bg) 88%, transparent); box-shadow: 0 18px 44px rgba(74, 68, 63, 0.08); }
.hero-card, .section-card, .progress-list { border: 1px solid var(--theme-border); border-radius: 20px; background: color-mix(in srgb, var(--theme-card-bg) 88%, transparent); box-shadow: 0 18px 44px rgba(23, 33, 31, 0.08); }
.hero-card { padding: 22px; margin-bottom: 14px; background: var(--theme-gradient-soft); }
.hero-card span { color: var(--theme-primary); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.hero-card h2 { margin: 10px 0 6px; font-size: 21px; }
+23 -23
View File
@@ -341,31 +341,31 @@ onMounted(loadData)
<style scoped>
.vip-center {
--vip-bg: #fff8f4;
--vip-bg: var(--theme-page-bg);
--vip-surface: rgba(255, 255, 255, 0.82);
--vip-surface-strong: rgba(255, 255, 255, 0.94);
--vip-surface-low: #fcf2ea;
--vip-surface-mid: #f6ece5;
--vip-surface-high: #f1e6df;
--vip-text: #1f1b17;
--vip-muted: #504444;
--vip-outline: #d4c2c3;
--vip-outline-soft: rgba(212, 194, 195, 0.54);
--vip-primary: #7c5357;
--vip-blush: #e8b4b8;
--vip-blush-soft: #ffdadc;
--vip-blush-dim: #eeb9bd;
--vip-gold: #775a19;
--vip-gold-soft: #fed488;
--vip-neutral: #5e5e5d;
--vip-neutral-soft: #c2c1bf;
--vip-hero-text: #fff8f4;
--vip-shadow: rgba(74, 68, 63, 0.1);
--vip-surface-low: var(--theme-page-bg);
--vip-surface-mid: var(--theme-primary-soft);
--vip-surface-high: var(--theme-secondary);
--vip-text: var(--text-primary);
--vip-muted: var(--text-secondary);
--vip-outline: var(--theme-border);
--vip-outline-soft: color-mix(in srgb, var(--theme-border) 54%, transparent);
--vip-primary: var(--theme-primary);
--vip-blush: var(--theme-secondary);
--vip-blush-soft: var(--theme-primary-soft);
--vip-blush-dim: #9CCDBB;
--vip-gold: var(--theme-primary-action);
--vip-gold-soft: var(--theme-secondary);
--vip-neutral: var(--text-secondary);
--vip-neutral-soft: var(--theme-border);
--vip-hero-text: #FFFFFF;
--vip-shadow: rgba(23, 33, 31, 0.1);
min-height: 100vh;
color: var(--vip-text);
background:
radial-gradient(circle at 84% 0%, rgba(232, 180, 184, 0.38), transparent 34%),
radial-gradient(circle at 4% 18%, rgba(254, 212, 136, 0.34), transparent 30%),
radial-gradient(circle at 84% 0%, rgba(184, 228, 212, 0.38), transparent 34%),
radial-gradient(circle at 4% 18%, rgba(36, 123, 99, 0.1), transparent 30%),
linear-gradient(180deg, var(--vip-bg) 0%, var(--vip-surface-low) 46%, var(--vip-bg) 100%);
}
@@ -380,8 +380,8 @@ onMounted(loadData)
min-height: 64px;
margin: 0 auto;
padding: 8px 20px;
background: rgba(255, 248, 244, 0.86);
box-shadow: 0 8px 28px rgba(74, 68, 63, 0.06);
background: color-mix(in srgb, var(--theme-card-bg) 86%, transparent);
box-shadow: 0 8px 28px rgba(23, 33, 31, 0.06);
backdrop-filter: blur(18px);
}
@@ -406,7 +406,7 @@ onMounted(loadData)
border-radius: 999px;
color: var(--vip-primary);
background: var(--vip-surface-strong);
box-shadow: 0 12px 24px rgba(74, 68, 63, 0.08);
box-shadow: 0 12px 24px rgba(23, 33, 31, 0.08);
cursor: pointer;
}
@@ -1042,7 +1042,7 @@ onMounted(async () => {
border-radius: 22px;
background: var(--admin-mobile-card);
border: 1px solid var(--admin-mobile-border);
box-shadow: 0 12px 24px rgba(144, 103, 84, 0.08);
box-shadow: 0 12px 24px rgba(23, 33, 31, 0.08);
}
.drawer-shop-card__label {
@@ -255,13 +255,13 @@ onMounted(() => {
border-radius: 24px;
background: var(--admin-mobile-card);
text-align: left;
box-shadow: 0 12px 30px rgba(144, 103, 84, 0.08);
box-shadow: 0 12px 30px rgba(23, 33, 31, 0.08);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module-card:hover {
transform: translateY(-2px);
box-shadow: 0 18px 36px rgba(144, 103, 84, 0.12);
box-shadow: 0 18px 36px rgba(23, 33, 31, 0.12);
}
.module-card.is-disabled {
@@ -344,12 +344,12 @@ onMounted(() => {
gap: 12px;
padding: 14px 16px;
border-radius: 18px;
box-shadow: 0 8px 20px rgba(144, 103, 84, 0.07);
box-shadow: 0 8px 20px rgba(23, 33, 31, 0.07);
}
.module-card:hover {
transform: none;
box-shadow: 0 8px 20px rgba(144, 103, 84, 0.07);
box-shadow: 0 8px 20px rgba(23, 33, 31, 0.07);
}
.module-card__icon {
@@ -385,25 +385,25 @@
<a-form-item label="主色" name="themePrimaryColor">
<div class="theme-color-field">
<input v-model="formState.themePrimaryColor" class="theme-color-picker" type="color" />
<a-input v-model:value="formState.themePrimaryColor" placeholder="#E8B4B8" />
<a-input v-model:value="formState.themePrimaryColor" placeholder="#247B63" />
</div>
</a-form-item>
<a-form-item label="辅色" name="themeSecondaryColor">
<div class="theme-color-field">
<input v-model="formState.themeSecondaryColor" class="theme-color-picker" type="color" />
<a-input v-model:value="formState.themeSecondaryColor" placeholder="#C5A059" />
<a-input v-model:value="formState.themeSecondaryColor" placeholder="#B8E4D4" />
</div>
</a-form-item>
<a-form-item label="中性/强调色" name="themeAccentColor">
<div class="theme-color-field">
<input v-model="formState.themeAccentColor" class="theme-color-picker" type="color" />
<a-input v-model:value="formState.themeAccentColor" placeholder="#4A443F" />
<a-input v-model:value="formState.themeAccentColor" placeholder="#17211F" />
</div>
</a-form-item>
<a-form-item label="页面背景" name="themePageBgColor">
<div class="theme-color-field">
<input v-model="formState.themePageBgColor" class="theme-color-picker" type="color" />
<a-input v-model:value="formState.themePageBgColor" placeholder="#FDFBF9" />
<a-input v-model:value="formState.themePageBgColor" placeholder="#F3F7F4" />
</div>
</a-form-item>
<a-form-item label="卡片背景" name="themeCardBgColor">
@@ -680,12 +680,12 @@ const CUSTOM_THEME_TEMPLATE_LIMIT = 20
const PRESET_THEME_TEMPLATES: ShopThemeTemplate[] = [
{
id: 'preset-luminous-elegance',
name: 'Luminous Elegance',
name: '薄荷绿清新',
source: 'preset',
themePrimaryColor: '#E8B4B8',
themeSecondaryColor: '#C5A059',
themeAccentColor: '#4A443F',
themePageBgColor: '#FDFBF9',
themePrimaryColor: '#247B63',
themeSecondaryColor: '#B8E4D4',
themeAccentColor: '#17211F',
themePageBgColor: '#F3F7F4',
themeCardBgColor: '#FFFFFF'
},
{
@@ -55,8 +55,8 @@ describe('web theme governance', () => {
expect(app).toContain('jayucloud-salon-phone-frame')
expect(app).toContain('jayucloud-salon-phone-frame--hidden-nav')
expect(globalStyle).toMatch(/--frontend-page-max-width:\s*430px/)
expect(globalStyle).toContain('--theme-neutral: #4A443F;')
expect(globalStyle).toContain('--theme-tertiary: #FDFBF9;')
expect(globalStyle).toContain('--theme-neutral: #17211F;')
expect(globalStyle).toContain('--theme-tertiary: #F3F7F4;')
expect(globalStyle).toContain('.jayucloud-salon-phone-frame')
expect(globalStyle).toContain('.jayucloud-salon-page')
expect(globalStyle).toContain('.jayucloud-salon-glass-card')