Bladeren bron

feat(health): 删除查看我的测评方案入口及相关跳转逻辑

- pages/health-main/index.vue: 移除测评方案入口卡片、goToAssessmentPlans 方法及对应 CSS 样式
- pages/health/report-confirm.vue: 删除报告确认后的 planId 跳转至 health-plan-summary 逻辑
- pages/health/report-detail.vue: 删除报告入库后的 planId 跳转至 health-plan-summary 逻辑
liaoxg 3 weken geleden
bovenliggende
commit
deb5d0a29c

+ 0 - 31
cfc-frontend/pages/health-main/index.vue

@@ -236,13 +236,6 @@
           <text class="empty-text">暂无报告和测评结果</text>
           <text class="empty-sub">上传报告或完成测评开启健康之旅</text>
         </view>
-        
-        <!-- 新增:查看测评方案入口 -->
-        <view class="plan-entry" @click="goToAssessmentPlans">
-          <text class="entry-icon">📋</text>
-          <text class="entry-text">查看我的测评方案</text>
-          <text class="entry-arrow">›</text>
-        </view>
       </view>
 
       <view class="section section-plan">
@@ -516,15 +509,6 @@ export default {
       }
       uni.navigateTo({ url: url })
     },
-    // 跳转到测评方案列表
-    goToAssessmentPlans: function() {
-      var familyId = this.familyId || uni.getStorageSync('familyId')
-      if (!familyId) {
-        uni.showToast({ title: '请先选择家庭', icon: 'none' })
-        return
-      }
-      uni.navigateTo({ url: '/pages/assessment-plan/list?familyId=' + familyId })
-    },
     _reportTypeLabel: function(type) {
       var map = { gut_flora: '肠道', physical_exam: '体检', tongue: '舌诊', blood: '血液' }
       return map[type] || '健康报告'
@@ -712,21 +696,6 @@ export default {
 .score-value { font-size: 36rpx; font-weight: bold; color: #F97316; }
 .score-unit { font-size: 22rpx; color: #999; margin-left: 4rpx; }
 
-/* ===== 测评方案入口 ===== */
-.plan-entry {
-  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
-  border-radius: 16rpx;
-  padding: 28rpx 30rpx;
-  margin-top: 24rpx;
-  display: flex;
-  flex-direction: row;
-  align-items: center;
-  justify-content: space-between;
-  box-shadow: 0 4rpx 16rpx rgba(59, 130, 246, 0.3);
-}
-.entry-icon { font-size: 40rpx; margin-right: 16rpx; }
-.entry-text { font-size: 28rpx; color: #fff; font-weight: bold; flex: 1; }
-.entry-arrow { font-size: 36rpx; color: #fff; }
 .quiz-btn { background: #F97316; color: #fff; font-size: 24rpx; border: none; border-radius: 20rpx; padding: 10rpx 30rpx; height: 56rpx; line-height: 36rpx; margin: 0; }
 .section-data-view { margin: 16rpx 24rpx; }
 .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12rpx; }

+ 1 - 7
cfc-frontend/pages/health/report-confirm.vue

@@ -822,13 +822,7 @@ export default {
         if (res.code === 200) {
           var data = res.data || {}
           var reportId = data.reportId || (data.report && data.report.id)
-          var planId = data.planId
-          if (planId && self.payload.type !== 'tongue') {
-            uni.showToast({ title: '方案已生成', icon: 'success' })
-            setTimeout(function() {
-              uni.redirectTo({ url: '/pages/health/health-plan-summary?planId=' + planId })
-            }, 500)
-          } else if (reportId) {
+           if (reportId) {
             uni.showToast({ title: '入库成功', icon: 'success' })
             setTimeout(function() {
               var reportType = data.reportType || ''

+ 2 - 8
cfc-frontend/pages/health/report-detail.vue

@@ -1013,14 +1013,8 @@ export default {
         self.confirming = false
         if (res.code === 200) {
           var data = res.data || {}
-          var reportId = data.reportId || (data.report && data.report.id)
-          var planId = data.planId
-          if (planId && self.payload.type !== 'tongue') {
-            setTimeout(function() {
-              uni.redirectTo({ url: '/pages/health/health-plan-summary?planId=' + planId })
-              uni.showToast({ title: '方案已生成', icon: 'success' })
-            }, 600)
-          } else if (reportId && self.payload.type !== 'tongue') {
+           var reportId = data.reportId || (data.report && data.report.id)
+           if (reportId && self.payload.type !== 'tongue') {
             setTimeout(function() {
               uni.redirectTo({ url: '/pages/health/report-detail?reportType=' + (self.payload.type || 'gut_flora') + '&reportId=' + reportId })
               uni.showToast({ title: '入库成功', icon: 'success' })