feat(companion): 全面确立以陪吃·陪喝·陪唱为主的核心架构,重构首屏推荐阵容与歌声试听

这个提交包含在:
wikiboss
2026-09-16 20:16:56 +08:00
父节点 341023c77b
当前提交 9fd7ea2c5a
共有 14 个文件被更改,包括 749 次插入 和 82 次删除

查看文件

@@ -1,7 +1,10 @@
<script>
import { getCurrentThemeKey } from './common/theme.js';
export default {
onLaunch: function () {
console.log('App Launch: 电竞陪玩小程序初始化');
const currentTheme = getCurrentThemeKey();
console.log('App Launch: 电竞陪玩小程序初始化, 当前主题:', currentTheme);
},
onShow: function () {
console.log('App Show');
@@ -13,10 +16,51 @@ export default {
</script>
<style lang="scss">
/* 双主题 Design Tokens (CSS Variables 全局动态驱动) */
:root, page {
--bg-primary: #0A0F1D;
--bg-surface: #151D30;
--bg-surface-elevated: #1E2942;
--bg-surface-glass: rgba(21, 29, 48, 0.85);
--color-brand: #6366F1;
--color-brand-light: #818CF8;
--color-brand-gold: #F59E0B;
--color-brand-glow: rgba(99, 102, 241, 0.35);
--color-brand-gradient: linear-gradient(135deg, #6366F1, #8B5CF6);
--border-subtle: #1E293B;
--border-focus: #4F46E5;
--text-primary: #F8FAFC;
--text-secondary: #94A3B8;
--text-muted: #64748B;
--shadow-brand: 0 8rpx 24rpx rgba(99, 102, 241, 0.35);
}
/* 暖阳赤焰暖色系主题 (Sunset Amber & Warm Ember) */
page.theme-warm, .theme-warm {
--bg-primary: #140E0A;
--bg-surface: #221711;
--bg-surface-elevated: #2E1F17;
--bg-surface-glass: rgba(34, 23, 17, 0.85);
--color-brand: #F97316;
--color-brand-light: #FB923C;
--color-brand-gold: #F59E0B;
--color-brand-glow: rgba(249, 115, 22, 0.35);
--color-brand-gradient: linear-gradient(135deg, #F97316, #F59E0B);
--border-subtle: #342217;
--border-focus: #EA580C;
--text-primary: #FFF7ED;
--text-secondary: #C7B5A7;
--text-muted: #8C7565;
--shadow-brand: 0 8rpx 24rpx rgba(249, 115, 22, 0.35);
background-color: #140E0A;
color: #FFF7ED;
}
/* 全局暗黑电竞基础重置 (严格符合 UI/UX Pro Max 规范) */
page {
background-color: #0A0F1D;
color: #F8FAFC;
background-color: var(--bg-primary, #0A0F1D);
color: var(--text-primary, #F8FAFC);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', sans-serif;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
@@ -68,11 +112,11 @@ html, body {
max-width: 450px !important;
margin: 20px auto !important;
min-height: calc(100vh - 40px) !important;
box-shadow: 0 0 80rpx rgba(0, 0, 0, 0.95), 0 0 0 2rpx rgba(99, 102, 241, 0.25) !important;
box-shadow: 0 0 80rpx rgba(0, 0, 0, 0.95), 0 0 0 2rpx var(--color-brand-glow, rgba(99, 102, 241, 0.25)) !important;
border-radius: 40rpx !important;
overflow: hidden !important;
position: relative !important;
background-color: #0A0F1D !important;
background-color: var(--bg-primary, #0A0F1D) !important;
}
uni-page-head {
@@ -117,7 +161,7 @@ html, body {
}
uni-tabbar .uni-tabbar__bd {
background-color: #151D30 !important;
background-color: var(--bg-surface, #151D30) !important;
border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
/* #endif */