diff --git a/src/components/examination/touchBtn.vue b/src/components/examination/touchBtn.vue index ef315900..653c670b 100644 --- a/src/components/examination/touchBtn.vue +++ b/src/components/examination/touchBtn.vue @@ -12,8 +12,6 @@ > 按住说话 - - { + const endTime = Date.now(); + const recordDuration = (endTime - startTime) / 1000; + console.log('当前录音时间1', recordDuration); + }) + }, 1000); }; // 结束录音 const stopRecord = () => { if(props.isDisabled) return; - - console.log('结束录音'); - + console.log('结束录音嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻'); if (startTimer.value) { clearTimeout(startTimer.value); startTimer.value = null; @@ -193,7 +196,9 @@ if (recordingStatus.value !== 'preparing') { stopRecord(); } + startTime = Date.now(); + recordingStatus.value = 'in_recording'; }); // #endif diff --git a/src/components/nav-bar/nav-bar.vue b/src/components/nav-bar/nav-bar.vue index dd29ac32..1896bdb9 100644 --- a/src/components/nav-bar/nav-bar.vue +++ b/src/components/nav-bar/nav-bar.vue @@ -33,7 +33,7 @@ width: 100%; height: var(--status-bar-height); } - + .nav-bar-div { z-index: 1900; width: 100%; diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index 08445323..52af9596 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -5,21 +5,28 @@ - + AI学习 - - + + - + 筛选 - + @@ -27,8 +34,7 @@ {{item.label}} - + {{itemT.label}} @@ -40,41 +46,70 @@ - - + + - + {{item.label}} - + {{item.label}} - - + + {{item.label}} - - + + - {{itemT.label}} + {{itemT.label}} - + @@ -85,58 +120,42 @@