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 @@
查看完整病历
在线开处方
预约视频时间
- 发起视频
+ 发起视频
+