Ver Fonte

feat(frontend): 报告列表与健康首页点击 gut_flora 报告直达编辑模式

report-list.vue 与 health-main/index.vue 的跳转对肠道菌群报告
拼接 mode=edit 参数,跳过查看模式过渡页。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
liaoxg há 1 mês atrás
pai
commit
430eb25b4d

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

@@ -501,6 +501,10 @@ export default {
       if (!report || !report.id) return
       var type = report.reportType || 'gut_flora'
       var url = '/pages/health/report-detail?reportType=' + type + '&reportId=' + report.id
+      // 肠道菌群报告:从列表点击直接进入编辑模式,跳过查看过渡页
+      if (type === 'gut_flora') {
+        url += '&mode=edit'
+      }
       uni.navigateTo({ url: url })
     },
     _reportTypeLabel: function(type) {

+ 4 - 0
cfc-frontend/pages/health/report-list.vue

@@ -78,6 +78,10 @@ export default {
 	  }
 	  var url = detailPages[reportType] || '/pages/body/health-report'
 	  var sep = url.indexOf('?') >= 0 ? '&' : '?'
+	  // 肠道菌群报告:从列表点击直接进入编辑模式,跳过查看过渡页
+	  if (reportType === 'gut_flora') {
+	    url += '&mode=edit'
+	  }
 	  uni.navigateTo({ url: url + sep + 'reportId=' + reportId })
 	},
     goToUpload() {