From a938838bcdefb54de7da1d98e3f2d67b8e03228a Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Wed, 30 Aug 2023 15:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=81=8A=E5=A4=A9=E9=A1=B5?= =?UTF-8?q?=E9=87=8C=E7=9A=84=E8=AE=A2=E5=8D=95=E6=8E=A5=E5=8D=95=E7=BB=93?= =?UTF-8?q?=E6=9D=9F=E5=88=97=E8=A1=A8=E9=87=8C=EF=BC=8C=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=8A=B6=E6=80=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TUIChat/components/MessageList/index.js | 22 +++++++++++++++++++ TUIKit/components/TUIChat/index.wxml | 6 ++--- TUIKit/components/TUIChat/index.wxss | 6 +++-- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/TUIKit/components/TUIChat/components/MessageList/index.js b/TUIKit/components/TUIChat/components/MessageList/index.js index da76b75..f104ea5 100644 --- a/TUIKit/components/TUIChat/components/MessageList/index.js +++ b/TUIKit/components/TUIChat/components/MessageList/index.js @@ -372,9 +372,31 @@ Component({ return show_avatar; }, + //获取问诊订单状态 + getInquiryMessageBasic(order_inquiry_id) { + // console.log("order_inquiry_id: ", this.data.order_inquiry_id); + api.getInquiryMessageBasic({order_inquiry_id:order_inquiry_id}).then(response => { + let result=response.data; + if(result.inquiry_status==3){ + wx.redirectTo({ + url: '/Pages/yishi/wenzhen_v2/wenzhen', + }) + } + }).then(res => { + + }).catch(errors => {console.error(errors);}) + }, // 历史消息渲染 $handleMessageRender(messageList, currentMessageList) { + //console.log("order_inquiry_id:"+this.data.order_inquiry_id) console.log(messageList); + if(messageList.length>0){ + let last_cloudCustomData=messageList[messageList.length-1].cloudCustomData; + if(last_cloudCustomData){ + let cloudCustomData=JSON.parse(last_cloudCustomData); + this.getInquiryMessageBasic(cloudCustomData.order_inquiry_id) + } + } // console.log("handleMessageRenderhandleMessageRenderhandleMessageRender"); // this.showHistoryMessageTime(currentMessageList); if (messageList.length > 0) { diff --git a/TUIKit/components/TUIChat/index.wxml b/TUIKit/components/TUIChat/index.wxml index 09fdfdd..d5f904b 100644 --- a/TUIKit/components/TUIChat/index.wxml +++ b/TUIKit/components/TUIChat/index.wxml @@ -11,10 +11,9 @@ 问诊中|不限时间 - 剩余 + 剩余 - - + {{(timeData.days*24)+timeData.hours }}小时 {{timeData.minutes }}分 {{ timeData.seconds }}秒 @@ -47,6 +46,7 @@ diff --git a/TUIKit/components/TUIChat/index.wxss b/TUIKit/components/TUIChat/index.wxss index a7665af..271b13d 100644 --- a/TUIKit/components/TUIChat/index.wxss +++ b/TUIKit/components/TUIChat/index.wxss @@ -155,13 +155,15 @@ color:#E34D59; display: flex; font-size: 32rpx; + white-space: nowrap; align-items: center; } .time_desc .item{ color:#E34D59; - - display: flex; + + display:inline-flex; + white-space: nowrap; align-items: center; font-size: 32rpx; }