|
|
@@ -37,48 +37,21 @@
|
|
|
<text class="card-arrow">›</text>
|
|
|
</view>
|
|
|
|
|
|
+ <!-- 身克富杠杆警告 -->
|
|
|
+ <body-wealth-alert
|
|
|
+ :status="bodyWealthStatus"
|
|
|
+ :message="bodyWealthMessage"
|
|
|
+ :showTip="true" />
|
|
|
+
|
|
|
<!-- 财富子维度卡片 -->
|
|
|
- <view class="section">
|
|
|
- <view class="section-header">
|
|
|
- <text class="section-title">💎 财富子维度</text>
|
|
|
- </view>
|
|
|
- <!-- 家长版 -->
|
|
|
- <view class="sub-dim-grid" v-if="role === 'parent'">
|
|
|
- <view class="sub-dim-card" @click="goToIncome">
|
|
|
- <text class="sub-dim-score">{{ wealthIncome || '-' }}</text>
|
|
|
- <text class="sub-dim-label">金钱收入</text>
|
|
|
- <text class="sub-dim-desc">累计佣金</text>
|
|
|
- </view>
|
|
|
- <view class="sub-dim-card" @click="goToAchievements">
|
|
|
- <text class="sub-dim-score">{{ wealthAchievement || '-' }}</text>
|
|
|
- <text class="sub-dim-label">个人成就</text>
|
|
|
- <text class="sub-dim-desc">认证成就</text>
|
|
|
- </view>
|
|
|
- <view class="sub-dim-card" @click="goToNetwork">
|
|
|
- <text class="sub-dim-score">{{ wealthNetwork || '-' }}</text>
|
|
|
- <text class="sub-dim-label">资源网络</text>
|
|
|
- <text class="sub-dim-desc">推荐关系</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 孩子版 -->
|
|
|
- <view class="sub-dim-grid" v-else>
|
|
|
- <view class="sub-dim-card" @click="childSubDimClick('education')">
|
|
|
- <text class="sub-dim-score">{{ wealthEducation || '-' }}</text>
|
|
|
- <text class="sub-dim-label">学业成绩</text>
|
|
|
- <text class="sub-dim-desc">测评综合</text>
|
|
|
- </view>
|
|
|
- <view class="sub-dim-card" @click="childSubDimClick('social')">
|
|
|
- <text class="sub-dim-score">{{ wealthSocial || '-' }}</text>
|
|
|
- <text class="sub-dim-label">社交筹码</text>
|
|
|
- <text class="sub-dim-desc">活动参与</text>
|
|
|
- </view>
|
|
|
- <view class="sub-dim-card" @click="childSubDimClick('points')">
|
|
|
- <text class="sub-dim-score">{{ wealthPoints || '-' }}</text>
|
|
|
- <text class="sub-dim-label">规则博弈</text>
|
|
|
- <text class="sub-dim-desc">积分效率</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <wealth-sub-scores
|
|
|
+ :role="role"
|
|
|
+ :income="wealthIncome"
|
|
|
+ :achievement="wealthAchievement"
|
|
|
+ :network="wealthNetwork"
|
|
|
+ :education="wealthEducation"
|
|
|
+ :social="wealthSocial"
|
|
|
+ :points="wealthPoints" />
|
|
|
|
|
|
<!-- 心的子维度(仅孩子) -->
|
|
|
<view class="section" v-if="role !== 'parent'">
|
|
|
@@ -188,6 +161,8 @@
|
|
|
import TabTransition from '../../components/tab-transition.vue'
|
|
|
import PageBanner from '../../components/PageBanner.vue'
|
|
|
import DimensionProductList from '../../components/DimensionProductList.vue'
|
|
|
+import WealthSubScores from '../../components/WealthSubScores.vue'
|
|
|
+import BodyWealthAlert from '../../components/BodyWealthAlert.vue'
|
|
|
import {
|
|
|
verifyPassword,
|
|
|
getChildren,
|
|
|
@@ -198,7 +173,7 @@ import {
|
|
|
} from '../../utils/api.js'
|
|
|
|
|
|
export default {
|
|
|
- components: { TabTransition, PageBanner, DimensionProductList },
|
|
|
+ components: { TabTransition, PageBanner, DimensionProductList, WealthSubScores, BodyWealthAlert },
|
|
|
data() {
|
|
|
return {
|
|
|
showTabTransition: true,
|
|
|
@@ -224,6 +199,9 @@ export default {
|
|
|
wealthEducation: null,
|
|
|
wealthSocial: null,
|
|
|
wealthPoints: null,
|
|
|
+ // 身克富杠杆
|
|
|
+ bodyWealthStatus: 'normal',
|
|
|
+ bodyWealthMessage: '',
|
|
|
// 财富数据
|
|
|
wealthData: {
|
|
|
totalEarnings: 0,
|
|
|
@@ -320,6 +298,9 @@ export default {
|
|
|
this.heartUnderstanding = d.heartUnderstanding
|
|
|
this.heartLegacy = d.heartLegacy
|
|
|
}
|
|
|
+ // 身克富杠杆状态
|
|
|
+ this.bodyWealthStatus = d.bodyWealthStatus || 'normal'
|
|
|
+ this.bodyWealthMessage = d.bodyWealthMessage || ''
|
|
|
}
|
|
|
} catch (e) {
|
|
|
console.error('获取富维度详情失败', e)
|