3f176924d0
部署到群晖 / deploy (push) Successful in 43s
旧版多处违反 impeccable 设计规范(gradient text、6rpx 粗色条 border-left、 glassmorphism、bounce 动画)且整体呈现典型「AI/SaaS 通用紫渐变」(#6366f1 系、 #667eea 系),用户反馈「AI 味儿太浓」。 色板(OKLCH 概念,hex 落地): - 背景:浅米黄 #FAF6ED - 主文字:深墨蓝 #1F1D2B - 暖灰副文字:#8A8278 - 强调(仅 today / FAB):墨红 #C8412F 涉及改动: - app.wxss:删模板自带 .container padding 200rpx(首页/日历顶部空白真凶)+ 重写全局色板 - index.wxml/wxss:去紫渐变 Header + glassmorphism stats + border-left 大色条 + bounce - calendar.wxml/wxss/json:去紫渐变月份头 + today 大色块 + section-title 6rpx 紫条 - settings.wxss:同款紫 Header + tips-card 6rpx 紫条 → 全卡边线 + 浅暖底 - add-anniversary.wxss:chip-active 紫 / 取消提交按钮渐变 / importance 高饱和色 → 统一 - add-person.wxss:gradient text + 紫 dashed 头像占位 + 多重渐变 → 全套重写 - person-detail.wxss:微信绿 + 灰底默认色 → 方向 A 色板 - utils/constants.js:IMPORTANCE_COLORS 高/中/低 = 墨红/焦糖/苔绿(替代橙红/橘/鲜绿) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
49 lines
952 B
JavaScript
49 lines
952 B
JavaScript
/**
|
|
* 公共常量
|
|
*/
|
|
|
|
const ANNIVERSARY_TYPES = {
|
|
BIRTHDAY: 'birthday',
|
|
LUNAR_BIRTHDAY: 'lunar_birthday',
|
|
WEDDING: 'wedding',
|
|
ENGAGEMENT: 'engagement',
|
|
OTHER: 'other'
|
|
}
|
|
|
|
const TYPE_NAMES = {
|
|
birthday: '生日',
|
|
// lunar_birthday 已合并到 birthday(公历/农历由 isLunar 决定),保留映射用于兼容老数据回显
|
|
lunar_birthday: '生日',
|
|
wedding: '结婚纪念日',
|
|
engagement: '订婚纪念日',
|
|
other: '其他纪念日'
|
|
}
|
|
|
|
const TYPE_ICONS = {
|
|
birthday: '🎂',
|
|
lunar_birthday: '🎂',
|
|
wedding: '💍',
|
|
engagement: '💕',
|
|
other: '📅'
|
|
}
|
|
|
|
const IMPORTANCE_TEXTS = {
|
|
high: '非常重要',
|
|
medium: '重要',
|
|
low: '一般'
|
|
}
|
|
|
|
const IMPORTANCE_COLORS = {
|
|
high: '#C8412F', // 墨红(与全局强调色一致)
|
|
medium: '#B36A1F', // 焦糖
|
|
low: '#6F8C58' // 苔绿
|
|
}
|
|
|
|
module.exports = {
|
|
ANNIVERSARY_TYPES,
|
|
TYPE_NAMES,
|
|
TYPE_ICONS,
|
|
IMPORTANCE_TEXTS,
|
|
IMPORTANCE_COLORS
|
|
}
|