修改课程详情的两个按钮判断
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
width: 100%;
|
||||
height: var(--status-bar-height);
|
||||
}
|
||||
|
||||
|
||||
.nav-bar-div {
|
||||
z-index: 1900;
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user