From e093df6f25e8c2c3b536516eefe2a0ce7c190080 Mon Sep 17 00:00:00 2001 From: yanghang Date: Tue, 22 Jul 2025 16:31:59 +0800 Subject: [PATCH 1/3] fix: bug --- src/pages/course/components/touchBtn.vue | 12 +++++++----- src/pages/index/dialog.vue | 6 +++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 46cdd72a..4d4f6c50 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -106,11 +106,13 @@ const initRecord = () => { showTalkingModel.value = false if(!isOut.value){ if(startFlag.value !== 2){ - common.msg('说话时间太短,没有听清!') showTalkingModel.value = false - return + nextTick(() => { + common.msg('说话时间太短,没有听清!') + }) + }else{ + emit('uploadVoice', audioPath.value) } - emit('uploadVoice', audioPath.value) } }) unref(recordObjCom).onStart(() => { @@ -133,8 +135,8 @@ const startRecord = () => { const stopRecord = () => { if(unref(recordObjCom).stop){ try{ - unref(recordObjCom)?.stop() - }catch{ + unref(recordObjCom).stop() + }finally{ showTalkingModel.value = false } }else{ diff --git a/src/pages/index/dialog.vue b/src/pages/index/dialog.vue index 72090774..db22ddd1 100644 --- a/src/pages/index/dialog.vue +++ b/src/pages/index/dialog.vue @@ -522,8 +522,8 @@ position: absolute; overflow: hidden; left: 0; - top: 1%; - height: 102%; + top: 0%; + height: 100%; width: 100%; padding: 0; box-sizing: border-box; @@ -716,7 +716,7 @@ } .talking-list { - height: calc(100% - 834rpx); + height: calc(100% - 832rpx); padding: 12rpx 24rpx; box-sizing: border-box; From 397bbb2ed50ed3e440af4dba27754d2515b87600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=B9=E6=9E=9C=E7=94=B5=E8=84=91?= Date: Tue, 22 Jul 2025 17:10:25 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=8C=89=E4=BD=8F=E8=AF=B4=E8=AF=9D?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/components/touchBtn.vue | 37 ++++++++++++++----- src/pages/courseDetail/components/comment.vue | 2 +- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 4d4f6c50..6a6a7243 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -103,16 +103,27 @@ const initRecord = () => { // stopRecord() unref(recordObjCom)?.onStop((res, duration)=>{ audioPath.value = res.tempFilePath - showTalkingModel.value = false if(!isOut.value){ if(startFlag.value !== 2){ - showTalkingModel.value = false - nextTick(() => { - common.msg('说话时间太短,没有听清!') + // setTimeout(() => { + // showTalkingModel.value = false + // nextTick(() => { + // // showTalkingModel.value = false + // common.msg('说话时间太短,没有听清!') + // }) + // },100) + closeModel(()=>{ + nextTick(() => { + // showTalkingModel.value = false + common.msg('说话时间太短,没有听清!') + }) }) }else{ + closeModel() emit('uploadVoice', audioPath.value) } + }else{ + closeModel() } }) unref(recordObjCom).onStart(() => { @@ -133,15 +144,21 @@ const startRecord = () => { } const stopRecord = () => { - if(unref(recordObjCom).stop){ try{ - unref(recordObjCom).stop() - }finally{ - showTalkingModel.value = false + if(unref(recordObjCom).stop){ + unref(recordObjCom).stop() + }else{ + closeModel() + } + }catch{ + closeModel() } - }else{ +} +const closeModel = (cb = () => {}) => { + setTimeout(() => { showTalkingModel.value = false - } + cb && cb() + },100) } // #endif //#ifndef APP-PLUS diff --git a/src/pages/courseDetail/components/comment.vue b/src/pages/courseDetail/components/comment.vue index 1ba652de..ec11be8a 100644 --- a/src/pages/courseDetail/components/comment.vue +++ b/src/pages/courseDetail/components/comment.vue @@ -75,7 +75,7 @@ @click="common.navigateTo('/pages/courseDetail/submit?crsNum='+props.crsNum+'&imgId='+props.imgId)">发布评价 - + From 775293da3d5e3c57f7e6c993af3c4ab48af28f83 Mon Sep 17 00:00:00 2001 From: yanghang Date: Tue, 22 Jul 2025 17:11:09 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=89=A9=E5=A4=A7=E7=82=B9=E5=87=BB=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/study.vue | 7 +++++-- src/pages/courseDetail/index.vue | 9 ++++++--- src/pages/courseDetail/submit.vue | 5 +++-- src/pages/me/index.vue | 2 ++ src/pages/search/search.vue | 7 ++++--- 5 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index e28d2642..07d95aa8 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -953,6 +953,7 @@ const chooseRateNow = (item) => { display: flex; flex-direction: column; .body-title{ + height: 150rpx; text-align: center; font-size: 33rpx; @@ -965,9 +966,11 @@ const chooseRateNow = (item) => { // margin-bottom: 23rpx; .arrow-icon{ position: absolute; - left:36rpx; - top:80rpx; + left:21rpx; + top:65rpx; color: #000; + padding: 15rpx; + // background-color: red; } } .study-num{ diff --git a/src/pages/courseDetail/index.vue b/src/pages/courseDetail/index.vue index f235a184..708c55c8 100644 --- a/src/pages/courseDetail/index.vue +++ b/src/pages/courseDetail/index.vue @@ -148,9 +148,12 @@ .back_div { margin-right: 10rpx; position: fixed; - left: 46rpx; - top: 64rpx; - + left: 25rpx; + top: 45rpx; + // background-color: red; + // width: 60rpx; + // height: 60rpx; + padding: 20rpx; .back-icon { position: relative; width: 40rpx; diff --git a/src/pages/courseDetail/submit.vue b/src/pages/courseDetail/submit.vue index 74acac21..d65eeb6f 100644 --- a/src/pages/courseDetail/submit.vue +++ b/src/pages/courseDetail/submit.vue @@ -251,8 +251,9 @@ align-items: center; .back_div { - margin-right: 10rpx; - + // margin-right: 10rpx; + padding: 15rpx; + // background-color: red; .back-icon { position: relative; width: 40rpx; diff --git a/src/pages/me/index.vue b/src/pages/me/index.vue index 9a005ea2..ca39711f 100644 --- a/src/pages/me/index.vue +++ b/src/pages/me/index.vue @@ -59,6 +59,7 @@ + @@ -77,6 +78,7 @@ 我的报告 + diff --git a/src/pages/search/search.vue b/src/pages/search/search.vue index fd34b95f..80c3939f 100644 --- a/src/pages/search/search.vue +++ b/src/pages/search/search.vue @@ -62,14 +62,15 @@ } .fixed_search_div { - padding: calc(10rpx + var(--status-bar-height)) 15rpx 24rpx 30rpx; + padding: calc(10rpx + var(--status-bar-height)) 15rpx 24rpx 10rpx; background: linear-gradient(90deg, #F1F7FF 0%, #D8EDFF 50%, #C3E6FF 100%); display: flex; align-items: center; .back_div { - margin-right: 10rpx; - + // margin-right: 10rpx; + padding: 10rpx 10rpx 10rpx 20rpx; + // background-color: red; .back-icon { position: relative; width: 40rpx;