(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-doctor-doctorIm"],{"0ee0":function(t,e,n){"use strict";n.r(e);var i=n("fbd4"),o=n("377f");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("0efb");var r,c=n("f0c5"),d=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"d7dd02ec",null,!1,i["a"],r);e["default"]=d.exports},"0efb":function(t,e,n){"use strict";var i=n("2a0c"),o=n.n(i);o.a},"0f89":function(t,e,n){"use strict";(function(t){var i=n("4ea4");n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("9958"),a=n("df92"),r=i(n("1e28")),c={components:{popupBottom:r.default},data:function(){return{order:null,doctor:null,user:null,msg:[],doctorId:null,orderId:null,imgVisible:!1,hasSendValue:!1,showBottomMenu:!1,setFocus:!1,sendText:"",bottomBlackLineHeight:uni.getStorageSync("bottomBlackLineHeight"),url:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202007%2F06%2F20200706230613_ikvtn.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1650117742&t=f64aa5215aeda871eb9a69a70329f7a0"}},onLoad:function(e){t.log(e.orderId),this.orderId=e.orderId,this.getImOrderDetail(),this.getUserInfo();var n=this;uni.$TUIKit.login({userID:n.user.userId,userSig:"eJwtzE0LgkAUheH-MttCruNcZYR2Qp*kqBC0E2a0S6XDaCJF-z1Tl*d54XxYfsqcXlsWMu4AW0*blK47KmniV6stX0Kr7oUxpFjoCgD0pSe8uejBkNWjIyIHgFk7ev7NFxK5BHfRlqrxtyqP8uG-d4fgVp-TeD-0mZBekgeRKLEp*uQSUyq31xU0G-b9ARDtMKA_"}).then((function(e){setTimeout((function(){var e=uni.$TUIKit.updateMyProfile({nick:n.user.nickname,avatar:n.user.avatar,gender:uni.$TUIKitTIM.TYPES.GENDER_MALE,selfSignature:"我的个性签名",allowType:uni.$TUIKitTIM.TYPES.ALLOW_TYPE_ALLOW_ANY});e.then((function(e){t.log(e.data)})).catch((function(e){t.warn("updateMyProfile error:",e)})),n.getMessageList()}),1e3)})).catch((function(t){})),uni.$TUIKit.on(uni.$TUIKitTIM.EVENT.MESSAGE_RECEIVED,this.onMessageReceived)},methods:{getUserInfo:function(){var t=this;(0,o.getUserInfo)().then((function(e){200==e.code?null!=e.user&&(t.user=e.user):uni.showToast({icon:"none",title:"请求失败"})}),(function(t){}))},getImOrderDetail:function(){var t=this,e={orderId:this.orderId};(0,a.getImOrderDetail)(e).then((function(e){200==e.code?(t.doctor=e.doctor,t.order=e.order,uni.setNavigationBarTitle({title:"与"+t.doctor.doctorName+"医生聊天中"})):uni.showToast({icon:"none",title:"请求失败"})}),(function(t){}))},onMessageReceived:function(e){t.log(e),"onMessageReceived"==e.name&&(this.msg=this.msg.concat(e.data),t.log(this.msg))},getMessageList:function(){var e=this,n=uni.$TUIKit.getMessageList({conversationID:"C2C"+e.doctorId,count:15});n.then((function(n){e.msg=n.data.messageList,t.log(e.msg)}))},sendMessage:function(e){var n=this,i=uni.$TUIKit.createTextMessage({to:n.doctorId,conversationType:uni.$TUIKitTIM.TYPES.CONV_C2C,payload:{text:e}}),o=uni.$TUIKit.sendMessage(i);o.then((function(e){t.log(e),0==e.code&&(n.msg.push(e.data.message),n.hasSendValue=!1,n.sendText="",n.setFocus=!0)})).catch((function(e){t.warn("sendMessage error:",e)}))},showBigImg:function(){this.imgVisible=!0},showMoreMenu:function(){this.showBottomMenu?this.setFocus?this.setFocus=!1:this.setFocus=!0:this.showBottomMenu=!0},sendMsg:function(){this.sendMessage(this.sendText)},closeBottom:function(t){void 0!=t.target.id&&"chatCont"!==t.target.id&&(this.showBottomMenu=!1)},textInput:function(t){t.detail.value?this.hasSendValue=!0:this.hasSendValue=!1}}};e.default=c}).call(this,n("5a52")["default"])},"2a0c":function(t,e,n){var i=n("6d5a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("716811a7",i,!0,{sourceMap:!1,shadowMode:!1})},"377f":function(t,e,n){"use strict";n.r(e);var i=n("0f89"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"6d5a":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-d7dd02ec]{height:100%}.content[data-v-d7dd02ec]{height:100%;display:flex;flex-direction:column;justify-content:space-between}.content .chat-cont[data-v-d7dd02ec]{box-sizing:border-box;flex:1;overflow-y:auto;background-color:#f2f5f9;padding:0 %?30?% %?60?%}.content .chat-cont .chat-item[data-v-d7dd02ec]{padding-top:%?60?%}.content .chat-cont .chat-item .time[data-v-d7dd02ec]{font-size:%?26?%;font-family:PingFang SC;font-weight:500;color:#999;line-height:1;margin-bottom:%?30?%;text-align:center}.content .chat-cont .chat-item .peop-info[data-v-d7dd02ec]{display:flex}.content .chat-cont .chat-item .peop-info .img-box[data-v-d7dd02ec]{width:%?78?%;height:%?78?%;border-radius:50%;overflow:hidden;flex-shrink:0;margin-right:%?20?%}.content .chat-cont .chat-item .peop-info .img-box uni-image[data-v-d7dd02ec]{width:100%;height:100%}.content .chat-cont .chat-item .peop-info .info .name[data-v-d7dd02ec]{font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#666;line-height:1;margin-bottom:%?20?%}.content .chat-cont .chat-item .peop-info .info .words[data-v-d7dd02ec]{box-sizing:border-box;max-width:%?520?%;font-size:%?32?%;font-family:PingFang SC;font-weight:500;color:#111;line-height:%?50?%;padding:%?20?% %?30?%;background:#fff;border-radius:0 %?20?% %?20?% %?20?%}.content .chat-cont .chat-item .peop-info .info .words uni-image[data-v-d7dd02ec]{width:%?364?%;height:auto}.content .chat-cont .chat-item.my .peop-info[data-v-d7dd02ec]{justify-content:flex-end}.content .chat-cont .chat-item.my .peop-info .img-box[data-v-d7dd02ec]{margin-right:0;margin-left:%?20?%}.content .chat-cont .chat-item.my .peop-info .info .name[data-v-d7dd02ec]{text-align:right}.content .chat-cont .chat-item.my .peop-info .info .words[data-v-d7dd02ec]{background:#2bc7b9;color:#fff;border-radius:%?20?% 0 %?20?% %?20?%}.content .input-box[data-v-d7dd02ec]{box-sizing:border-box;flex-shrink:0;background:#fff;display:flex;flex-direction:column;padding:%?20?% %?30?% 0}.content .input-box .used-phrases[data-v-d7dd02ec]{display:flex;flex-wrap:wrap}.content .input-box .used-phrases .item[data-v-d7dd02ec]{height:%?64?%;line-height:%?64?%;padding:0 %?30?%;border-radius:%?32?%;border:1px solid #f7f7f7;background-color:#fff;font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#111;margin-right:%?20?%;margin-bottom:%?20?%}.content .input-box .input-inner[data-v-d7dd02ec]{display:flex;align-items:center;justify-content:space-between}.content .input-box .input-inner uni-input[data-v-d7dd02ec]{box-sizing:border-box;flex:1;height:%?80?%;background:#f2f2f2;border-radius:%?40?%;padding:0 %?30?%;font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#000}.content .input-box .input-inner .input-place[data-v-d7dd02ec]{font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#999}.content .input-box .input-inner uni-image[data-v-d7dd02ec]{flex-shrink:0;width:%?52?%;height:%?52?%;margin-left:%?30?%}.content .input-box .input-inner .send-btn[data-v-d7dd02ec]{flex-shrink:0;height:%?64?%;line-height:%?64?%;border-radius:%?32?%;background:#2bc7b9;font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#fff;padding:0 %?30?%;margin-left:%?30?%}.content .input-box .bottom-menu[data-v-d7dd02ec]{height:0;display:flex;flex-wrap:wrap;overflow:hidden;opacity:0}.content .input-box .bottom-menu.show[data-v-d7dd02ec]{padding:%?30?% %?30?% 0;height:auto;opacity:1}.content .input-box .bottom-menu .item[data-v-d7dd02ec]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-right:%?77?%;margin-bottom:%?30?%}.content .input-box .bottom-menu .item[data-v-d7dd02ec]:nth-child(4n){margin-right:0}.content .input-box .bottom-menu .item .img-box[data-v-d7dd02ec]{width:%?100?%;height:%?100?%;background-color:#f5f5f5;border-radius:%?8?%;display:flex;align-items:center;justify-content:center}.content .input-box .bottom-menu .item .img-box uni-image[data-v-d7dd02ec]{width:%?40?%;height:%?40?%}.content .input-box .bottom-menu .item .text[data-v-d7dd02ec]{font-size:%?24?%;font-family:PingFang SC;font-weight:500;color:#333;margin-top:%?20?%}.popup-img-cont[data-v-d7dd02ec]{display:flex;align-items:center}.popup-img-cont uni-image[data-v-d7dd02ec]{width:100%}',""]),t.exports=e},ce43:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAApBJREFUWEftWb+LE0EU/t6ueyuokChY6F8gKFr5o7Sw8tqA4o8igdmkyGnhL7AWFG28FMlOSAqNKKS1s7BUO08F/wItBE2Ks8jtbZ5M2JEQEmeT24Q9zDa77Hsz78v35r2Z/UKIrlwut5LNZotEdJmZjwPYr20LuG8S0RdmftnpdGrtdntLxyT1UCwWj/b7/dcATi0AjCnER8uyVmu12jflSBFzH1ICToPfcF33TKVS6ZHneWVmXo8sitrbYRi2Go3GL9NPHWcXQrB+L6UcZGj4GmcvFAoHbdu+CuAxgJUBc0Rrvu9XFMB3zHxWvWTmm/V6/ekswPSYWQDqsZ7n3WXmhxHA977vnyMhRE+jDsPw0KzMJQEwYvJnNFdPSrlXAfxnSqZl0zTftPaFAFRdQldlqgAS0T1mvgLgBIDPRPRCrzGVmThFNFcGTctjCXBCHwwA7AEQAnjLzM8cx3kTBMEFIroO4DwAG8C2lNIx9cnEU+x5nmq4h4MgeNVsNr+PAsjn80ccx7kE4Ifv+62FAzStO5N9tMoTZ9AEwGRfAjQxZLL/vwwKIR4AWAOwLqW8b2Jqkn1uDAohtqP+tiWldNMIMJFT0TwZXAIce/yZsN+qgrilT+KG9aa+c57ELZxEUjz8mRCzGDallAfi+CYFMN0MTkj7skhiF8luZTD1O0m69+I4LSSOTyJtJk6gWX12JcBExaNZmVPjRsSjwe6TuPy2E4BCiDsAHo3Kb+oUrDXBgYBp2/bzarXa2UmwacaWSqVsGIbXhgVMADeklOtULpfdXq+nJOCT00w6Z99PruueHkjAKlDKRPQNy7Iu/hXRNRNKTM9kMiUiUtLFMQD75szS8PS/AXxl5la3260O/w3xB/38GEeKvhCsAAAAAElFTkSuQmCC"},df92:function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getDepartmentList=r,e.getDoctorList=c,e.getDoctorCase=d,e.getMyDoctorOrderList=s,e.getDoctorDetail=u,e.getDoctorOrderDetail=l,e.create=f,e.pay=g,e.cancelOrder=p,e.pingOrder=h,e.getImOrderDetail=m;var o=i(n("9bb2")),a=(new o.default).http;function r(t){return a("/app/doctorOrder/getDepartmentList",t,"GET")}function c(t){return a("/app/doctorOrder/getDoctorList",t,"GET")}function d(t){return a("/app/doctorOrder/getDoctorCase",t,"GET")}function s(t){return a("/app/doctorOrder/getMyDoctorOrderList",t,"GET")}function u(t){return a("/app/doctorOrder/getDoctorDetail",t,"GET")}function l(t){return a("/app/doctorOrder/getDoctorOrderDetail",t,"GET")}function f(t){return a("/app/doctorOrder/create",t,"POST","application/json;charset=UTF-8")}function g(t){return a("/app/doctorOrder/pay",t,"POST","application/json;charset=UTF-8")}function p(t){return a("/app/doctorOrder/cancelOrder",t,"POST","application/json;charset=UTF-8")}function h(t){return a("/app/doctorOrder/pingOrder",t,"POST","application/json;charset=UTF-8")}function m(t){return a("/app/doctorOrder/getImOrderDetail",t,"GET")}},f664:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IArs4c6QAAAzlJREFUSEu9lk1sVFUUx3/ntn2CC6WQLozVGEP8oETdGDJGJLCwGBHZdKGrSdr3ZtKyoCYu1GiiJGh0URe2mbmvncxKF91o0AgutAS0ATZGKRhjxAgRNjgaU2Wmr++YW980z37MTEF7t/ec+7v3nv89/ys0Gb7v3yciB4AngW3AliTlGnAe+ExVPwzD8PtGS8lqk77v7zLGHFbVnc024+ZF5GQcx6+GYXhipfhloGw2u8HzvHeBwOUDFRH5II7jT0Xkm0qlcrWrq8uLoqhbVbcaY55S1eeATkABW6vVDpXL5etp4L9A/f39m9va2j4GMsB1ERmpVqtvl8vl3xqdKpvNbvI870VgGNgITM/Pz++bmJj4tZ63CAqC4Fbgc2AH8JMx5plCoXCulWurx+Tz+e1xHB8F7gFOA3ustX8uXG09KAiCEBgALsdxnBkfH7+8Fkg9dmBgoNsYMw10A+PWWn8R5AovIl8AVVV9IgzDszcCqef4vv+oiDhRbFDV3U4gCycKguAk8DjwlrX2pUaQnuljLpaZzN6GaszlckdU1a11ylq7U3K53MOq+jXgCnevtfb3xqDjTlnMZHpXfRrJ5m8HfgQ2i8gjDvS6qr4GjFprDza7sp7p1kAJ7D1gSETekCAInNJ2i8j+YrHoFNNwrAXk+/4+ETmqqlMO9AtwR3t7+91jY2OX/kvQ4ODgXVEU/QxccaAq4FUqlVsmJydradA/hRcnkhaHnkqLpK+vz+vs7HTr1xZBURTdViqV/rg5EF/OZHoXN7YUtHB1qnp/sw7sNrGWGi29uvURw3rIGzi8fg823YJE5M1isfhy8xYkki76SvHLWpALSjVVZ1Y7rLXftqjnFcMSuzjjmqoxZk+hUJhK20QxcdUfoijaVSqVnBrXPPL5/J1xHE8BW53bWmtzbpHVjO+iMWb//2J8jjo0NLRlbm7uk8Rl/wJGarXaOzdg5ac7OjqeHh0ddT+lhbGs1Q8PD2+cnZ0dSX9OgPdV9Zj7nLi+leS6R/6QiOwFnk9/ToAX6ha+Kqg+kQjkCPBYi4X6yhjziiv8SvENzSuR/gMi8qyq9gIPLvlAXhCR46r6kbX2u0Yb+htvKJ6+vVP2lQAAAABJRU5ErkJggg=="},fbd4:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{ref:"showPanel",staticClass:"content"},[i("v-uni-view",{staticClass:"chat-cont",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeBottom.apply(void 0,arguments)}}},t._l(t.msg,(function(e){return i("v-uni-view",{staticClass:"chat-item",class:e.from==t.doctorId?"":"my"},[i("v-uni-view",{staticClass:"time"},[t._v(t._s(t.utils.parseTime(e.time)))]),e.from==t.doctorId?i("v-uni-view",{staticClass:"peop-info"},[i("v-uni-view",{staticClass:"img-box"},[i("v-uni-image",{attrs:{src:e.avatar,mode:""}})],1),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.nick))]),i("v-uni-view",{staticClass:"words"},[t._v(t._s(e.payload.text))])],1)],1):t._e(),e.from==t.user.userId?i("v-uni-view",{staticClass:"peop-info"},[i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.nick))]),i("v-uni-view",{staticClass:"words"},[t._v(t._s(e.payload.text))])],1),i("v-uni-view",{staticClass:"img-box"},[i("v-uni-image",{attrs:{src:e.avatar,mode:""}})],1)],1):t._e()],1)})),1),i("v-uni-view",{staticClass:"input-box",style:{paddingBottom:t.bottomBlackLineHeight+"rpx"},attrs:{id:"chatCont"}},[i("v-uni-view",{staticClass:"used-phrases"},t._l(2,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item"},[t._v("换个人问问")])})),1),i("v-uni-view",{staticClass:"input-inner"},[i("v-uni-input",{attrs:{type:"text",value:"",placeholder:"请向医生详细描述您的症状",focus:t.setFocus,"placeholder-class":"input-place","confirm-type":"发送"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.textInput.apply(void 0,arguments)}},model:{value:t.sendText,callback:function(e){t.sendText=e},expression:"sendText"}}),t.hasSendValue?t._e():i("v-uni-image",{attrs:{src:n("f664"),mode:""},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showMoreMenu.apply(void 0,arguments)}}}),t.hasSendValue?i("v-uni-view",{staticClass:"send-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.sendMsg.apply(void 0,arguments)}}},[t._v("发送")]):t._e()],1),i("v-uni-view",{class:t.showBottomMenu?"bottom-menu show":"bottom-menu"},[i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"img-box"},[i("v-uni-image",{attrs:{src:n("ce43"),mode:""}})],1),i("v-uni-text",{staticClass:"text"},[t._v("投诉反馈")])],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"img-box"},[i("v-uni-image",{attrs:{src:n("ce43"),mode:""}})],1),i("v-uni-text",{staticClass:"text"},[t._v("常见问题")])],1)],1)],1),i("popupBottom",{ref:"popup",attrs:{visible:t.imgVisible,title:"电子处方",radius:"32",maxHeight:"1200"},on:{"update:visible":function(e){arguments[0]=e=t.$handleEvent(e),t.imgVisible=e}}},[i("v-uni-view",{staticClass:"popup-img-cont"},[i("v-uni-image",{attrs:{src:t.url,mode:"widthFix"}})],1)],1)],1)},a=[]}}]);