修改课程详情的两个按钮判断

This commit is contained in:
田岩
2025-09-01 14:11:15 +08:00
parent 4eebd75345
commit 4789c1d563
4 changed files with 19 additions and 14 deletions
+12 -7
View File
@@ -12,8 +12,6 @@
>
按住说话
</uv-button>
<uv-input
v-if="keyboardIsShow"
class="input-box"
@@ -146,15 +144,20 @@
console.log('延迟开始');
recordingStatus.value = 'preparing';
popupRef.value.open();
recorderManager.start();
}, 80);
recorderManager.start({duration:6000});
startTime = Date.now();
setInterval(() => {
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
+1 -1
View File
@@ -33,7 +33,7 @@
width: 100%;
height: var(--status-bar-height);
}
.nav-bar-div {
z-index: 1900;
width: 100%;