患者12.12

This commit is contained in:
zoujiandong 2023-12-12 10:59:15 +08:00
parent fcd9d6ccad
commit 2eefc1929f
3 changed files with 10 additions and 9 deletions

View File

@ -175,6 +175,7 @@ Component({
}); });
} else { } else {
// res.tempFilePath 存储录音文件的临时路径 // res.tempFilePath 存储录音文件的临时路径
this.sendCallback();
const message = wx.$TUIKit.createAudioMessage({ const message = wx.$TUIKit.createAudioMessage({
to: this.getToAccount(), to: this.getToAccount(),
conversationType: this.data.conversation.type, conversationType: this.data.conversation.type,
@ -189,7 +190,7 @@ Component({
is_system:0 is_system:0
}) })
}); });
//this.sendCallback();
this.$sendTIMMessage(message); this.$sendTIMMessage(message);
} }
} }
@ -388,7 +389,7 @@ Component({
sourceType: [type], sourceType: [type],
mediaType: [mediaType], mediaType: [mediaType],
success: (res) => { success: (res) => {
//this.sendCallback(); this.sendCallback();
const mediaInfoList = res.tempFiles; const mediaInfoList = res.tempFiles;
mediaInfoList.forEach((mediaInfo) => { mediaInfoList.forEach((mediaInfo) => {
fileList.push({ type: res.type, tempFiles: [{ tempFilePath: mediaInfo.tempFilePath }] }); fileList.push({ type: res.type, tempFiles: [{ tempFilePath: mediaInfo.tempFilePath }] });
@ -742,7 +743,7 @@ Component({
const to =this.getToAccount(); const to =this.getToAccount();
const text = flag ? msg : this.data.message; const text = flag ? msg : this.data.message;
const { FEAT_NATIVE_CODE } = constant; const { FEAT_NATIVE_CODE } = constant;
//this.sendCallback(); this.sendCallback();
const message = wx.$TUIKit.createTextMessage({ const message = wx.$TUIKit.createTextMessage({
to, to,
conversationType: this.data.conversation.type, conversationType: this.data.conversation.type,
@ -752,7 +753,7 @@ Component({
cloudCustomData: JSON.stringify({ cloudCustomData: JSON.stringify({
order_inquiry_id:this.data.order_inquiry_id, order_inquiry_id:this.data.order_inquiry_id,
inquiry_type:this.data.inquiry_type, inquiry_type:this.data.inquiry_type,
message_rounds:this.data.msgData.msg_round, message_rounds:this.data.msgData.msg_round+1,
patient_family_data:this.data.patient_family_data, patient_family_data:this.data.patient_family_data,
is_system:0 is_system:0
}), }),
@ -964,7 +965,7 @@ Component({
ext3: wx.$chat_SDKAppID, ext3: wx.$chat_SDKAppID,
}); });
} }
this.sendCallback(); //this.sendCallback();
}) })
.catch((error) => { .catch((error) => {
logger.log(`| TUI-chat | message-input | sendMessageError: ${error.code} `); logger.log(`| TUI-chat | message-input | sendMessageError: ${error.code} `);

View File

@ -218,7 +218,7 @@ Page({
province_id:province_id, province_id:province_id,
city_id:city_id, city_id:city_id,
sort_order: sort_order, sort_order: sort_order,
is_online, is_first_online:is_online,
keyword:keyword, keyword:keyword,
is_search_welfare_reception: is_search_welfare_reception, is_search_welfare_reception: is_search_welfare_reception,
page:page, page:page,

View File

@ -62,13 +62,13 @@ Page({
pathography_id:options.pathography_id pathography_id:options.pathography_id
}) })
this.handlepathographyDetail(options.pathography_id); this.handlepathographyDetail(options.pathography_id);
}; };
if(options.index){ if(options.index){
this.setData({ this.setData({
index:options.index index:options.index
}) })
} };
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */