|
|
@@ -21,7 +21,7 @@ const menuItems = [
|
|
|
]
|
|
|
const menu2Items = [
|
|
|
{ id: '1', name: '观察', icon: 'https://oss.xiaoxiongcode.com/static/home/观察.png' },
|
|
|
- { id: '2', name: '学习', icon: 'https://oss.xiaoxiongcode.com/static/home/假设.png' },
|
|
|
+ { id: '2', name: '思考', icon: 'https://oss.xiaoxiongcode.com/static/home/假设.png' },
|
|
|
{ id: '3', name: '假设', icon: 'https://oss.xiaoxiongcode.com/static/home/卡通扁平化功能图标设计.png' },
|
|
|
{ id: '4', name: '交互', icon: 'https://oss.xiaoxiongcode.com/static/home/总结.png' },
|
|
|
{ id: '5', name: '总结', icon: 'https://oss.xiaoxiongcode.com/static/home/拓展.png' },
|
|
|
@@ -39,8 +39,7 @@ function initOnlibeRecord() {
|
|
|
innerAudioContext.value = uni.createInnerAudioContext();
|
|
|
innerAudioContext.value.autoplay = true;
|
|
|
recorderManager.value?.onStop(function (res) {
|
|
|
- console.log('recorder stop' + JSON.stringify(res));
|
|
|
- if (res.duration < 5000) {
|
|
|
+ if (res.duration < 3000) {
|
|
|
uni.showToast({
|
|
|
title: '录音时间过短',
|
|
|
icon: 'none'
|
|
|
@@ -170,18 +169,28 @@ function handleControlsToggle(e) {
|
|
|
}
|
|
|
|
|
|
watchEffect(() => {
|
|
|
+ isLoading.value = true
|
|
|
+ setTimeout(() => {
|
|
|
+ isLoading.value = false
|
|
|
+ }, 2000)
|
|
|
if (progress.value === 1) {
|
|
|
switch (progress2.value) {
|
|
|
case 1:
|
|
|
- data.value.videoSrc = course.value?.detailItem?.observeVideoPath
|
|
|
+ setTimeout(() => {
|
|
|
+ isLoading.value = false
|
|
|
+ data.value.videoSrc = course.value?.detailItem?.observeVideoPath
|
|
|
+ }, 2000)
|
|
|
break
|
|
|
case 2:
|
|
|
- data.value.videoSrc = course.value?.detailItem?.questionVideoPath
|
|
|
+ setTimeout(() => {
|
|
|
+ isLoading.value = false
|
|
|
+ data.value.videoSrc = course.value?.detailItem?.questionVideoPath
|
|
|
+ }, 2000)
|
|
|
break
|
|
|
case 3:
|
|
|
setTimeout(() => {
|
|
|
playVoice(course.value?.detailItem?.assumeAnimationPath)
|
|
|
- }, 2000)
|
|
|
+ }, 1000)
|
|
|
// data.value.webviewSrc = course.value?.detailItem?.assumeAnimationPath || data.value.webviewSrc
|
|
|
// router.push({
|
|
|
// path: "/pages/catalog/web-view",
|
|
|
@@ -203,10 +212,16 @@ watchEffect(() => {
|
|
|
});
|
|
|
break
|
|
|
case 5:
|
|
|
- data.value.videoSrc = course.value?.detailItem?.testVideoPath
|
|
|
+ setTimeout(() => {
|
|
|
+ isLoading.value = false
|
|
|
+ data.value.videoSrc = course.value?.detailItem?.testVideoPath
|
|
|
+ }, 2000)
|
|
|
break
|
|
|
case 6:
|
|
|
- data.value.videoSrc = course.value?.detailItem?.expandVideoPath
|
|
|
+ setTimeout(() => {
|
|
|
+ isLoading.value = false
|
|
|
+ data.value.videoSrc = course.value?.detailItem?.expandVideoPath
|
|
|
+ }, 2000)
|
|
|
break
|
|
|
}
|
|
|
} else if (progress.value === 2) {
|