|
|
@@ -428,6 +428,7 @@ import FamilyChallengeCard from '../../components/FamilyChallengeCard.vue'
|
|
|
import DailyTaskCard from '../../components/daily-task-card.vue'
|
|
|
import ReportUploadCard from '../../components/report-upload-card.vue'
|
|
|
import OnboardingProgressBar from '../../components/OnboardingProgressBar.vue'
|
|
|
+import { BrandColors } from '../../utils/brand-colors.js'
|
|
|
import OnboardingGuide from '../../components/OnboardingGuide.vue'
|
|
|
import ConfigurableGuide from '../../components/ConfigurableGuide.vue'
|
|
|
import { acceptParentInvite, getActivityList, getFeaturedArticles, getEnergySandbox, getEnergyOverview, getFamilyMemberList, getChallengeList, getGuideConfig, getGuidePopupList, consumeGuidePopup, switchToFamilyMember, getMyMembership, updateChallengeProgress, respondChallenge, getTodayTasks, completeTask as completeTaskApi, getTodayParentTasks, completeParentTask as completeParentTaskApi, getTaskHistory, getNotices, getNotificationList, readNotification, getSurveyStatus, getSelfCheckStatus, getReferralCode, extractReferralCode, getAppLibrary, reportAppEnter, getEnergyLogs, getPointsLogs, getCfList, getCfSummary } from '../../utils/api.js'
|
|
|
@@ -483,11 +484,11 @@ components: {
|
|
|
indexArticles: [],
|
|
|
articlesLoading: false,
|
|
|
gradientColors: [
|
|
|
- 'linear-gradient(135deg, #10B981, #34D399)',
|
|
|
- 'linear-gradient(135deg, #0EA5E9, #38BDF8)',
|
|
|
- 'linear-gradient(135deg, #F59E0B, #FBBF24)',
|
|
|
- 'linear-gradient(135deg, #F97316, #FB923C)',
|
|
|
- 'linear-gradient(135deg, #6366F1, #818CF8)'
|
|
|
+ `linear-gradient(135deg, ${BrandColors.action}, ${BrandColors.successLight3})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.info}, ${BrandColors.infoLight})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.wealth}, ${BrandColors.warning})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.primary}, ${BrandColors.primaryLight})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.wisdom}, ${BrandColors.wisdomLight})`
|
|
|
],
|
|
|
|
|
|
// 登录态数据
|
|
|
@@ -1068,11 +1069,11 @@ title: '添加家庭成员',
|
|
|
getFeaturedArticles({ size: 5 }).then(function(res) {
|
|
|
if (res.code === 200 && res.data) {
|
|
|
var gradientColors = [
|
|
|
- 'linear-gradient(135deg, #10B981, #34D399)',
|
|
|
- 'linear-gradient(135deg, #0EA5E9, #38BDF8)',
|
|
|
- 'linear-gradient(135deg, #F59E0B, #FBBF24)',
|
|
|
- 'linear-gradient(135deg, #F97316, #FB923C)',
|
|
|
- 'linear-gradient(135deg, #6366F1, #818CF8)'
|
|
|
+ `linear-gradient(135deg, ${BrandColors.action}, ${BrandColors.successLight3})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.info}, ${BrandColors.infoLight})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.wealth}, ${BrandColors.warning})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.primary}, ${BrandColors.primaryLight})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.wisdom}, ${BrandColors.wisdomLight})`
|
|
|
]
|
|
|
var list = Array.isArray(res.data) ? res.data : (res.data.records || [])
|
|
|
self.articles = list.map(function(item, index) {
|
|
|
@@ -1892,11 +1893,11 @@ title: '添加家庭成员',
|
|
|
self.articlesLoading = false
|
|
|
if (res && res.code === 200) {
|
|
|
var gradientColors = [
|
|
|
- 'linear-gradient(135deg, #10B981, #34D399)',
|
|
|
- 'linear-gradient(135deg, #0EA5E9, #38BDF8)',
|
|
|
- 'linear-gradient(135deg, #F59E0B, #FBBF24)',
|
|
|
- 'linear-gradient(135deg, #F97316, #FB923C)',
|
|
|
- 'linear-gradient(135deg, #6366F1, #818CF8)'
|
|
|
+ `linear-gradient(135deg, ${BrandColors.action}, ${BrandColors.successLight3})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.info}, ${BrandColors.infoLight})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.wealth}, ${BrandColors.warning})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.primary}, ${BrandColors.primaryLight})`,
|
|
|
+ `linear-gradient(135deg, ${BrandColors.wisdom}, ${BrandColors.wisdomLight})`
|
|
|
]
|
|
|
// res.data is the response wrapper, articles are in res.data.data
|
|
|
var rawList = res.data && (Array.isArray(res.data) ? res.data : (res.data.data || res.data.records || []))
|
|
|
@@ -2033,7 +2034,7 @@ title: '添加家庭成员',
|
|
|
$c-brand-tint-3: $brand-primary-light-2; // orange-200
|
|
|
$c-brand-ink: #7C2D12; // orange-900 深文字
|
|
|
$c-brand-ink-2: #9A3412; // orange-800
|
|
|
-$c-brand-ink-3: #B45309; // amber-700
|
|
|
+$c-brand-ink-3: $status-warning-strong-2; // amber-700
|
|
|
// 文字阶(页面既有灰阶)
|
|
|
$c-text-slate: $uni-text-color-secondary; // slate-500
|
|
|
$c-ink-slate: $facade-text-slate-700; // slate-700
|
|
|
@@ -2042,13 +2043,13 @@ $c-fill-slate: $facade-fill-slate-50; // slate-50
|
|
|
// 维度深/浅阶(wisdom indigo / action emerald / violet)
|
|
|
$c-wisdom-tint: #EFF4FF;
|
|
|
$c-wisdom-ink: #312E81;
|
|
|
-$c-wisdom-mid: #4338CA;
|
|
|
+$c-wisdom-mid: $accent-indigo-ink;
|
|
|
$c-wisdom-light: $dim-wisdom-light;
|
|
|
-$c-action-tint: #ECFDF5;
|
|
|
+$c-action-tint: $status-success-tint;
|
|
|
$c-action-ink: #064E3B;
|
|
|
$c-action-mid: #047857;
|
|
|
$c-action-light: $status-success-light-3;
|
|
|
-$c-violet-tint: #F5F3FF;
|
|
|
+$c-violet-tint: $facade-violet-tint-2;
|
|
|
$c-violet-ink: #4C1D95;
|
|
|
$c-violet-mid: #6D28D9;
|
|
|
// Material 状态阶(页面既有观感,与 §13 tailwind 状态令牌不同值,故局部承载)
|
|
|
@@ -2938,14 +2939,14 @@ $c-warm-tint: #FFF3E7;
|
|
|
|
|
|
/* ===== 超期任务样式 ===== */
|
|
|
.task-quick-item--overdue .task-quick-meta--overdue {
|
|
|
- color: #ff4d4f;
|
|
|
+ color: $status-danger-2;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
.status-badge-overdue {
|
|
|
margin-left: 16rpx;
|
|
|
padding: 8rpx 20rpx;
|
|
|
background: rgba(255,77,79,0.1);
|
|
|
- color: #ff4d4f;
|
|
|
+ color: $status-danger-2;
|
|
|
font-size: 24rpx;
|
|
|
font-weight: bold;
|
|
|
border-radius: 20rpx;
|