From 869282c29fb3f867b4cae92fb7a5db34fe4182a5 Mon Sep 17 00:00:00 2001 From: yanghang Date: Fri, 11 Jul 2025 18:34:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=20=E5=8F=91=E5=B8=83=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=B0=83=E6=95=B4=E4=B8=BA=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/course-item/course-item.vue | 2 +- src/pages/course/components/talkingItem.vue | 36 +++++++++------------ 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/src/components/course-item/course-item.vue b/src/components/course-item/course-item.vue index b37f2105..d96ac18b 100644 --- a/src/components/course-item/course-item.vue +++ b/src/components/course-item/course-item.vue @@ -11,7 +11,7 @@ {{item.tagName}} - 发布:{{itemInfo.issuTm}} + 更新:{{itemInfo.mtTime}} 已学:{{itemInfo.accmStdyCnt}}人次 diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue index b80143c3..02f71b4f 100644 --- a/src/pages/course/components/talkingItem.vue +++ b/src/pages/course/components/talkingItem.vue @@ -32,11 +32,6 @@ - @@ -57,13 +52,12 @@ @click.stop="pauseVoice" > - - 继续学 - + 重新学 + - - 重新学 - + 继续学 + 继续 @@ -124,7 +119,7 @@ - {{voiceTime}}s + {{voiceTime}} {{ showContent }} @@ -391,11 +386,10 @@ const audioCacheObj = computed(() => storageStore.audioObj) } const initVoice = (readType = 'qns', item, isplay=false) => { if(unref(dataInfo).talkingVoice){ - itemVoice.value = unref(dataInfo).talkingVoice - talkVoiceObj.value.src = itemVoice.value + itemVoice.value = unref(dataInfo).talkingVoice + talkVoiceObj.value.src = itemVoice.value setTimeout(()=>{ - voiceTime.value = Math.ceil(talkVoiceObj.value.duration) || 0 + 's' - console.log(voiceTime.value) + voiceTime.value = ( Math.ceil(talkVoiceObj.value.duration) || 0 ) + 's' },100) } } From 59c2352e389f8925c441ac7c1ef2a5abecdfc10d Mon Sep 17 00:00:00 2001 From: yanghang Date: Fri, 11 Jul 2025 18:49:47 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E4=B8=BA=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 8f13c5af..02a05c56 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -136,7 +136,7 @@ {{item.crsName}} - 发布:{{item.issuTm.substr(0, 10)}} 丨已学:{{item.accmStdyCnt}} + 更新:{{(item.mtTime||'').substr(0, 10)}} 丨已学:{{item.accmStdyCnt}} 去学习 @@ -169,7 +169,7 @@ {{item.crsName}} - 发布:{{item.issuTm.substr(0, 10)}} 丨已学:{{item.accmStdyCnt}} + 更新:{{(item.mtTime||'').substr(0, 10)}} 丨已学:{{item.accmStdyCnt}} 去学习 @@ -201,7 +201,7 @@ {{item.crsName}} - 发布:{{item.issuTm.substr(0, 10)}} 丨已学:{{item.accmStdyCnt}} + 更新:{{(item.mtTime||'').substr(0, 10)}} 丨已学:{{item.accmStdyCnt}} 去学习