患者1.2

This commit is contained in:
zoujiandong
2024-01-10 08:57:23 +08:00
parent 49c01e8922
commit 5d865d1bbb
339 changed files with 23720 additions and 267 deletions
@@ -4,6 +4,9 @@ import {
finishConsult
} from "../../../../../../api/consultOrder"
// eslint-disable-next-line no-undef
// 导入 TUICallKitServer 模块,使您的应用具有全局呼叫的能力
import { TUICallKitServer } from "../../../../../../TUICallKit/TUICallService/index";
Component({
/**
* 组件的属性列表
@@ -29,6 +32,15 @@ Component({
});
},
},
doctor_user_id:{
type: String,
value: '',
observer(newVal) {
this.setData({
doctor_user_id:newVal,
});
},
},
inquiry_type: {
type: String,
value: '',
@@ -38,6 +50,15 @@ Component({
});
},
},
inquiry_mode: {
type: String,
value: '',
observer(newVal) {
this.setData({
inquiry_mode:newVal
});
},
},
patient_family_data:{
type: Object,
value:{},
@@ -119,7 +140,9 @@ Component({
conversation: {},
showCustomer:false,
order_inquiry_id:'',
doctor_user_id:'',
inquiry_type:'',
inquiry_mode:'',
patient_family_data:{},
message: '',
message_rounds:0,
@@ -159,6 +182,7 @@ Component({
isEmoji: false,
fileList: [],
hasCallKit: false,
},
lifetimes: {
@@ -194,6 +218,7 @@ Component({
cloudCustomData: JSON.stringify({
order_inquiry_id:this.data.order_inquiry_id,
inquiry_type:this.data.inquiry_type,
inquiry_mode:this.data.inquiry_mode,
message_rounds:this.data.msgData.msg_round,
patient_family_data:this.data.patient_family_data,
is_system:0
@@ -235,11 +260,19 @@ pageLifetimes:{
* 组件的方法列表
*/
methods: {
async call() {
console.log(this.data.doctor_user_id)
await TUICallKitServer.call({
userID: this.data.doctor_user_id,
type: 2,
});
},
showTooltip(){
this.setData({
showTip:!this.data.showTip,
});
},
handlefinishConsult(){
let {order_inquiry_id}=this.data;
finishConsult(order_inquiry_id).then(data=>{
@@ -505,6 +538,7 @@ pageLifetimes:{
cloudCustomData: JSON.stringify({
order_inquiry_id:this.data.order_inquiry_id,
inquiry_type:this.data.inquiry_type,
inquiry_mode:this.data.inquiry_mode,
message_rounds:this.data.msgData.msg_round,
patient_family_data:this.data.patient_family_data,
is_system:0
@@ -843,6 +877,7 @@ pageLifetimes:{
cloudCustomData: JSON.stringify({
order_inquiry_id:this.data.order_inquiry_id,
inquiry_type:this.data.inquiry_type,
inquiry_mode:this.data.inquiry_mode,
message_rounds:this.data.msgData.msg_round,
patient_family_data:this.data.patient_family_data,
is_system:0
@@ -900,6 +935,7 @@ pageLifetimes:{
cloudCustomData: JSON.stringify({
order_inquiry_id:this.data.order_inquiry_id,
inquiry_type:this.data.inquiry_type,
inquiry_mode:this.data.inquiry_mode,
message_rounds:this.data.msgData.msg_round,
patient_family_data:this.data.patient_family_data,
is_system:0
@@ -2,6 +2,7 @@
<view class="TUI-message-input-container">
<view class="TUI-commom-function functionbox">
<view bindtap="call">视频电话</view>
<view class="more" bindtap="showTooltip">
更多
@@ -148,6 +148,7 @@ Component({
comment_id:'',//评论订单id
fromType: '',
inquiry_type: '',
inquiry_mode:'',
patient_family_data: {},
rest_rounds: 0,//剩余回合数
msgData:{
@@ -164,6 +165,7 @@ Component({
reception_time: null,
rest_time: 0,
doctor_id: '',
doctor_user_id:'',
timeData: {},
},
doctorDetail: {
@@ -453,7 +455,8 @@ Component({
patient_age: data.patient_family_age
};
this.setData({
patient_family_data: patient_family_data
patient_family_data: patient_family_data,
inquiry_mode:data.inquiry_mode
})
let duration=''
if( data.duration == 0){
@@ -48,8 +48,8 @@
</van-count-down>
</view>
<text class="red" decode="true" wx:if="{{doctorChatData.times_number==-1}}">&nbsp;不限</text>
<text class="red" decode="true" wx:else>&nbsp;{{rest_rounds>=0?rest_rounds:0}}</text>
<text>沟通回合</text>
<text class="red" decode="true" wx:else>&nbsp;{{rest_rounds>=0?rest_rounds:0}}</text>
<text>沟通回合</text>
</view>
</view>
</view>
@@ -83,7 +83,7 @@
</view>
<view class="input-area" wx:if="{{doctorChatData.inquiry_status==3 || doctorChatData.inquiry_status==4}}">
<view class="message-input" style="{{viewData.style}}" wx:if="{{showChat}}">
<MessageInput id="MessageInput" duration="{{doctorChatData.duration}}" rest_time="{{doctorChatData.rest_time}}" times_number="{{doctorChatData.times_number}}" msgData="{{msgData}}" order_inquiry_id="{{order_inquiry_id}}" inquiry_type="{{inquiry_type}}" conversation="{{conversation}}" patient_family_data="{{patient_family_data}}" hasCallKit="{{hasCallKit}}" bind:sendMessage="sendMessage" bind:freshChatStatus="freshChatStatus"
<MessageInput id="MessageInput" duration="{{doctorChatData.duration}}" rest_time="{{doctorChatData.rest_time}}" times_number="{{doctorChatData.times_number}}" msgData="{{msgData}}" order_inquiry_id="{{order_inquiry_id}}" inquiry_type="{{inquiry_type}}" inquiry_mode="{{inquiry_mode}}" conversation="{{conversation}}" patient_family_data="{{patient_family_data}}" doctor_user_id="{{doctorChatData.doctor_user_id}}" hasCallKit="{{hasCallKit}}" bind:sendMessage="sendMessage" bind:freshChatStatus="freshChatStatus"
bind:changeTimeStatus="changeTimeStatus"
bind:downKeysBoards="downKeysBoards" bind:pullKeysBoards="pullKeysBoards" bind:showMessageErrorImage="showMessageErrorImage" bind:handleCall="handleCall" bind:getMessageRounds="getMessageRounds"></MessageInput>
</view>