| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553 |
- <template>
- <view class="container">
- <view v-if="!isLoggedIn">
- <!-- 品牌定位语 -->
- <view class="brand-strap"><text class="brand-strap-text">看见改变正在发生</text></view>
- <!-- 理念卡 -->
- <view class="concept-card">
- <text class="concept-quote">记录不是目的,看见改变才是。</text>
- <text class="concept-desc">每一份饮食、运动、心情的记录,都在为成长提供依据。</text>
- </view>
- <!-- 示例案例 -->
- <view class="case-card">
- <view class="case-header">
- <text class="case-label">📖 真实案例(脱敏)</text>
- </view>
- <view class="case-body">
- <text class="case-name">小明(10岁,体校生)</text>
- <text class="case-change">3个月干预前后:</text>
- <view class="case-metrics">
- <view class="metric-item">
- <text class="metric-up">↑ 5分</text>
- <text class="metric-label">身维度</text>
- </view>
- <view class="metric-item">
- <text class="metric-up">↑ 3分</text>
- <text class="metric-label">智维度</text>
- </view>
- <view class="metric-item">
- <text class="metric-up">↑ 8天</text>
- <text class="metric-label">连续打卡</text>
- </view>
- </view>
- <text class="case-note">通过饮食记录 + 睡眠打卡,免疫力显著提升</text>
- </view>
- </view>
- <!-- 功能预览 -->
- <view class="guest-features">
- <view class="feat-card" @click="handleGuestFeatureTap">
- <text class="feat-icon">✅</text>
- <text class="feat-title">每日打卡</text>
- <text class="feat-desc">饮食·运动·睡眠·心情</text>
- </view>
- <view class="feat-card" @click="handleGuestFeatureTap">
- <text class="feat-icon">🏆</text>
- <text class="feat-title">里程碑</text>
- <text class="feat-desc">连续打卡·挑战完成</text>
- </view>
- <view class="feat-card" @click="handleGuestFeatureTap">
- <text class="feat-icon">🎯</text>
- <text class="feat-title">家庭挑战</text>
- <text class="feat-desc">全家参与的互动任务</text>
- </view>
- <view class="feat-card" @click="handleGuestFeatureTap">
- <text class="feat-icon">📋</text>
- <text class="feat-title">任务中心</text>
- <text class="feat-desc">执行任务·完成挑战</text>
- </view>
- </view>
- <!-- 五维健康体系 -->
- <view class="wuxing-section">
- <view class="wuxing-title">身·心·智·行·富 · 可执行的成长闭环</view>
- <view class="wuxing-desc">五行相生相克,动起来、坚持做,让成长真正发生</view>
- <view class="wuxing-relations">
- <view class="rel-group">
- <text class="rel-title">相生 → 系统前进</text>
- <view class="rel-chain">
- <text class="rel-item">🌏 身</text><text class="rel-arrow">→</text>
- <text class="rel-item">⚡ 智</text><text class="rel-arrow">→</text>
- <text class="rel-item">💧 富</text><text class="rel-arrow">→</text>
- <text class="rel-item">🌿 行</text><text class="rel-arrow">→</text>
- <text class="rel-item">🔥 心</text><text class="rel-arrow">→</text>
- <text class="rel-item">🌏 身</text>
- </view>
- <text class="rel-hint">身勤则强,智勤则开,富勤则聚,行勤则和,心勤则安</text>
- </view>
- <view class="rel-group">
- <text class="rel-title">相克 → 系统平衡</text>
- <view class="rel-chain">
- <text class="rel-item">🌏 身</text><text class="rel-op">克</text><text class="rel-item">💧 富</text><text class="rel-dot">·</text>
- <text class="rel-item">⚡ 智</text><text class="rel-op">克</text><text class="rel-item">🌿 行</text><text class="rel-dot">·</text>
- <text class="rel-item">💧 富</text><text class="rel-op">克</text><text class="rel-item">🔥 心</text><text class="rel-dot">·</text>
- <text class="rel-item">🌿 行</text><text class="rel-op">克</text><text class="rel-item">🌏 身</text><text class="rel-dot">·</text>
- <text class="rel-item">🔥 心</text><text class="rel-op">克</text><text class="rel-item">⚡ 智</text>
- </view>
- <text class="rel-hint">不拿身体换快钱,不算计关系得失,财富服务家庭,关爱有度、不溺爱越界</text>
- </view>
- </view>
- <view class="wuxing-cards">
- <view class="wc-card wc-body" @click="goPage('/pages/body-detail/index')">
- <text class="wc-icon">🌏</text>
- <view class="wc-info">
- <text class="wc-name">身 · 主动健康</text>
- <text class="wc-text">每天动一动、睡得香,身体状态看得见地变好</text>
- </view>
- </view>
- <view class="wc-card wc-wisdom" @click="goPage('/pages/wisdom-detail/index')">
- <text class="wc-icon">⚡</text>
- <view class="wc-info">
- <text class="wc-name">智 · 赋能未来</text>
- <text class="wc-text">每天读几页、练一会专注,智慧是练出来的</text>
- </view>
- </view>
- <view class="wc-card wc-wealth" @click="goPage('/pages/wealth/index')">
- <text class="wc-icon">💧</text>
- <view class="wc-info">
- <text class="wc-name">富 · 利他创富</text>
- <text class="wc-text">坚持分享与积累,把第二收入曲线做出来</text>
- </view>
- </view>
- <view class="wc-card wc-action" @click="goPage('/pages/action-detail/member-action-detail')">
- <text class="wc-icon">🌿</text>
- <view class="wc-info">
- <text class="wc-name">行 · 人际和谐</text>
- <text class="wc-text">从一次倾听开始,让家庭关系每天升温</text>
- </view>
- </view>
- <view class="wc-card wc-mind" @click="goPage('/pages/mind-detail/index')">
- <text class="wc-icon">🔥</text>
- <view class="wc-info">
- <text class="wc-name">心 · 大爱相随</text>
- <text class="wc-text">每天留 10 分钟说说话,把家人的心事接住</text>
- </view>
- </view>
- </view>
- </view>
- <!-- 登录引导 -->
- <view class="login-guide-section">
- <LoginGuideCard
- title="解锁完整成长档案"
- :items="[
- '查看干预进度与追踪记录',
- '完成每日打卡累积连续记录',
- '参与家庭挑战获得里程碑奖励'
- ]" />
- </view>
- </view>
- <view v-else>
- <view class="reminder-bar" v-if="hasIncomplete">
- <text class="reminder-text">⚠ 今日还有 {{ incompleteCount }} 项未记录</text>
- <text class="reminder-close" @click="dismissReminder">✕</text>
- </view>
- <!-- 里程碑(最上) -->
- <view class="section">
- <view class="milestone-card">
- <text class="section-title-row">🏆 里程碑</text>
- <view class="milestone-grid">
- <view class="milestone-item">
- <text class="milestone-icon">🔥</text>
- <text class="milestone-value">{{ streakDays }}天</text>
- <text class="milestone-label">连续打卡</text>
- </view>
- <view class="milestone-item">
- <text class="milestone-icon">🎯</text>
- <text class="milestone-value">{{ activeChallenges }}</text>
- <text class="milestone-label">进行中挑战</text>
- </view>
- <view class="milestone-item">
- <text class="milestone-icon">📈</text>
- <text class="milestone-value">{{ completeness }}%</text>
- <text class="milestone-label">档案完整度</text>
- </view>
- </view>
- </view>
- </view>
- <!-- 今日成长 -->
- <view class="section">
- <view class="progress-card">
- <view class="progress-header">
- <text class="progress-title">今日成长</text>
- <text class="progress-date">{{ todayDate }}</text>
- </view>
- <view class="progress-grid" v-if="progressItems.length > 0">
- <view class="progress-grid-item" v-for="(item, idx) in progressItems" :key="getProgressKey(item)" @click="handleProgressClick(idx)">
- <text class="progress-grid-icon">{{ item.icon }}</text>
- <text class="progress-grid-label">{{ item.label }}</text>
- <text class="progress-grid-status" :class="item.done ? 'status-done' : 'status-pending'">{{ item.done ? '✔' : (item.actionText || '去记录') }}</text>
- </view>
- </view>
- <view class="progress-footer">
- <text class="footer-text">今日完成 {{ doneCount }}/{{ totalCount }}</text>
- <text class="footer-streak" v-if="streakDays > 0">🔥 连续打卡 {{ streakDays }} 天</text>
- </view>
- </view>
- </view>
- <view class="section" v-if="cautionCount > 0">
- <view class="action-card" @click="goToCaution">
- <text class="action-icon">⚠️</text>
- <view class="action-info">
- <text class="action-title">食材戒备匹配</text>
- <text class="action-desc">{{ cautionCount }} 种食材需关注,点击查看戒备详情</text>
- </view>
- <text class="action-arrow">›</text>
- </view>
- </view>
- <!-- 饮食推荐 -->
- <view class="section">
- <view class="action-card" @click="goToFoods">
- <text class="action-icon">🍽️</text>
- <view class="action-info">
- <text class="action-title">饮食推荐</text>
- <text class="action-desc">选同住人,获取今日个性化饮食建议</text>
- </view>
- <text class="action-arrow">›</text>
- </view>
- </view>
- <!-- 任务中心(内联) -->
- <view class="section" v-if="recentTasks.length > 0">
- <view class="task-preview-card">
- <view class="task-preview-header">
- <text class="task-preview-title">📋 待办任务</text>
- <text class="task-preview-more" @click="goToTasks">更多 ›</text>
- </view>
- <view class="task-preview-list">
- <view class="task-preview-item" v-for="(task, idx) in recentTasks" :key="getTaskKey(task, idx)" @click="goToTasks">
- <view class="task-preview-left">
- <text class="task-preview-name">{{ task.title }}</text>
- <view class="task-preview-meta">
- <text class="task-preview-points">+{{ task.points }}分</text>
- <text class="task-preview-deadline" v-if="task.deadline">⏱ {{ formatTaskTime(task.deadline) }}</text>
- </view>
- </view>
- <text class="task-preview-arrow">›</text>
- </view>
- </view>
- </view>
- </view>
- <DimensionActivities :isLoggedIn="true" @activityClick="goActivityDetail" @moreActivities="goMoreActivities" style="margin-bottom:60rpx" />
- <!-- 推荐阅读 -->
- <view class="section" v-if="recommendArticles.length > 0">
- <view class="section-header">
- <text class="section-title">📖 推荐阅读</text>
- <text class="section-more" @click="goMoreArticles">更多 ›</text>
- </view>
- <ArticleBookshelf :articles="recommendArticles" :isLoggedIn="true" @articleClick="goToArticle" />
- </view>
- <!-- 推荐商品(放最底部) -->
- <view class="section">
- <view class="section-header">
- <text class="section-title">🛍️ 推荐商品</text>
- <text class="section-more" @click="goMoreProducts">更多 ›</text>
- </view>
- <DimensionProducts :isLoggedIn="true" :showMore="false" @productClick="goToProduct" />
- </view>
- <view class="bottom-spacer" style="height: 40rpx;"></view>
- </view>
- </view>
- </template>
- <script>
- import LoginGuideCard from '../../components/LoginGuideCard.vue'
- import DimensionActivities from '../../components/DimensionActivities.vue'
- import DimensionProducts from '../../components/DimensionProducts.vue'
- import ArticleBookshelf from '../../components/ArticleBookshelf.vue'
- import { healthCheckinList, getHealthMealList, getFoodCautionList, getGrowthRecommendations, getExerciseRecords, getSleepRecords, getEmotionCheckinList, getCheckinList, getTodayTasks } from '../../utils/api.js'
- import { parseDate } from '../../utils/format.js'
- export default {
- components: { LoginGuideCard, DimensionActivities, DimensionProducts, ArticleBookshelf },
- data() { return { memberId: '', todayDate: '', hasIncomplete: false, incompleteCount: 0, progressItems: [], recentTasks: [], streakDays: 0, activeChallenges: 0, completeness: 0, cautionCount: 0,
- healthArticles: [],
- growthArticles: [],
- isLoggedIn: false } },
- computed: {
- doneCount: function() { var c = 0; for (var i = 0; i < this.progressItems.length; i++) if (this.progressItems[i] && this.progressItems[i].done) c++; return c },
- totalCount: function() { return this.progressItems.length },
- recommendArticles: function() {
- var arr = []
- if (this.healthArticles && this.healthArticles.length > 0) arr = arr.concat(this.healthArticles)
- if (this.growthArticles && this.growthArticles.length > 0) arr = arr.concat(this.growthArticles)
- return arr
- }
- },
- onShow() {
- this.isLoggedIn = !!uni.getStorageSync('token')
- if (this.isLoggedIn) {
- this.memberId = uni.getStorageSync('currentChildId') || uni.getStorageSync('currentMemberId') || uni.getStorageSync('userId') || ''
- var now = new Date()
- this.todayDate = now.getFullYear() + '-' + this.pad(now.getMonth() + 1) + '-' + this.pad(now.getDate())
- this.loadAllData()
- }
- },
- methods: {
- pad: function(n) { return n < 10 ? '0' + n : '' + n },
- getProgressKey: function(item) { return item && item.label ? item.label : 'p-' + Math.random() },
- dismissReminder: function() { this.hasIncomplete = false },
- handleProgressClick: function(idx) {
- var item = this.progressItems[idx]
- if (!item || !item.key) return
- var m = { diet: '/pages/growth/diet-checkin', exercise: '/pages/growth/exercise-checkin', sleep: '/pages/growth/sleep-checkin', emotion: '/pages/growth/growth-emotion-checkin', checkin: '/pages/wealth-sub/checkin' }
- var url = m[item.key]
- if (url) uni.navigateTo({ url: url })
- },
- getTaskKey: function(task, idx) { return (task && task.id) ? ('t' + task.id) : ('tk' + idx) },
- formatTaskTime: function(dateVal) {
- if (!dateVal) return ''
- var d = parseDate(dateVal)
- if (!d) return ''
- return (d.getMonth() + 1) + '/' + d.getDate() + ' ' + this.pad(d.getHours()) + ':' + this.pad(d.getMinutes())
- },
- async loadRecentTasks() {
- var self = this
- try {
- var res = await getTodayTasks(self.memberId ? { memberId: self.memberId } : {})
- if (res && res.code === 200 && res.data) {
- self.recentTasks = (res.data || []).slice(0, 3)
- }
- } catch(e) {}
- },
- goActivityDetail: function(act) { uni.navigateTo({ url: '/pages/activity/activity-detail/activity-detail?id=' + act.id }) },
- goMoreActivities: function() { uni.navigateTo({ url: '/pages/activity/index' }) },
- goToTasks: function() { uni.navigateTo({ url: '/pages/child/tasks' }) },
- handleGuestFeatureTap: function() { uni.showToast({ title: '登录后即可体验该功能', icon: 'none' }) },
- goToCaution: function() { uni.navigateTo({ url: '/pages/growth/caution-detail' }) },
- goToFoods: function() { uni.navigateTo({ url: '/pages/diet/index' }) },
- goToArticle: function(article) { var id = article && article.id ? article.id : article; if (!id) return; uni.navigateTo({ url: '/pages/article-center/article-detail?id=' + id }) },
- goToProduct: function(prod) { var id = prod && prod.id ? prod.id : prod; if (!id) return; uni.navigateTo({ url: '/pages/shop/detail/detail?id=' + id }) },
- goMoreProducts: function() { uni.navigateTo({ url: '/pages/shop/index/index' }) },
- goMoreArticles: function() { uni.navigateTo({ url: '/pages/article-center/index?dimension=action' }) },
- goPage: function(url) { uni.navigateTo({ url: url }) },
- formatDateKey: function(dateVal) {
- if (!dateVal) return ''
- var d = parseDate(dateVal)
- if (!d) return ''
- return d.getFullYear() + '-' + this.pad(d.getMonth() + 1) + '-' + this.pad(d.getDate())
- },
- formatRecordDate: function(dateVal) {
- if (!dateVal) return ''
- var d = parseDate(dateVal)
- if (!d) return ''
- return this.pad(d.getMonth() + 1) + '-' + this.pad(d.getDate())
- },
- mealTypeLabel: function(type) {
- var m = { breakfast: '早餐', lunch: '午餐', dinner: '晚餐', snack: '加餐', extra: '零食' }
- return m[type] || type || '饮食'
- },
- async loadAllData() {
- var self = this
- try { await self.loadProgressItems() } catch(e) {}
- try { await self.loadRecentTasks() } catch(e) {}
- try { await self.loadCautionData() } catch(e) {}
- try { await self.loadGrowthRecommendations() } catch(e) {}
- try { await self.loadMilestones() } catch(e) {}
- },
- async loadProgressItems() {
- var self = this
- var items = []
- var dietDone = false
- try {
- var dParams = self.memberId ? { memberId: self.memberId } : {}
- var dRes = await getHealthMealList(dParams)
- var dList = (dRes.code === 200 && dRes.data) ? dRes.data : []
- for (var di = 0; di < dList.length; di++) {
- var dr = dList[di]
- if (!dr) continue
- if (self.formatDateKey(dr.createdAt || dr.recordDate) === self.todayDate) dietDone = true
- }
- } catch(e) {}
- items.push({ key: 'diet', icon: '🍽️', label: '饮食记录', done: dietDone, actionText: '补录' })
- var exerciseDone = false
- try {
- var eParams = self.memberId ? { memberId: self.memberId } : {}
- var eRes = await getExerciseRecords(eParams)
- var eList = (eRes.code === 200 && eRes.data) ? eRes.data : []
- for (var ei = 0; ei < eList.length; ei++) {
- var er = eList[ei]
- if (!er) continue
- if (self.formatDateKey(er.startTime || er.createdAt) === self.todayDate) exerciseDone = true
- }
- } catch(e) {}
- items.push({ key: 'exercise', icon: '🏃', label: '运动记录', done: exerciseDone, actionText: '记录' })
- var sleepDone = false
- try {
- var sParams = self.memberId ? { memberId: self.memberId } : {}
- var sRes = await getSleepRecords(sParams)
- var sList = (sRes.code === 200 && sRes.data) ? sRes.data : []
- for (var si = 0; si < sList.length; si++) {
- var sr = sList[si]
- if (!sr) continue
- if (self.formatDateKey(sr.sleepTime || sr.createdAt) === self.todayDate) sleepDone = true
- }
- } catch(e) {}
- items.push({ key: 'sleep', icon: '😴', label: '睡眠记录', done: sleepDone, actionText: '记录' })
- var emotionDone = false
- try {
- var mParams = { page: 1, size: 10 }
- if (self.memberId) mParams.memberId = self.memberId
- var mRes = await getEmotionCheckinList(mParams)
- var mList = (mRes.code === 200 && mRes.data) ? mRes.data : []
- for (var mi = 0; mi < mList.length; mi++) {
- var mr = mList[mi]
- if (!mr) continue
- if (self.formatDateKey(mr.checkinDate || mr.createdAt) === self.todayDate) emotionDone = true
- }
- } catch(e) {}
- items.push({ key: 'emotion', icon: '😊', label: '心情记录', done: emotionDone, actionText: '记录' })
- var checkinDone = false
- try {
- var cParams = self.memberId ? { memberId: self.memberId } : {}
- var cRes = await getCheckinList(cParams)
- var cList = (cRes.code === 200 && cRes.data) ? cRes.data : []
- for (var ci = 0; ci < cList.length; ci++) {
- if (cList[ci] && cList[ci].checkinDate && cList[ci].checkinDate.indexOf(self.todayDate) === 0) {
- checkinDone = true
- break
- }
- }
- } catch(e) {}
- items.push({ key: 'checkin', icon: '💰', label: '记账打卡', done: checkinDone, actionText: '去打卡' })
- self.progressItems = items.filter(function(it) { return it && it.key })
- self.incompleteCount = 0
- for (var pi = 0; pi < items.length; pi++) if (items[pi] && !items[pi].done) self.incompleteCount++
- self.hasIncomplete = self.incompleteCount > 0
- },
- async loadGrowthRecommendations() {
- var self = this
- try {
- var res = await getGrowthRecommendations('health', 6)
- if (res && res.code === 200 && res.data) {
- var arts = res.data.articles || []
- self.healthArticles = arts.filter(function(a){ return a.growthCategory === 'health' })
- self.growthArticles = arts.filter(function(a){ return a.growthCategory === 'growth' })
- }
- } catch(e) {}
- },
- async loadCautionData() {
- var self = this
- try {
- var res = await getFoodCautionList()
- if (res && res.code === 200) self.cautionCount = (res.data || []).length
- } catch(e) {}
- },
- async loadMilestones() {
- var self = this
- try {
- var ciRes = await healthCheckinList({})
- if (ciRes.code === 200 && ciRes.data) self.streakDays = Math.min(ciRes.data.length, 30)
- } catch(e) {}
- self.activeChallenges = 0
- self.completeness = self.streakDays > 0 ? Math.min(100, Math.round(self.streakDays * 10)) : 0
- }
- }
- }
- </script>
- <style scoped>
- .container{background:#FFF7ED;min-height:100vh;padding-bottom:calc(160rpx + env(safe-area-inset-bottom))}
- .section{margin:16rpx 24rpx}
- /* 游客态 */
- .brand-strap{margin:0 24rpx 16rpx;background:linear-gradient(135deg,#F0FFF4,rgba(16,185,129,0.1));border-radius:16rpx;padding:20rpx 24rpx}
- .brand-strap-text{font-size:26rpx;color:#10B981;font-weight:600}
- .concept-card{margin:0 24rpx 16rpx;background:#fff;border-radius:20rpx;padding:28rpx;border-left:6rpx solid #10B981;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
- .concept-quote{font-size:30rpx;font-weight:bold;color:#333;display:block;margin-bottom:8rpx}
- .concept-desc{font-size:24rpx;color:#888;display:block;line-height:1.6}
- .case-card{margin:0 24rpx 16rpx;background:#fff;border-radius:20rpx;padding:24rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
- .case-header{margin-bottom:12rpx}
- .case-label{font-size:24rpx;color:#10B981;font-weight:bold}
- .case-body{padding:8rpx 0}
- .case-name{font-size:26rpx;color:#333;font-weight:600;display:block;margin-bottom:6rpx}
- .case-change{font-size:24rpx;color:#666;display:block;margin-bottom:12rpx}
- .case-metrics{display:flex;gap:16rpx;margin-bottom:12rpx}
- .metric-item{display:flex;flex-direction:column;align-items:center;flex:1;background:#F0FFF4;border-radius:12rpx;padding:12rpx 8rpx}
- .metric-up{font-size:26rpx;font-weight:bold;color:#10B981}
- .metric-label{font-size:20rpx;color:#999;margin-top:4rpx}
- .case-note{font-size:22rpx;color:#888;display:block}
- .guest-features{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 24rpx 16rpx}
- .feat-card{width:calc(50% - 8rpx);box-sizing:border-box;background:#fff;border-radius:20rpx;padding:24rpx;margin-bottom:16rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
- .feat-icon{font-size:40rpx;display:block;margin-bottom:8rpx}
- .feat-title{font-size:26rpx;font-weight:600;color:#333;display:block;margin-bottom:4rpx}
- .feat-desc{font-size:22rpx;color:#999;display:block}
- .login-guide-section{margin:0 24rpx 24rpx}
- /* 成长行动卡片 */
- .action-card{display:flex;align-items:center;padding:24rpx 28rpx;background:#fff;border-radius:16rpx;margin:0 24rpx 16rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
- .action-card:active{opacity:0.85}
- .action-icon{font-size:44rpx;margin-right:20rpx}
- .action-info{flex:1}
- .action-title{font-size:28rpx;font-weight:600;color:#333;display:block}
- .action-desc{font-size:22rpx;color:#888;margin-top:4rpx;display:block}
- .action-arrow{font-size:32rpx;color:#ccc}
- /* section-header 组件通用样式 */
- .section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12rpx}
- .section-title{font-size:28rpx;font-weight:600;color:#333}
- .section-more{font-size:24rpx;color:#F97316}
- /* 登录后 */
- .reminder-bar{margin:12rpx 24rpx;background:#FFF3E0;border:1rpx solid #FFB74D;border-radius:12rpx;padding:14rpx 20rpx;display:flex;align-items:center;justify-content:space-between}
- .reminder-text{font-size:24rpx;color:#E65100}
- .reminder-close{font-size:28rpx;color:#999}
- /* 里程碑 */
- .milestone-card{background:#fff;border-radius:20rpx;padding:24rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
- .section-title-row{font-size:26rpx;font-weight:bold;color:#333;margin-bottom:16rpx;display:block}
- .milestone-grid{display:flex;justify-content:space-between}
- .milestone-item{display:flex;flex-direction:column;align-items:center;flex:1}
- .milestone-icon{font-size:40rpx;margin-bottom:4rpx}
- .milestone-value{font-size:28rpx;font-weight:bold;color:#F97316;margin-bottom:2rpx}
- .milestone-label{font-size:22rpx;color:#999}
- /* 今日成长 */
- .progress-card{background:#fff;border-radius:20rpx;padding:24rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
- .progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16rpx}
- .progress-title{font-size:28rpx;font-weight:bold;color:#333}
- .progress-date{font-size:22rpx;color:#999}
- .progress-grid{display:flex;justify-content:space-between}
- .progress-grid-item{flex:1;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20rpx 8rpx;background:#FFF7ED;border-radius:16rpx;margin-right:12rpx}
- .progress-grid-item:last-child{margin-right:0}
- .progress-grid-item:active{opacity:0.85;background:#FFEDD5}
- .progress-grid-icon{font-size:40rpx;margin-bottom:8rpx}
- .progress-grid-label{font-size:24rpx;color:#333;margin-bottom:8rpx;text-align:center}
- .progress-grid-status{font-size:20rpx;flex-shrink:0}
- .status-done{color:#10B981}
- .status-pending{color:#ccc}
- .progress-footer{display:flex;justify-content:space-between;align-items:center;margin-top:16rpx;padding-top:16rpx;border-top:1rpx solid #f5f5f5}
- .footer-text{font-size:24rpx;color:#666;font-weight:bold}
- .footer-streak{font-size:24rpx;color:#F97316;font-weight:bold}
- /* 任务中心预览 */
- .task-preview-card{background:#fff;border-radius:20rpx;padding:24rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
- .task-preview-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16rpx}
- .task-preview-title{font-size:28rpx;font-weight:bold;color:#333}
- .task-preview-more{font-size:24rpx;color:#F97316}
- .task-preview-list{display:flex;flex-direction:column}
- .task-preview-item{display:flex;align-items:center;padding:16rpx 0;border-bottom:1rpx solid #f5f5f5}
- .task-preview-item:last-child{border-bottom:none}
- .task-preview-left{flex:1;min-width:0}
- .task-preview-name{font-size:26rpx;color:#333;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
- .task-preview-meta{display:flex;align-items:center;gap:12rpx;margin-top:6rpx}
- .task-preview-points{font-size:22rpx;color:#F97316;font-weight:bold}
- .task-preview-deadline{font-size:20rpx;color:#999}
- .task-preview-arrow{font-size:28rpx;color:#ccc;flex-shrink:0;margin-left:12rpx}
- /* ===== 五维闭环体系样式 ===== */
- .wuxing-section { margin: 0 24rpx 16rpx; background: #fff; border-radius: 20rpx; padding: 24rpx; box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06); }
- .wuxing-title { font-size: 30rpx; font-weight: bold; color: #333; text-align: center; margin-bottom: 6rpx; }
- .wuxing-desc { font-size: 22rpx; color: #999; text-align: center; margin-bottom: 20rpx; }
- .wuxing-relations { margin-top: 8rpx; }
- .rel-group { margin-bottom: 16rpx; }
- .rel-title { font-size: 24rpx; font-weight: bold; color: #333; margin-bottom: 8rpx; display: block; }
- .rel-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4rpx; margin-bottom: 6rpx; }
- .rel-item { font-size: 22rpx; padding: 4rpx 10rpx; border-radius: 8rpx; background: #f7f7f7; color: #555; }
- .rel-arrow { font-size: 20rpx; color: #10B981; font-weight: bold; }
- .rel-op { font-size: 20rpx; color: #f56c6c; font-weight: bold; }
- .rel-dot { font-size: 20rpx; color: #ccc; }
- .rel-hint { font-size: 20rpx; color: #999; line-height: 1.5; display: block; }
- .wuxing-cards { display: flex; flex-direction: column; gap: 10rpx; margin-top: 16rpx; }
- .wc-card { display: flex; align-items: center; padding: 16rpx 20rpx; border-radius: 16rpx; border: 2rpx solid #f0f0f0; }
- .wc-card:active { opacity: 0.85; }
- .wc-icon { font-size: 36rpx; margin-right: 16rpx; flex-shrink: 0; }
- .wc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
- .wc-name { font-size: 24rpx; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
- .wc-text { font-size: 20rpx; color: #999; display: block; margin-top: 4rpx; white-space: normal; }
- .wc-body { border-color: rgba(255,140,66,0.3); background: rgba(255,140,66,0.04); border-left: 8rpx solid #FF8C42; }
- .wc-body .wc-name { color: #FF8C42; }
- .wc-wisdom { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.04); border-left: 8rpx solid #6366F1; }
- .wc-wisdom .wc-name { color: #6366F1; }
- .wc-wealth { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.04); border-left: 8rpx solid #F59E0B; }
- .wc-wealth .wc-name { color: #F59E0B; }
- .wc-action { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.04); border-left: 8rpx solid #10B981; }
- .wc-action .wc-name { color: #10B981; }
- .wc-mind { border-color: rgba(255,107,157,0.3); background: rgba(255,107,157,0.04); border-left: 8rpx solid #FF6B9D; }
- .wc-mind .wc-name { color: #FF6B9D; }
- </style>
|