|
@@ -65,6 +65,75 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
+ <!-- 五行能量沙盘(溪艾福) -->
|
|
|
|
|
+ <view class="wuxing-sandbox">
|
|
|
|
|
+ <view class="sandbox-header">
|
|
|
|
|
+ <text class="sandbox-title">五行能量沙盘</text>
|
|
|
|
|
+ <text class="sandbox-badge">综合成长力 0%</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="sandbox-star">
|
|
|
|
|
+ <!-- 五角星布局 -->
|
|
|
|
|
+ <view class="star-point star-point-top" @click="goToDomain('mind')">
|
|
|
|
|
+ <text class="point-icon">🔥</text>
|
|
|
|
|
+ <text class="point-label">心·火</text>
|
|
|
|
|
+ <text class="point-status inactive">待激活</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="star-point star-point-left" @click="goToDomain('action')">
|
|
|
|
|
+ <text class="point-icon">🌿</text>
|
|
|
|
|
+ <text class="point-label">行·木</text>
|
|
|
|
|
+ <text class="point-status inactive">待激活</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="star-point star-point-right" @click="goToDomain('wealth')">
|
|
|
|
|
+ <text class="point-icon">💧</text>
|
|
|
|
|
+ <text class="point-label">富·水</text>
|
|
|
|
|
+ <text class="point-status inactive">待激活</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="star-point star-point-bl" @click="goToDomain('wisdom')">
|
|
|
|
|
+ <text class="point-icon">⚔️</text>
|
|
|
|
|
+ <text class="point-label">智·金</text>
|
|
|
|
|
+ <text class="point-status inactive">待激活</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="star-point star-point-br" @click="goToDomain('body')">
|
|
|
|
|
+ <text class="point-icon">🌏</text>
|
|
|
|
|
+ <text class="point-label">身·土</text>
|
|
|
|
|
+ <text class="point-status inactive">待激活</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- 中心徽章 -->
|
|
|
|
|
+ <view class="star-center">
|
|
|
|
|
+ <text class="center-text">五行平衡</text>
|
|
|
|
|
+ <text class="center-sub">共同成长</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- 相生指引 -->
|
|
|
|
|
+ <view class="shenke-hint">
|
|
|
|
|
+ <text class="hint-text">🌱 完成测评,点亮「身·土」</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- 维度状态条 -->
|
|
|
|
|
+ <view class="dimension-bar">
|
|
|
|
|
+ <view class="dim-item inactive">🌿行</view>
|
|
|
|
|
+ <text class="dim-arrow">→</text>
|
|
|
|
|
+ <view class="dim-item inactive">🔥心</view>
|
|
|
|
|
+ <text class="dim-arrow">→</text>
|
|
|
|
|
+ <view class="dim-item inactive">🌏身</view>
|
|
|
|
|
+ <text class="dim-arrow">→</text>
|
|
|
|
|
+ <view class="dim-item inactive">⚔️智</view>
|
|
|
|
|
+ <text class="dim-arrow">→</text>
|
|
|
|
|
+ <view class="dim-item inactive">💧富</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 会员Banner(溪福俱乐部) -->
|
|
|
|
|
+ <view class="membership-banner" @click="goToMembership">
|
|
|
|
|
+ <view class="banner-content">
|
|
|
|
|
+ <text class="banner-icon">👑</text>
|
|
|
|
|
+ <view class="banner-text">
|
|
|
|
|
+ <text class="banner-title">{{ membershipText }}</text>
|
|
|
|
|
+ <text class="banner-subtitle">点击查看会员权益</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <text class="banner-arrow">›</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
<!-- 成长数据 -->
|
|
<!-- 成长数据 -->
|
|
|
<view class="stats-section">
|
|
<view class="stats-section">
|
|
|
<view class="section-title">成长数据</view>
|
|
<view class="section-title">成长数据</view>
|
|
@@ -244,6 +313,7 @@ export default {
|
|
|
pendingTasks: [],
|
|
pendingTasks: [],
|
|
|
taskCompletionRate: 0,
|
|
taskCompletionRate: 0,
|
|
|
habitCount: 0,
|
|
habitCount: 0,
|
|
|
|
|
+ membershipText: '开通家庭会员 畅享全部权益',
|
|
|
loading: true,
|
|
loading: true,
|
|
|
currentChildId: '',
|
|
currentChildId: '',
|
|
|
_initialLoadDone: false,
|
|
_initialLoadDone: false,
|
|
@@ -446,6 +516,12 @@ export default {
|
|
|
uni.navigateTo({ url: '/pages/stats/completion-rate?familyView=1' })
|
|
uni.navigateTo({ url: '/pages/stats/completion-rate?familyView=1' })
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ goToDomain(domain) {
|
|
|
|
|
+ uni.showToast({ title: '即将上线', icon: 'none' })
|
|
|
|
|
+ },
|
|
|
|
|
+ goToMembership() {
|
|
|
|
|
+ uni.showToast({ title: '即将上线', icon: 'none' })
|
|
|
|
|
+ },
|
|
|
goToChildDetail(child) {
|
|
goToChildDetail(child) {
|
|
|
uni.navigateTo({ url: '/pages/parent/child-detail?childId=' + child.id + '&childName=' + encodeURIComponent(child.nickname || '') })
|
|
uni.navigateTo({ url: '/pages/parent/child-detail?childId=' + child.id + '&childName=' + encodeURIComponent(child.nickname || '') })
|
|
|
},
|
|
},
|
|
@@ -1133,4 +1209,174 @@ export default {
|
|
|
color: #636E72;
|
|
color: #636E72;
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+/* 溪福俱乐部 - 会员Banner */
|
|
|
|
|
+.membership-banner {
|
|
|
|
|
+ margin: 20rpx 30rpx;
|
|
|
|
|
+ padding: 30rpx;
|
|
|
|
|
+ background: linear-gradient(135deg, #FFD700, #FFA500);
|
|
|
|
|
+ border-radius: 20rpx;
|
|
|
|
|
+ box-shadow: 0 4rpx 20rpx rgba(255, 165, 0, 0.3);
|
|
|
|
|
+}
|
|
|
|
|
+.banner-content {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+}
|
|
|
|
|
+.banner-icon {
|
|
|
|
|
+ font-size: 60rpx;
|
|
|
|
|
+ margin-right: 20rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.banner-text {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+}
|
|
|
|
|
+.banner-title {
|
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ color: #8B4513;
|
|
|
|
|
+ display: block;
|
|
|
|
|
+}
|
|
|
|
|
+.banner-subtitle {
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ color: #A0522D;
|
|
|
|
|
+ margin-top: 6rpx;
|
|
|
|
|
+ display: block;
|
|
|
|
|
+}
|
|
|
|
|
+.banner-arrow {
|
|
|
|
|
+ font-size: 40rpx;
|
|
|
|
|
+ color: #8B4513;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/* ===== 五行能量沙盘(溪艾福) ===== */
|
|
|
|
|
+.wuxing-sandbox {
|
|
|
|
|
+ margin: 20rpx 30rpx;
|
|
|
|
|
+ padding: 30rpx;
|
|
|
|
|
+ background: linear-gradient(135deg, #1a1a2e, #16213e);
|
|
|
|
|
+ border-radius: 24rpx;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+}
|
|
|
|
|
+.sandbox-header {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ margin-bottom: 30rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.sandbox-title {
|
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ color: #FFD700;
|
|
|
|
|
+}
|
|
|
|
|
+.sandbox-badge {
|
|
|
|
|
+ font-size: 22rpx;
|
|
|
|
|
+ color: #aaa;
|
|
|
|
|
+ background: rgba(255,255,255,0.1);
|
|
|
|
|
+ padding: 6rpx 16rpx;
|
|
|
|
|
+ border-radius: 20rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.sandbox-star {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ height: 400rpx;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+}
|
|
|
|
|
+.star-point {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ width: 120rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.star-point-top {
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
+}
|
|
|
|
|
+.star-point-left {
|
|
|
|
|
+ top: 120rpx;
|
|
|
|
|
+ left: 20rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.star-point-right {
|
|
|
|
|
+ top: 120rpx;
|
|
|
|
|
+ right: 20rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.star-point-bl {
|
|
|
|
|
+ bottom: 40rpx;
|
|
|
|
|
+ left: 60rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.star-point-br {
|
|
|
|
|
+ bottom: 40rpx;
|
|
|
|
|
+ right: 60rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.point-icon {
|
|
|
|
|
+ font-size: 50rpx;
|
|
|
|
|
+ margin-bottom: 6rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.point-label {
|
|
|
|
|
+ font-size: 22rpx;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+}
|
|
|
|
|
+.point-status {
|
|
|
|
|
+ font-size: 18rpx;
|
|
|
|
|
+ margin-top: 4rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.point-status.inactive {
|
|
|
|
|
+ color: #666;
|
|
|
|
|
+}
|
|
|
|
|
+.point-status.active {
|
|
|
|
|
+ color: #4CAF50;
|
|
|
|
|
+}
|
|
|
|
|
+.star-center {
|
|
|
|
|
+ width: 120rpx;
|
|
|
|
|
+ height: 120rpx;
|
|
|
|
|
+ background: radial-gradient(circle, rgba(255,215,0,0.2), rgba(255,215,0,0.05));
|
|
|
|
|
+ border: 2rpx solid rgba(255,215,0,0.3);
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+}
|
|
|
|
|
+.center-text {
|
|
|
|
|
+ font-size: 22rpx;
|
|
|
|
|
+ color: #FFD700;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+}
|
|
|
|
|
+.center-sub {
|
|
|
|
|
+ font-size: 18rpx;
|
|
|
|
|
+ color: #aaa;
|
|
|
|
|
+}
|
|
|
|
|
+.shenke-hint {
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ margin: 20rpx 0;
|
|
|
|
|
+}
|
|
|
|
|
+.hint-text {
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ color: #FFD700;
|
|
|
|
|
+ opacity: 0.8;
|
|
|
|
|
+}
|
|
|
|
|
+.dimension-bar {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 8rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.dim-item {
|
|
|
|
|
+ padding: 6rpx 16rpx;
|
|
|
|
|
+ border-radius: 20rpx;
|
|
|
|
|
+ font-size: 22rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.dim-item.inactive {
|
|
|
|
|
+ background: rgba(255,255,255,0.1);
|
|
|
|
|
+ color: #666;
|
|
|
|
|
+}
|
|
|
|
|
+.dim-item.active {
|
|
|
|
|
+ background: rgba(76,175,80,0.3);
|
|
|
|
|
+ color: #4CAF50;
|
|
|
|
|
+}
|
|
|
|
|
+.dim-arrow {
|
|
|
|
|
+ color: #444;
|
|
|
|
|
+ font-size: 20rpx;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|