|
|
@@ -80,21 +80,7 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 上传报告入口 -->
|
|
|
- <view class="nutrition-report-card" @click="goToUploadReport">
|
|
|
- <view class="nutrition-report-left">
|
|
|
- <text class="nutrition-icon-large">📋</text>
|
|
|
- </view>
|
|
|
- <view class="nutrition-report-right">
|
|
|
- <text class="nutrition-title">上传健康报告</text>
|
|
|
- <text class="nutrition-desc">上传体检报告或肠道检测报告,解读分析,获取个性化营养方案</text>
|
|
|
- <view class="nutrition-report-tags">
|
|
|
- <text class="tag">体检报告</text>
|
|
|
- <text class="tag">肠道检测</text>
|
|
|
- <text class="tag">解读</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <text class="nutrition-arrow">›</text>
|
|
|
- </view>
|
|
|
+ <ReportUploadCard @click="goToUploadReport" />
|
|
|
|
|
|
</view>
|
|
|
|
|
|
@@ -116,10 +102,11 @@ import DimensionSubDims from '../../components/DimensionSubDims.vue'
|
|
|
import FloatingAvatar from '../../components/AIFloatingAvatar.vue'
|
|
|
import DimensionIntroCard from '../../components/DimensionIntroCard.vue'
|
|
|
import FamilyMemberStrip from '../../components/FamilyMemberStrip.vue'
|
|
|
+import ReportUploadCard from '../../components/report-upload-card.vue'
|
|
|
import { getVisibleSections, getEnergyOverview, getChildren, getFamilyEnergySandbox, getEnergySandbox, getFamilyMemberList, getDimensionOverview } from '../../utils/api.js'
|
|
|
|
|
|
export default {
|
|
|
- components: { TabTransition, PageBanner, FamilyEnergyBar, RadarChart, DimensionSubDims, FloatingAvatar, FamilyMemberStrip, DimensionIntroCard },
|
|
|
+ components: { TabTransition, PageBanner, FamilyEnergyBar, RadarChart, DimensionSubDims, FloatingAvatar, FamilyMemberStrip, DimensionIntroCard, ReportUploadCard },
|
|
|
data() {
|
|
|
return {
|
|
|
isLoggedIn: false,
|
|
|
@@ -652,65 +639,6 @@ export default {
|
|
|
.nutrition-section {
|
|
|
margin-top: 20rpx;
|
|
|
}
|
|
|
-.nutrition-report-card {
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- align-items: center;
|
|
|
- background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
|
|
|
- border-radius: 20rpx;
|
|
|
- padding: 28rpx 24rpx;
|
|
|
- margin-bottom: 20rpx;
|
|
|
- box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
|
|
|
-}
|
|
|
-.nutrition-report-left {
|
|
|
- width: 100rpx;
|
|
|
- height: 100rpx;
|
|
|
- background: rgba(255,255,255,0.7);
|
|
|
- border-radius: 20rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- margin-right: 20rpx;
|
|
|
- flex-shrink: 0;
|
|
|
-}
|
|
|
-.nutrition-icon-large {
|
|
|
- font-size: 52rpx;
|
|
|
-}
|
|
|
-.nutrition-report-right {
|
|
|
- flex: 1;
|
|
|
-}
|
|
|
-.nutrition-title {
|
|
|
- font-size: 30rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #2E7D32;
|
|
|
- display: block;
|
|
|
- margin-bottom: 6rpx;
|
|
|
-}
|
|
|
-.nutrition-desc {
|
|
|
- font-size: 22rpx;
|
|
|
- color: #558B2F;
|
|
|
- line-height: 1.5;
|
|
|
- display: block;
|
|
|
- margin-bottom: 10rpx;
|
|
|
-}
|
|
|
-.nutrition-report-tags {
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- gap: 10rpx;
|
|
|
-}
|
|
|
-.nutrition-report-tags .tag {
|
|
|
- font-size: 20rpx;
|
|
|
- color: #33691E;
|
|
|
- background: rgba(255,255,255,0.6);
|
|
|
- padding: 4rpx 14rpx;
|
|
|
- border-radius: 20rpx;
|
|
|
-}
|
|
|
-.nutrition-arrow {
|
|
|
- font-size: 40rpx;
|
|
|
- color: #A5D6A7;
|
|
|
- margin-left: 12rpx;
|
|
|
-}
|
|
|
-
|
|
|
.nutrition-links {
|
|
|
margin-bottom: 20rpx;
|
|
|
}
|