问诊表

This commit is contained in:
zoujiandong 2023-12-15 09:41:23 +08:00
parent 43fff7a15f
commit 3db456d820
2 changed files with 9 additions and 3 deletions

View File

@ -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最大值 60000010 分钟)
duration: 61000, // 录音的时长,单位 ms最大值 60000010 分钟)
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({

View File

@ -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) {