瀏覽代碼

chore: auto bump version and changelog [skip ci]

iwt 4 周之前
父節點
當前提交
d6b3674706

+ 32 - 1
cfc-frontend/pages/index-home/index.vue

@@ -397,6 +397,7 @@ export default {
       splashOverlayFading: false,
       _splashReady: false,
       _watchPageReadyDone: false,
+      pendingSurveys: [],
 
       typeList: [
         { label: '全部', value: '' },
@@ -530,6 +531,8 @@ export default {
 
     // 始终执行初始化,确保登录态变更后及时切换视图
     this._doInit()
+    // 定期调研待办角标(内部自检登录态,未登录静默清空)
+    this._loadSurveyBadge()
   },
   methods: {
     _checkSplashReady() {
@@ -886,8 +889,35 @@ export default {
       var id = this.currentChildId || ''
       uni.navigateTo({ url: '/pages/health/report-upload?memberId=' + id + '&from=index' })
     },
+    // 定期调研待办角标(内部自检登录态,未登录静默清空)
+    _loadSurveyBadge: function() {
+      var self = this
+      if (!this.isLoggedIn()) { self.pendingSurveys = []; return }
+      getSurveyStatus({}).then(function(res) {
+        var list = (res && res.code === 200 && res.data && res.data instanceof Array) ? res.data : []
+        var pending = []
+        for (var i = 0; i < list.length; i++) {
+          if (list[i] && list[i].status === 'pending') pending.push(list[i])
+        }
+        self.pendingSurveys = pending
+      }).catch(function() { self.pendingSurveys = [] })
+    },
     goSelfTest: function() {
-      uni.navigateTo({ url: '/pages/health/survey-questionnaire?dim=all' })
+      var firstPending = null
+      for (var i = 0; i < this.pendingSurveys.length; i++) {
+        var s = this.pendingSurveys[i]
+        if (s && s.templateId) { firstPending = s; break }
+      }
+      if (firstPending) {
+        var url = '/pages/health/survey-questionnaire?templateId=' + firstPending.templateId +
+          '&templateTitle=' + encodeURIComponent(firstPending.title || '定期调研') +
+          '&templateDimension=' + encodeURIComponent(firstPending.dimension || '') +
+          '&periodStart=' + (firstPending.periodStart || '') +
+          '&periodEnd=' + (firstPending.periodEnd || '')
+        uni.navigateTo({ url: url })
+      } else {
+        uni.navigateTo({ url: '/pages/health/survey-questionnaire?dim=all' })
+      }
     },
     _doInit(options) {
       options = options || {}
@@ -1808,5 +1838,6 @@ export default {
 .challenge-add-btn::after {
   border: none;
 }
+.self-test-badge { display: inline-block; align-self: flex-start; margin-top: 8rpx; font-size: 20rpx; color: #F97316; background: rgba(249,115,22,0.1); padding: 4rpx 14rpx; border-radius: 999rpx; }
 
 </style>

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-1e9da2cfb9d5095aa8c44fcf4233cf79d216b2d7
+9a04b8dbb7ac61b17c1e02a0703c154f05f3f708

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.1194",
+  "version": "1.0.1195",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.1194",
+      "version": "1.0.1195",
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",

+ 1 - 1
cfc-web/package.json

@@ -1,6 +1,6 @@
 {
   "name": "cfc-web",
-  "version": "1.0.1195",
+  "version": "1.0.1196",
   "private": true,
   "scripts": {
     "dev": "vue-cli-service serve",

+ 17 - 0
cfc-web/public/CHANGELOG-v1.0.md

@@ -4,6 +4,23 @@
 
 ---
 
+## v1.0.1196 (2026-08-22)
+
+### 文档
+- 更新健康启航计划——CF值1CF=0.01元,全勤19900CF抵199元
+
+### Bug 修复
+- use beam_size=1 + vad_filter for faster STT inference
+- delay first kb_sync by 120s, increase gunicorn timeout to 600s
+
+### 新功能
+- add voice input button to AI chat page
+- add AiGateway.transcribe + /api/ai/transcribe endpoint
+- integrate STT into diet/exercise check-in pages
+- add sttTranscribe API utility for speech-to-text
+- add STT endpoint with faster-whisper base model
+
+
 ## v1.0.1195 (2026-08-22)
 
 ### 新功能

+ 18 - 1
cfc-web/public/CHANGELOG.md

@@ -1,6 +1,6 @@
 # 更新日志
 
-> 当前版本: v1.0.1195
+> 当前版本: v1.0.1196
 
 ## 历史版本
 
@@ -8,6 +8,23 @@
 
 ---
 
+## v1.0.1196 (2026-08-22)
+
+### 文档
+- 更新健康启航计划——CF值1CF=0.01元,全勤19900CF抵199元
+
+### Bug 修复
+- use beam_size=1 + vad_filter for faster STT inference
+- delay first kb_sync by 120s, increase gunicorn timeout to 600s
+
+### 新功能
+- add voice input button to AI chat page
+- add AiGateway.transcribe + /api/ai/transcribe endpoint
+- integrate STT into diet/exercise check-in pages
+- add sttTranscribe API utility for speech-to-text
+- add STT endpoint with faster-whisper base model
+
+
 ## v1.0.1195 (2026-08-22)
 
 ### 新功能