From ef911b998f57f3be5d6a113ce2bd6d54f1b0cfdd Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Wed, 24 Apr 2024 18:43:36 +0800
Subject: [PATCH] 4.24
---
.../TUIChat/components/MessageInput/index.js | 34 +++++++++++++++++++
.../TUIKit/components/TUIChat/index.wxml | 6 ++--
2 files changed, 38 insertions(+), 2 deletions(-)
diff --git a/TUIService/TUIKit/components/TUIChat/components/MessageInput/index.js b/TUIService/TUIKit/components/TUIChat/components/MessageInput/index.js
index 1b00136..f67137b 100644
--- a/TUIService/TUIKit/components/TUIChat/components/MessageInput/index.js
+++ b/TUIService/TUIKit/components/TUIChat/components/MessageInput/index.js
@@ -59,6 +59,15 @@ Component({
});
},
},
+ serviceInfo:{
+ type: Object,
+ value:{},
+ observer(newVal) {
+ this.setData({
+ serviceInfo:newVal
+ });
+ },
+ },
patient_family_data:{
type: Object,
value:{},
@@ -153,6 +162,7 @@ Component({
inquiry_type:'',
inquiry_mode:'',
patient_family_data:{},
+ serviceInfo:{},
message: '',
message_rounds:0,
rest_rounds:0,
@@ -219,6 +229,7 @@ Component({
});
}
this.sendCallback();
+ let {serviceInfo}=this.data;
const message = wx.$TUIKit.createAudioMessage({
to: this.getToAccount(),
conversationType: this.data.conversation.type,
@@ -231,6 +242,11 @@ Component({
inquiry_mode:this.data.inquiry_mode,
message_rounds:this.data.msgData.msg_round,
patient_family_data:this.data.patient_family_data,
+ remaining_month_inquiry_count:serviceInfo.remaining_month_inquiry_count,
+ service_package_start_time:serviceInfo.start_time,
+ service_package_finish_time:serviceInfo.finish_timestart_time,
+ service_period:serviceInfo.service_period,
+ remaining_quantity:serviceInfo.remaining_quantity,
is_system:0
})
});
@@ -539,6 +555,7 @@ pageLifetimes:{
// 发送图片消息
handleSendImageMessage(file) {
+ let {serviceInfo}=this.data;
const message = wx.$TUIKit.createImageMessage({
to: this.getToAccount(),
conversationType: this.data.conversation.type,
@@ -551,6 +568,11 @@ pageLifetimes:{
inquiry_mode:this.data.inquiry_mode,
message_rounds:this.data.msgData.msg_round,
patient_family_data:this.data.patient_family_data,
+ remaining_month_inquiry_count:serviceInfo.remaining_month_inquiry_count,
+ service_package_start_time:serviceInfo.start_time,
+ service_package_finish_time:serviceInfo.finish_timestart_time,
+ service_period:serviceInfo.service_period,
+ remaining_quantity:serviceInfo.remaining_quantity,
is_system:0
}),
onProgress: (percent) => {
@@ -878,6 +900,7 @@ pageLifetimes:{
const text = flag ? msg : this.data.message;
const { FEAT_NATIVE_CODE } = constant;
this.sendCallback();
+ let {serviceInfo}=this.data;
const message = wx.$TUIKit.createTextMessage({
to,
conversationType: this.data.conversation.type,
@@ -890,6 +913,11 @@ pageLifetimes:{
inquiry_mode:this.data.inquiry_mode,
message_rounds:this.data.msgData.msg_round,
patient_family_data:this.data.patient_family_data,
+ remaining_month_inquiry_count:serviceInfo.remaining_month_inquiry_count,
+ service_package_start_time:serviceInfo.start_time,
+ service_package_finish_time:serviceInfo.finish_timestart_time,
+ service_period:serviceInfo.service_period,
+ remaining_quantity:serviceInfo.remaining_quantity,
is_system:0
}),
});
@@ -927,6 +955,7 @@ pageLifetimes:{
// 发送正在输入状态消息
sendTypingStatusMessage() {
const { BUSINESS_ID_TEXT, FEAT_NATIVE_CODE } = constant;
+ let {serviceInfo}=this.data;
// 创建正在输入状态消息, "typingStatus":1,正在输入中1, 输入结束0, "version": 1 兼容老版本,userAction:0, // 14表示正在输入,actionParam:"EIMAMSG_InputStatus_Ing" //"EIMAMSG_InputStatus_Ing" 表示正在输入, "EIMAMSG_InputStatus_End" 表示输入结束
const typingMessage = wx.$TUIKit.createCustomMessage({
to: this.getToAccount(),
@@ -948,6 +977,11 @@ pageLifetimes:{
inquiry_mode:this.data.inquiry_mode,
message_rounds:this.data.msgData.msg_round,
patient_family_data:this.data.patient_family_data,
+ remaining_month_inquiry_count:serviceInfo.remaining_month_inquiry_count,
+ service_package_start_time:serviceInfo.start_time,
+ service_package_finish_time:serviceInfo.finish_timestart_time,
+ service_period:serviceInfo.service_period,
+ remaining_quantity:serviceInfo.remaining_quantity,
is_system:0
}),
});
diff --git a/TUIService/TUIKit/components/TUIChat/index.wxml b/TUIService/TUIKit/components/TUIChat/index.wxml
index 7feec10..6108760 100644
--- a/TUIService/TUIKit/components/TUIChat/index.wxml
+++ b/TUIService/TUIKit/components/TUIChat/index.wxml
@@ -52,7 +52,7 @@
沟通回合
- 不限问诊次数,{{serviceInfo.finish_time}}天后结束
+ 不限问诊次数,{{serviceInfo.remaining_finish_day}}天后结束
当月剩余:{{serviceInfo.monthly_frequency-serviceInfo.month_inquiry_count}}次
@@ -87,7 +87,9 @@
-