This commit is contained in:
zoujiandong 2023-12-15 09:22:34 +08:00
parent dd892964c9
commit 43fff7a15f
5 changed files with 34 additions and 9 deletions

View File

@ -268,11 +268,15 @@ Component({
// 打开录音开关
switchAudio() {
wx.hideKeyboard();
this.setData({
isAudio: !this.data.isAudio,
isEmoji: false,
text: '按住说话',
focus: false,
message:'',
displayFlag:'',
sendMessageBtn:false
});
},
openRecord(e,callback){
@ -781,6 +785,12 @@ Component({
},
sendTextMessage(msg, flag) {
if(this.data.isAudio){
this.setData({
isAudio:false
});
return false
}
if(!this.data.message){
wx.showToast({
title: '输入内容不能为空',

View File

@ -23,7 +23,7 @@
<view wx:if="{{isAudio}}" class="TUI-message-input-main audio-main" bind:longpress="handleLongPress" bind:touchmove="handleTouchMove" bind:touchend="handleTouchEnd" style="display: flex; justify-content: center; font-size: 32rpx; font-family: PingFangSC-Regular; height: 30px">
<text>{{text}}</text>
</view>
<view class="TUI-message-input-functions" hover-class="none" wx:if="{{!isAudio || isEmoji}}">
<view class="TUI-message-input-functions" hover-class="none" >
<view class="TUI-sendMessage-btn">
<image class="TUI-icon" bindtap="handleEmoji" src="../../../../static/images/emoji.png" />
</view>

View File

@ -1,24 +1,25 @@
import {request} from '../utils/request.js'
function isExist(data){ //检测家庭成员是否存在病情记录
return request('/patient/pathography/exist','GET',data,false)
return request('/pathography/exist','GET',data,false)
};
function pathographyList(data){ //获取家庭成员病情记录列表
return request('/patient/pathography','GET',data)
return request('/pathography','GET',data)
};
function pathographyDetail(id){ //获取家庭成员病情记录列表
return request('/patient/pathography/'+id,'GET')
return request('/pathography/'+id,'GET')
};
function pathographyGroup(){ //获取家庭成员病情记录分组
return request('/patient/pathography/group','GET')
return request('/pathography/group','GET')
};
function pathographyDelete(id){ // 删除家庭成员病情记录
return request('/patient/pathography/'+id,'DELETE')
return request('/pathography/'+id,'DELETE')
};
function sendFields(data){ // 删除家庭成员病情记录
return request('/case/fields/patient','POST',data,true)
};
module.exports={
pathographyDelete,
pathographyGroup,
sendFields,
isExist,

View File

@ -300,9 +300,11 @@ for (let i = 0; i < list2.length; i++) {
},
openMaritalPicker() {
wx.hideKeyboard();
this.setData({
showMarital: true
})
if(showBtn){
this.setData({
showMarital: true
})
}
},
closeMaritalPicker() {
this.setData({
@ -379,9 +381,12 @@ for (let i = 0; i < list2.length; i++) {
},
showNation() {
wx.hideKeyboard();
if(showBtn){
this.setData({
showNation: true
})
}
},
onCancelNation() {
@ -401,9 +406,12 @@ for (let i = 0; i < list2.length; i++) {
},
showJob() {
wx.hideKeyboard();
if(showBtn){
this.setData({
showJob: true
})
}
},
onCancelJob() {
this.setData({

View File

@ -10,6 +10,7 @@
}
.questionbox{
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
margin-top: 172rpx;
flex:1;
}
@ -162,3 +163,8 @@ color: #FFFFFF;
border-radius: 8rpx;
margin:40rpx 32rpx;
}
.van-radio__icon--disabled.van-radio__icon--checked{
color:#3cc7c0!important;
background-color: #fff;
border-color:#3cc7c0 ;
}