From c9eade7be03f40c4f70ba1589bf8e6f6f992998d Mon Sep 17 00:00:00 2001 From: yanghang Date: Tue, 22 Jul 2025 17:30:45 +0800 Subject: [PATCH 1/2] fix: bug --- src/pages/course/components/touchBtn.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 6a6a7243..8598c44f 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -99,8 +99,6 @@ const recordObjCom = ref({}) const IsAndEnv = getPhoneEnvBool('AND') const initRecord = () => { recordObjCom.value = uni.getRecorderManager() - // startRecord() - // stopRecord() unref(recordObjCom)?.onStop((res, duration)=>{ audioPath.value = res.tempFilePath if(!isOut.value){ @@ -144,6 +142,7 @@ const startRecord = () => { } const stopRecord = () => { + // setTimeout(() => { try{ if(unref(recordObjCom).stop){ unref(recordObjCom).stop() @@ -153,12 +152,13 @@ const stopRecord = () => { }catch{ closeModel() } + // }, 500) } const closeModel = (cb = () => {}) => { setTimeout(() => { showTalkingModel.value = false cb && cb() - },100) + }, 350) } // #endif //#ifndef APP-PLUS From 5da8459d9f95cbcebcdcf74938435600ea6662c9 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:42:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.vue | 41 +++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 43089de3..5628c0cf 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -14,7 +14,7 @@ 消息 - 30 + 30 @@ -32,7 +32,7 @@ 消息 - + 30 @@ -593,15 +593,24 @@ position: absolute; top: 2rpx; right: -4rpx; - padding: 1rpx 1rpx 1rpx 2rpx; + padding: 2rpx 3rpx 2rpx 3rpx; background-color: #ff1926; border-radius: 10rpx; - width: 22rpx; - height: 20rpx; - font-size: 10rpx; + // width: 22rpx; + // height: 20rpx; + // font-size: 10rpx; + // font-size: 30rpx; color: #ffffff; } + .message_num_font { + width: 22rpx; + height: 22rpx; + display: flex; + align-items: center; + justify-content: center; + font-size: 16rpx; + } } } @@ -643,15 +652,23 @@ position: absolute; top: 2rpx; right: -4rpx; - padding: 1rpx 1rpx 1rpx 2rpx; + padding: 2rpx 3rpx 2rpx 3rpx; background-color: #ff1926; - border-radius: 10rpx; - width: 22rpx; - height: 20rpx; - font-size: 10rpx; + border-radius: 20rpx; + // width: 22rpx; + // height: 20rpx; + // font-size: 10rpx; color: #ffffff; } + .message_num_font { + width: 22rpx; + height: 22rpx; + display: flex; + align-items: center; + justify-content: center; + font-size: 16rpx; + } } } @@ -717,7 +734,7 @@ display: flex; justify-content: space-around; z-index: 20; - + opacity: .9; .item { flex: 1; // background-color: red;