From 3db456d820280f26f2886255794977744d7b050e Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Fri, 15 Dec 2023 09:41:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E8=AF=8A=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/TUIChat/components/MessageInput/index.js | 6 +++--- pages/inquiryForm/inquiryForm.js | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/TUIService/TUIKit/components/TUIChat/components/MessageInput/index.js b/TUIService/TUIKit/components/TUIChat/components/MessageInput/index.js index 5b67756..335e7e5 100644 --- a/TUIService/TUIKit/components/TUIChat/components/MessageInput/index.js +++ b/TUIService/TUIKit/components/TUIChat/components/MessageInput/index.js @@ -177,7 +177,7 @@ Component({ }); } else { // res.tempFilePath 存储录音文件的临时路径 - if(res.duration >= 59000){ + if(res.duration >= 60000){ wx.showToast({ title: '录音时间不能超过60s', duration:2000, @@ -328,14 +328,14 @@ Component({ ext3: wx.$chat_SDKAppID, }); THIS.recorderManager.start({ - duration: 60000, // 录音的时长,单位 ms,最大值 600000(10 分钟) + duration: 61000, // 录音的时长,单位 ms,最大值 600000(10 分钟) sampleRate: 44100, // 采样率 numberOfChannels: 1, // 录音通道数 encodeBitRate: 192000, // 编码码率 format: 'aac', // 音频格式,选择此格式创建的音频消息,可以在即时通信 IM 全平台(Android、iOS、微信小程序和Web)互通 }); THIS.timer=setInterval(()=>{ - if(THIS.data.recordtime>59){ + if(THIS.data.recordtime>60){ clearInterval(THIS.timer) }; THIS.setData({ diff --git a/pages/inquiryForm/inquiryForm.js b/pages/inquiryForm/inquiryForm.js index ad57ca8..82b3738 100644 --- a/pages/inquiryForm/inquiryForm.js +++ b/pages/inquiryForm/inquiryForm.js @@ -351,6 +351,12 @@ for (let i = 0; i < list2.length; i++) { hideFamilysick:false }) } + if(key=="is_take_medicine"){ + this.setData({ + "personInfo.drugs_name":'', + hideDrug:false + }) + } } }, handelFocus(e) {