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() { switchAudio() {
wx.hideKeyboard();
this.setData({ this.setData({
isAudio: !this.data.isAudio, isAudio: !this.data.isAudio,
isEmoji: false, isEmoji: false,
text: '按住说话', text: '按住说话',
focus: false, focus: false,
message:'',
displayFlag:'',
sendMessageBtn:false
}); });
}, },
openRecord(e,callback){ openRecord(e,callback){
@ -781,6 +785,12 @@ Component({
}, },
sendTextMessage(msg, flag) { sendTextMessage(msg, flag) {
if(this.data.isAudio){
this.setData({
isAudio:false
});
return false
}
if(!this.data.message){ if(!this.data.message){
wx.showToast({ wx.showToast({
title: '输入内容不能为空', 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"> <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> <text>{{text}}</text>
</view> </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"> <view class="TUI-sendMessage-btn">
<image class="TUI-icon" bindtap="handleEmoji" src="../../../../static/images/emoji.png" /> <image class="TUI-icon" bindtap="handleEmoji" src="../../../../static/images/emoji.png" />
</view> </view>

View File

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

View File

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

View File

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