From 6c0d9d2c90f5d525ced77a379373a1c3caf4346a Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Fri, 2 Feb 2024 15:16:41 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E9=9F=B3=E8=A7=86=E9=A2=91?=
=?UTF-8?q?=E6=88=BF=E9=97=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../TUIChat/components/MessageInput/index.js | 22 ++++++++++---------
.../components/MessageInput/index.wxml | 3 ++-
utils/network/api.js | 7 +++++-
3 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.js b/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.js
index d460413..2a1c816 100644
--- a/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.js
+++ b/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.js
@@ -395,7 +395,7 @@ Component({
console.error(errors);
})
},
- async call() {
+ call() {
let {baseInfo}=this.data;
console.log(baseInfo)
wx.setStorage('patientInfo',{
@@ -412,15 +412,17 @@ Component({
is_system:0
}
)
- await TUICallKitServer.call({
- userID: this.data.patient_user_id,
- type: 2,
- timeout:0,
- userData:JSON.stringify({
- 'is_system':0,
- 'test':'111111'
- }),
- });
+ api.geRoomId({
+ order_inquiry_id:baseInfo.order_inquiry_id
+ }).then(async(res)=>{
+ let result=res.data;
+ await TUICallKitServer.call({
+ userID: this.data.patient_user_id,
+ type: 2,
+ roomID:result
+ });
+ })
+
},
// 获取消息列表来判断是否发送正在输入状态
getMessageList(conversation) {
diff --git a/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml b/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml
index a3eb778..269790e 100644
--- a/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml
+++ b/TUIChatService/TUIKit/components/TUIChat/components/MessageInput/index.wxml
@@ -3,7 +3,8 @@
查看完整病历
在线开处方
预约视频时间
- 发起视频
+ 发起视频
+