4.18
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
|
||||
|
||||
import {
|
||||
chatMsg
|
||||
chatMsg,serviceChatMsg
|
||||
} from "../../../../api/common"
|
||||
import {throttle} from "../../../../utils/util"
|
||||
|
||||
@@ -117,6 +117,7 @@ Component({
|
||||
})
|
||||
console.log(this.data.order_inquiry_id);
|
||||
this.handleChatMsg(this.data.order_inquiry_id);
|
||||
|
||||
|
||||
},
|
||||
hide: function() {
|
||||
@@ -134,6 +135,7 @@ Component({
|
||||
*/
|
||||
data: {
|
||||
img_host:'https://oss.prod.applets.igandanyiyuan.com/applet/patient/static',
|
||||
serviceInfo:{},
|
||||
conversationName: '',
|
||||
isEvaluation:false,
|
||||
conversation: {},
|
||||
@@ -164,6 +166,7 @@ Component({
|
||||
duration: 0,
|
||||
reception_time: null,
|
||||
rest_time: 0,
|
||||
inquiry_mode:'',
|
||||
doctor_id: '',
|
||||
doctor_user_id:'',
|
||||
timeData: {},
|
||||
@@ -437,8 +440,17 @@ Component({
|
||||
this.handelfllowDoctor()
|
||||
}
|
||||
},
|
||||
handleServiceChatMsg(id){
|
||||
serviceChatMsg(id).then(res=> {
|
||||
console.log(res)
|
||||
this.setData({
|
||||
serviceInfo:res
|
||||
})
|
||||
})
|
||||
},
|
||||
handleChatMsg(id) {
|
||||
chatMsg(id).then(data => {
|
||||
this.handleServiceChatMsg(id);
|
||||
// console.log("接口请求收到时间66666"+dayjs().format("YYYY-MM-DD HH:mm:ss:SSS"));
|
||||
// console.log(data);
|
||||
let promise=wx.$TUIKit.getUserProfile({
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<view class="circle"></view>
|
||||
<view>问诊中</view>
|
||||
<view class="bar" wx:if="{{doctorChatData.rest_time!==0 && !isEnd}}">|</view>
|
||||
<view class="desc" wx:if="{{doctorChatData.rest_time!==0 && !isEnd}}">
|
||||
<view class="desc" wx:if="{{doctorChatData.rest_time!==0 && !isEnd && !(doctorChatData.inquiry_mode==8 || doctorChatData.inquiry_mode==9)}}">
|
||||
<view class="desc"wx:if="{{doctorChatData.rest_time==-2}}">不限时间</view>
|
||||
<view class="desc" wx:elif="{{doctorChatData.rest_time>0}}">
|
||||
剩余<van-count-down use-slot time="{{doctorChatData.rest_time}}" bind:change="onChangeTime" format="HH:mm:ss">
|
||||
@@ -51,6 +51,10 @@
|
||||
<text class="red" decode="true" wx:else> {{rest_rounds>=0?rest_rounds:0}}个</text>
|
||||
<text>沟通回合</text>
|
||||
</view>
|
||||
<view class="count_time" wx:if="{{doctorChatData.rest_time!==0 && !isEnd && (doctorChatData.inquiry_mode==8 || doctorChatData.inquiry_mode==9)}}">
|
||||
<text class="red" wx:if="{{serviceInfo.monthly_frequency==0}}">不限问诊次数,{{serviceInfo.finish_time}}后结束</text>
|
||||
<text wx:else >当月剩余:<text class="red">{{serviceInfo.monthly_frequency-serviceInfo.month_inquiry_count}}</text>次</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="statusbox" wx:elif="{{doctorChatData.inquiry_status==7}}">
|
||||
|
||||
@@ -634,3 +634,6 @@ border-radius: 30rpx;
|
||||
width:80rpx;
|
||||
height:80rpx;
|
||||
}
|
||||
.count_time .red{
|
||||
color:#E34D59;
|
||||
}
|
||||
Reference in New Issue
Block a user