| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497 |
- <template>
- <view class="container">
- <view v-if="!isLoggedIn">
- <PageBanner theme="action" tagline="干预 · 记录 · 成长" quote="知行合一,每天进步一点点" />
- <!-- 品牌定位语 -->
- <view class="brand-strap"><text class="brand-strap-text">看见改变正在发生</text></view>
- <!-- 五维健康体系 -->
- <view class="wuxing-section">
- <view class="wuxing-title">身·心·智·行·富 五维闭环</view>
- <view class="wuxing-desc">五行相生相克,构成家庭健康的完整生态</view>
- <view class="wuxing-diagram">
- <view class="wd-center">
- <text class="wd-center-text">家庭健康</text>
- <text class="wd-center-sub">闭环系统</text>
- </view>
- <view class="wd-ring">
- <view class="wd-node wd-body" @click="goPage('/pages/body-detail/index')">
- <text class="wd-icon">🌏</text>
- <text class="wd-name">身</text>
- <text class="wd-desc">主动健康</text>
- </view>
- <view class="wd-node wd-wisdom" @click="goPage('/pages/wisdom-detail/index')">
- <text class="wd-icon">⚡</text>
- <text class="wd-name">智</text>
- <text class="wd-desc">赋能未来</text>
- </view>
- <view class="wd-node wd-wealth" @click="goPage('/pages/wealth/index')">
- <text class="wd-icon">💧</text>
- <text class="wd-name">富</text>
- <text class="wd-desc">利他创富</text>
- </view>
- <view class="wd-node wd-action" @click="goPage('/pages/action-detail/member-action-detail')">
- <text class="wd-icon">🌿</text>
- <text class="wd-name">行</text>
- <text class="wd-desc">人际和谐</text>
- </view>
- <view class="wd-node wd-mind" @click="goPage('/pages/mind-detail/index')">
- <text class="wd-icon">🔥</text>
- <text class="wd-name">心</text>
- <text class="wd-desc">大爱相随</text>
- </view>
- </view>
- </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>
- <text class="wc-name">身 · 主动健康</text>
- <text class="wc-text">用最适合的方法,从根源调理全家体质</text>
- </view>
- <view class="wc-card wc-wisdom" @click="goPage('/pages/wisdom-detail/index')">
- <text class="wc-icon">⚡</text>
- <text class="wc-name">智 · 赋能未来</text>
- <text class="wc-text">心智测评与综合素质培养,开启下一代大智慧</text>
- </view>
- <view class="wc-card wc-wealth" @click="goPage('/pages/wealth/index')">
- <text class="wc-icon">💧</text>
- <text class="wc-name">富 · 利他创富</text>
- <text class="wc-text">在利他分享中实现家庭第二收入曲线</text>
- </view>
- <view class="wc-card wc-action" @click="goPage('/pages/action-detail/member-action-detail')">
- <text class="wc-icon">🌿</text>
- <text class="wc-name">行 · 人际和谐</text>
- <text class="wc-text">亲子关系·夫妻关系·社交人脉,以和谐滋养幸福</text>
- </view>
- <view class="wc-card wc-mind" @click="goPage('/pages/mind-detail/index')">
- <text class="wc-icon">🔥</text>
- <text class="wc-name">心 · 大爱相随</text>
- <text class="wc-text">心理学视角解读自我与家人,升华家族纽带</text>
- </view>
- </view>
- </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="goPage('/pages/health/daily-checkin')">
- <text class="feat-icon">✅</text>
- <text class="feat-title">每日打卡</text>
- <text class="feat-desc">饮食·运动·睡眠·心情</text>
- </view>
- <view class="feat-card" @click="goPage('/pages/health/survey-questionnaire?dim=all')">
- <text class="feat-icon">📋</text>
- <text class="feat-title">定期调研</text>
- <text class="feat-desc">每周家庭健康问卷</text>
- </view>
- <view class="feat-card">
- <text class="feat-icon">🏆</text>
- <text class="feat-title">里程碑</text>
- <text class="feat-desc">连续打卡·挑战完成</text>
- </view>
- <view class="feat-card" @click="goPage('/pages/activity/index')">
- <text class="feat-icon">🎯</text>
- <text class="feat-title">家庭挑战</text>
- <text class="feat-desc">全家参与的互动任务</text>
- </view>
- </view>
- <!-- 登录引导 -->
- <view class="login-guide-section">
- <LoginGuideCard
- title="解锁完整成长档案"
- :items="[
- '查看干预进度与追踪记录',
- '完成每日打卡累积连续记录',
- '参与家庭挑战获得里程碑奖励'
- ]" />
- </view>
- </view>
- <view v-else>
- <PageBanner theme="action" tagline="干预 · 记录 · 成长" quote="知行合一,每天进步一点点" />
- <FamilyMemberStrip @select="onMemberSelect" />
- <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="progress-card">
- <view class="progress-header">
- <text class="progress-title">今日干预进度</text>
- <text class="progress-date">{{ todayDate }}</text>
- </view>
- <view class="progress-item" v-for="(item, idx) in progressItems" :key="getProgressKey(item)">
- <text class="progress-icon">{{ item.icon }}</text>
- <text class="progress-label">{{ item.label }}</text>
- <text class="progress-status" :class="item.done ? 'status-done' : 'status-pending'">{{ item.done ? '✔ 已完成' : '' }}</text>
- <text class="progress-btn" v-if="!item.done" @click="handleProgressClick(item)">{{ item.actionText || '补录' }}</text>
- </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">
- <view class="tracking-card">
- <view class="tracking-tabs">
- <view class="tracking-tab" :class="activeTab === tab.key ? 'tab-active' : ''" v-for="tab in trackingTabs" :key="tab.key" @click="switchTab(tab.key)">
- <text class="tab-text" :class="activeTab === tab.key ? 'tab-active-text' : ''">{{ tab.label }}</text>
- </view>
- </view>
- <view class="tracking-content">
- <view class="tracking-empty" v-if="currentRecords.length === 0">
- <text class="empty-icon">📊</text>
- <text class="empty-text">还没有记录</text>
- <text class="empty-hint">开始记录{{ activeTabLabel }}吧</text>
- </view>
- <view class="tracking-record" v-for="(rec, rIdx) in currentRecords" :key="getRecordKey(rec)">
- <text class="record-date">{{ rec._date || rec._text }}</text>
- <text class="record-content">{{ rec._content }}</text>
- </view>
- <view class="tracking-more" v-if="currentRecords.length > 0" @click="viewAllRecords">查看全部 ›</view>
- </view>
- </view>
- </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="survey-card">
- <text class="section-title-row">📋 定期调研</text>
- <view class="survey-pending" v-if="pendingSurvey">
- <text class="survey-alert">⚠ 本周还未完成调研</text>
- <text class="survey-title-text">{{ pendingSurvey.title }}</text>
- <text class="survey-btn" @click="startSurvey">[开始填写]</text>
- </view>
- <view class="survey-done" v-else-if="allDone"><text class="survey-done-text">✅ 所有调研已完成</text></view>
- <view class="survey-history-list" v-if="surveyHistory.length > 0">
- <text class="history-label">历史调研:</text>
- <view class="history-item" v-for="(h, hIdx) in surveyHistory" :key="getHistoryKey(h)">
- <text class="history-date">{{ h._date }}</text>
- <text class="history-content">{{ h._content }}</text>
- </view>
- <text class="survey-more" @click="viewAllHistory">查看全部调研 ›</text>
- </view>
- <view class="survey-empty" v-else-if="!pendingSurvey"><text class="survey-empty-text">暂无待完成调研</text></view>
- </view>
- </view>
- <DimensionActivities :isLoggedIn="true" @activityClick="goActivityDetail" @moreActivities="goMoreActivities" style="margin-bottom:60rpx" />
- </view>
- </view>
- </template>
- <script>
- import PageBanner from '../../components/PageBanner.vue'
- import LoginGuideCard from '../../components/LoginGuideCard.vue'
- import FamilyMemberStrip from '../../components/FamilyMemberStrip.vue'
- import DimensionActivities from '../../components/DimensionActivities.vue'
- import { healthCheckinList, getDietDailyRecords, getSurveyStatus, getSurveyHistory } from '../../utils/api.js'
- export default {
- components: { PageBanner, LoginGuideCard, FamilyMemberStrip, DimensionActivities },
- data() { return { memberId: '', todayDate: '', hasIncomplete: false, incompleteCount: 0, progressItems: [], activeTab: 'diet', trackingTabs: [{ key: 'diet', label: '饮食' }, { key: 'exercise', label: '运动' }, { key: 'sleep', label: '睡眠' }, { key: 'emotion', label: '心情' }, { key: 'survey', label: '调研' }], trackingData: { diet: [], exercise: [], sleep: [], emotion: [], survey: [] }, streakDays: 0, activeChallenges: 0, completeness: 0, pendingSurvey: null, allDone: false, surveyHistory: [], 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 },
- activeTabLabel: function() { var m = { diet: '饮食', exercise: '运动', sleep: '睡眠', emotion: '心情', survey: '调研' }; return m[this.activeTab] || '' },
- currentRecords: function() { return this.trackingData[this.activeTab] || [] }
- },
- onShow() {
- this.isLoggedIn = !!uni.getStorageSync('token')
- if (this.isLoggedIn) {
- this.memberId = uni.getStorageSync('currentChildId') || ''
- var now = new Date()
- this.todayDate = now.getFullYear() + '-' + this.pad(now.getMonth() + 1) + '-' + this.pad(now.getDate())
- this.loadAllData()
- }
- },
- methods: {
- onMemberSelect: function(member) {
- this.memberId = member && member.id ? member.id : ''
- this.loadAllData()
- },
- pad: function(n) { return n < 10 ? '0' + n : '' + n },
- getProgressKey: function(item) { return item && item.label ? item.label : 'p-' + Math.random() },
- getRecordKey: function(rec) { return rec && rec._text ? rec._text + rec._content : 'r-' + Math.random() },
- getHistoryKey: function(h) { return h && h._date ? h._date + h._content : 'h-' + Math.random() },
- dismissReminder: function() { this.hasIncomplete = false },
- switchTab: function(key) { this.activeTab = key; this.loadTrackingData(key) },
- handleProgressClick: function(item) {
- var m = { checkin: '/pages/health/daily-checkin', diet: '/pages/health/diet-index', exercise: '/pages/health/exercise-index', sleep: '/pages/health/sleep-index', emotion: '/pages/mind/index' }
- var url = m[item.key]
- if (item.key === 'survey' && this.pendingSurvey && this.pendingSurvey.templateId) {
- url = '/pages/health/survey-questionnaire?templateId=' + this.pendingSurvey.templateId + '&templateTitle=' + encodeURIComponent(this.pendingSurvey.title) + '&templateDimension=' + (this.pendingSurvey.dimension || '')
- }
- if (url) uni.navigateTo({ url: url })
- },
- startSurvey: function() { if (this.pendingSurvey && this.pendingSurvey.templateId) uni.navigateTo({ url: '/pages/health/survey-questionnaire?templateId=' + this.pendingSurvey.templateId + '&templateTitle=' + encodeURIComponent(this.pendingSurvey.title) + '&templateDimension=' + (this.pendingSurvey.dimension || '') }) },
- viewAllRecords: function() { var m = { diet: '/pages/health/diet-index', exercise: '/pages/health/exercise-index', sleep: '/pages/health/sleep-index', survey: '/pages/health/survey-history?memberId=' + this.memberId, emotion: '/pages/mind/index' }; if (m[this.activeTab]) uni.navigateTo({ url: m[this.activeTab] }) },
- viewAllHistory: function() { uni.navigateTo({ url: '/pages/health/survey-history?memberId=' + this.memberId }) },
- goActivityDetail: function(act) { uni.navigateTo({ url: '/pages/activity/activity-detail/activity-detail?id=' + act.id }) },
- goMoreActivities: function() { uni.navigateTo({ url: '/pages/activity/index' }) },
- goPage: function(url) { uni.navigateTo({ url: url }) },
- loadTrackingData: function(key) { return this.trackingData[key] || [] },
- async loadAllData() {
- var self = this
- try { await self.loadProgressItems() } catch(e) {}
- try { await self.loadSurveyData() } catch(e) {}
- try { await self.loadMilestones() } catch(e) {}
- },
- async loadProgressItems() {
- var self = this
- var items = []
- var checkinDone = false
- try {
- var ciRes = await healthCheckinList({ yearMonth: self.todayDate.substring(0, 7) })
- if (ciRes.code === 200 && ciRes.data) {
- for (var ci = 0; ci < ciRes.data.length; ci++) { if (ciRes.data[ci] && ciRes.data[ci].checkinDate && ciRes.data[ci].checkinDate.substring(0, 10) === self.todayDate) { checkinDone = true; break } }
- }
- } catch(e) {}
- items.push({ key: 'checkin', icon: '✅', label: '今日打卡', done: checkinDone, actionText: '打卡' })
- var dietDone = false
- try {
- var dRes = await getDietDailyRecords({ date: self.todayDate })
- if (dRes.code === 200 && dRes.data && dRes.data.length > 0) dietDone = true
- } catch(e) {}
- items.push({ key: 'diet', icon: '🍽️', label: '饮食记录', done: dietDone, actionText: '补录' })
- items.push({ key: 'exercise', icon: '🏃', label: '运动记录', done: false, actionText: '记录' })
- items.push({ key: 'emotion', icon: '😊', label: '心情记录', done: false, actionText: '记录' })
- items.push({ key: 'survey', icon: '📋', label: '本周调研', done: self.allDone, actionText: self.allDone ? '' : '开始' })
- self.progressItems = items
- 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 loadSurveyData() {
- var self = this
- try {
- var statusRes = await getSurveyStatus({})
- if (statusRes.code === 200 && statusRes.data) {
- var list = statusRes.data
- self.pendingSurvey = null; self.allDone = true; var hasAny = false
- for (var si = 0; si < list.length; si++) { var s = list[si]; if (!s) continue; hasAny = true; if (s.status === 'pending') { self.pendingSurvey = { templateId: s.templateId, title: s.title || '定期调研', dimension: s.dimension || '' }; self.allDone = false } }
- if (!hasAny) { self.pendingSurvey = null; self.allDone = false }
- }
- } catch(e) {}
- try {
- var histRes = await getSurveyHistory({})
- if (histRes.code === 200 && histRes.data) {
- var hlist = histRes.data; self.surveyHistory = []
- for (var hi = 0; hi < Math.min(hlist.length, 3); hi++) { var h = hlist[hi]; self.surveyHistory.push({ _date: h && h.submittedAt ? h.submittedAt.substring(0, 10) : '', _content: '已完成调研' }) }
- }
- } 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:120rpx}
- .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;margin:0 24rpx 16rpx}
- .feat-card{width:calc(50% - 8rpx);background:#fff;border-radius:20rpx;padding:24rpx;margin-bottom:16rpx;margin-right: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}
- /* 登录后原有样式 */
- .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}
- .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-item{display:flex;align-items:center;padding:12rpx 0;border-bottom:1rpx solid #f5f5f5}
- .progress-item:last-of-type{border-bottom:none}
- .progress-icon{font-size:28rpx;margin-right:12rpx;flex-shrink:0}
- .progress-label{font-size:26rpx;color:#333;flex:1}
- .progress-status{font-size:22rpx;margin-right:8rpx;flex-shrink:0}
- .status-done{color:#10B981}
- .status-pending{color:#ccc}
- .progress-btn{font-size:22rpx;color:#F97316;padding:4rpx 16rpx;border:1rpx solid #F97316;border-radius:20rpx;flex-shrink:0}
- .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}
- .tracking-card{background:#fff;border-radius:20rpx;padding:24rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
- .tracking-tabs{display:flex;margin-bottom:16rpx}
- .tracking-tab{flex:1;text-align:center;padding:10rpx 0;border-radius:20rpx;margin-right:8rpx;background:#FFF7ED}
- .tracking-tab:last-child{margin-right:0}
- .tab-active{background:#F97316}
- .tab-text{font-size:24rpx;color:#666}
- .tab-active-text{color:#fff;font-weight:bold}
- .tracking-content{min-height:200rpx}
- .tracking-empty{display:flex;flex-direction:column;align-items:center;padding:60rpx 0}
- .empty-icon{font-size:60rpx;margin-bottom:12rpx}
- .empty-text{font-size:26rpx;color:#999}
- .empty-hint{font-size:22rpx;color:#ccc;margin-top:8rpx}
- .tracking-record{display:flex;align-items:center;padding:10rpx 0;border-bottom:1rpx solid #f5f5f5}
- .record-date{font-size:22rpx;color:#999;width:120rpx;flex-shrink:0}
- .record-content{font-size:24rpx;color:#333;flex:1}
- .tracking-more{text-align:right;font-size:24rpx;color:#F97316;padding:12rpx 0 0 0}
- .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}
- .survey-card{background:#fff;border-radius:20rpx;padding:24rpx;box-shadow:0 2rpx 12rpx rgba(0,0,0,0.06)}
- .survey-pending{background:#FFF3E0;border-radius:12rpx;padding:16rpx;margin-bottom:12rpx}
- .survey-alert{font-size:24rpx;color:#E65100;font-weight:bold;display:block;margin-bottom:4rpx}
- .survey-title-text{font-size:24rpx;color:#333;display:block;margin-bottom:8rpx}
- .survey-btn{font-size:22rpx;color:#F97316;font-weight:bold}
- .survey-done{padding:8rpx 0}
- .survey-done-text{font-size:24rpx;color:#10B981}
- .survey-history-list{border-top:1rpx solid #f5f5f5;padding-top:12rpx}
- .history-label{font-size:22rpx;color:#999;display:block;margin-bottom:6rpx}
- .history-item{display:flex;align-items:center;padding:6rpx 0}
- .history-date{font-size:22rpx;color:#999;width:120rpx;flex-shrink:0}
- .history-content{font-size:24rpx;color:#666;flex:1}
- .survey-more{text-align:right;font-size:22rpx;color:#F97316;padding-top:8rpx}
- .survey-empty{padding:12rpx 0}
- .survey-empty-text{font-size:24rpx;color:#999}
- </style>
- /* ===== 五维闭环体系样式 ===== */
- .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-diagram { position: relative; height: 320rpx; margin: 0 auto 20rpx; }
- .wd-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 140rpx; height: 140rpx; background: linear-gradient(135deg, #10B981, #34D399); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4rpx 20rpx rgba(16,185,129,0.3); z-index: 2; }
- .wd-center-text { font-size: 24rpx; font-weight: bold; color: #fff; }
- .wd-center-sub { font-size: 18rpx; color: rgba(255,255,255,0.8); margin-top: 2rpx; }
- .wd-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
- .wd-node { position: absolute; width: 130rpx; text-align: center; cursor: pointer; }
- .wd-node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
- .wd-node:nth-child(2) { top: 25%; right: 0; }
- .wd-node:nth-child(3) { bottom: 25%; right: 0; }
- .wd-node:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); }
- .wd-node:nth-child(5) { bottom: 25%; left: 0; }
- .wd-icon { font-size: 40rpx; display: block; }
- .wd-name { font-size: 26rpx; font-weight: bold; display: block; margin-top: 4rpx; }
- .wd-desc { font-size: 18rpx; color: #999; display: block; }
- .wd-node.wd-body .wd-name { color: #FF8C42; }
- .wd-node.wd-wisdom .wd-name { color: #6366F1; }
- .wd-node.wd-wealth .wd-name { color: #F59E0B; }
- .wd-node.wd-action .wd-name { color: #10B981; }
- .wd-node.wd-mind .wd-name { color: #FF6B9D; }
- .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: #f5f5f5; }
- .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-name { font-size: 24rpx; font-weight: 600; flex: 1; }
- .wc-text { font-size: 20rpx; color: #999; display: block; margin-top: 2rpx; }
- .wc-body { border-color: rgba(255,140,66,0.3); background: rgba(255,140,66,0.04); }
- .wc-body .wc-name { color: #FF8C42; }
- .wc-wisdom { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.04); }
- .wc-wisdom .wc-name { color: #6366F1; }
- .wc-wealth { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.04); }
- .wc-wealth .wc-name { color: #F59E0B; }
- .wc-action { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.04); }
- .wc-action .wc-name { color: #10B981; }
- .wc-mind { border-color: rgba(255,107,157,0.3); background: rgba(255,107,157,0.04); }
- .wc-mind .wc-name { color: #FF6B9D; }
|