pages_user-user-doctorOrder.755ce750.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages_user-user-doctorOrder"],{"1de5":function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"1ea4":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAAcCAYAAADC8vmmAAAAAXNSR0IArs4c6QAABrZJREFUaEPtmV2IZEcVx885VXVv3749M5nZnV13zcYhjB8MIoZFYUGMCxIDggiSJ58iQvApkPjkixERSV7UB/PgmwQkKAgBCRif/MKnheDDQJLZZVl1N2E/JtPdt+9HVZ0jpyc99ozd07ObZXZGrH6Y23e6q2/96n/+VecUwodsIoLjXfwAYNf7D9n9ff369wFkvENE3PV+0o/d9WBGQBTE2gcwlgHwbbg07GtxPdvps5Mkd93/fSUCAP2m2YGwuVYOrz8B5+UmgKx/AEzBTYN14AGMg3kcgBTIuY0Fes9azK3FyjlqEWGKd4Z99sgcuO/7DWW8vzmOQyi1LEnFLIvMcquu+XQI8o/VLV6E86ygpkE60CAUzkgxm3CJFEzMc3Opd739u+7tp+so32DhxwAg2a3i0eTt/auPPO1/9/KdSf2N39t7DUCIf37u9IUn8sGAl9fW+I8APAnSTEAjOKqacmPDKBh2XfOTazcev+Xrl0Xk3GQo+0F48IBO2fSr3/nYF/9UFEVoVm5HVdJTALw31PYFpHB+A0CqmuTqCWOyzMylpXvx8uVv9Xx4CUDMtpzHvW7S9dFSkDP0h++d+9I3XavyvTrzJ3u9kK2uRlXRC4i8y8inxf9eOHme23ZSuh9tbDzT9f7Hs6EcWQX5C/MPP/nE6UffyhpTb6VFkwxafvPh98INOB/3htlEBY3C6gxcMqqcpU7t6ip3v7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UiYxNZHTyNByhhOINgkULSFZjpEMDr0H4tB+DreZIZtt+aA1HEUYhKNlE6KJHiI2bKiG0DSpwbpunNewmlXemAhIb46nGLfm5qyWNXzVcuBC4nxw0VhHIVogMoDBqKaHEj/s0BobgcJRUNpIHAdhZhuDYxt89N444xOf+JDVQcsasSzjfrWfSVO8M/OTyhvOFdaWqS1tbYGsgaYxToOdiGhMNR4PT0FOtpUzaqzLl4jofa+RliQROMQspAHbPkZfBvLz0RRFVEPWWvSkwtg0/e8CpGGmierN9XUq2m3SAhm5nsnJku9byoyhEhEtFmiG9rPd6kMElO4BNAxxYQmSi42Rk07kAQeGMBezEFjBaO1ZC/XTyqr7mcMu75hUe9ai/Mk0pU0iPA5F+Zb3XIQgo6L8OJhtS5h91DMObGo9SD+kxzrH9UhHn390WnEvYEaQZtakx2n+rx0KHmTdPfTl+SAPdZQ+839AM2bj3/oU41mEubyIAAAAAElFTkSuQmCC"},"3b76":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={mescrollBody:n("2407").default},o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"top-fixed"},[a("v-uni-view",{staticClass:"pub-tab-box"},[a("v-uni-view",{staticClass:"tab-inner"},t._l(t.orderStatus,(function(e,o){return a("v-uni-view",{key:o,class:e.val==t.orderStatusValue?"item active":"item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.orderStatusChange(e)}}},[a("v-uni-view",{staticClass:"text"},[t._v(t._s(e.name)),a("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:e.val==t.orderStatusValue,expression:"item.val == orderStatusValue"}],staticClass:"tab-bg",attrs:{src:n("1ea4"),mode:""}})],1)],1)})),1)],1)],1),a("v-uni-view",{staticClass:"consu-list"},[a("mescroll-body",{ref:"mescrollRef",attrs:{top:"88upx",down:t.downOption,up:t.upOption},on:{init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)},down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)},up:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)}}},t._l(t.dataList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"item"},[a("v-uni-view",{staticClass:"ordersn-box"},[a("v-uni-view",{staticClass:"num"},[t._v("订单号:"+t._s(e.orderSn))]),a("v-uni-view",{staticClass:"status-box"},[1==e.orderType?a("v-uni-view",{staticClass:"recom-box"},[t._v("图文问诊")]):t._e(),2==e.orderType?a("v-uni-view",{staticClass:"recom-box"},[t._v("语音问诊")]):t._e(),a("v-uni-text",{staticClass:"text success"},[t._v(t._s(t.utils.getDictLabelName("doctorOrderStatus",e.status)))])],1)],1),a("v-uni-view",{staticClass:"doctor-info"},[a("v-uni-view",{staticClass:"img-box"},[a("v-uni-image",{attrs:{src:e.doctorHeadImg,mode:"aspectFill"}})],1),a("v-uni-view",{staticClass:"name"},[a("v-uni-text",[t._v(t._s(e.doctorName))]),a("v-uni-text",[t._v(t._s(e.departmentName))]),a("v-uni-text",[t._v(t._s(e.hospitalName))])],1)],1),a("v-uni-view",{staticClass:"ask-text"},[t._v(t._s(e.title))]),null!=e.patientId?a("v-uni-view",{staticClass:"patient-text"},[t._v("患者:"+t._s(e.patientName)+" "+t._s(t.utils.getAge(e.patientBirthday))+"岁 "+t._s(1==e.patientGender?"男":"女"))]):t._e(),a("v-uni-view",{staticClass:"ask-time"},[t._v(t._s(e.createTime))]),a("v-uni-view",{staticClass:"bottom-box"},[a("v-uni-view",{staticClass:"amount-paid"},[a("v-uni-text",{staticClass:"label"},[t._v("实付金额:")]),a("v-uni-view",{staticClass:"price-box"},[a("v-uni-view",{staticClass:"unit"},[t._v("¥")]),a("v-uni-view",{staticClass:"num"},[t._v(t._s(e.payMoney.toFixed(2)))])],1)],1),a("v-uni-view",{staticClass:"btn-box"},[0==e.status||1==e.status?a("v-uni-view",{staticClass:"btn cancel",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.cancel(e)}}},[t._v("取消订单")]):t._e(),1==e.status?a("v-uni-view",{staticClass:"btn cancel",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.showDetail(e)}}},[t._v("查看会话")]):t._e(),0==e.status?a("v-uni-view",{staticClass:"btn pay",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.pay(e)}}},[t._v("支付")]):t._e()],1)],1)],1)})),1)],1)],1)},i=[]},"83ce":function(t,e,n){"use strict";n.r(e);var a=n("3b76"),o=n("d05a");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("ccf2");var s,r=n("f0c5"),c=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"2e47ba2c",null,!1,a["a"],s);e["default"]=c.exports},"91c0":function(t,e,n){"use strict";var a=n("4ea4");n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("df92"),i=a(n("3221")),s={mixins:[i.default],data:function(){return{orderStatus:[{name:"全部",val:""},{name:"未支付",val:"0"},{name:"进行中",val:"1"},{name:"已完成",val:"2"},{name:"已取消",val:"-1"}],orderStatusValue:"",mescroll:null,upOption:{onScroll:!0,use:!0,page:{num:0,size:10},noMoreSize:10,empty:{icon:"/static/images/no_data.png",tip:"暂无数据"}},dataList:[]}},onLoad:function(){var t=this;uni.$on("refreshDoctorOrder",(function(){t.mescroll.resetUpScroll()}))},methods:{pay:function(t){uni.navigateTo({url:"../doctor/paymentOrder?orderId="+t.orderId})},cancel:function(t){var e=this;uni.showModal({title:"提示",content:"确定取消订单吗",success:function(n){if(n.confirm){var a={orderId:t.orderId};(0,o.cancelOrder)(a).then((function(t){200==t.code?(uni.showToast({icon:"success",title:"订单已取消"}),e.mescroll.resetUpScroll()):uni.showToast({icon:"none",title:t.msg})}))}else n.cancel}})},orderStatusChange:function(t){this.orderStatusValue=t.val,this.mescroll.resetUpScroll()},mescrollInit:function(t){this.mescroll=t},downCallback:function(t){t.resetUpScroll()},upCallback:function(t){var e=this,n={status:this.orderStatusValue,page:t.num,pageSize:t.size};(0,o.getMyDoctorOrderList)(n).then((function(n){200==n.code?(1==t.num?e.dataList=n.data.list:e.dataList=e.dataList.concat(n.data.list),e.mescroll.endBySize(n.data.list.length,n.data.total)):(uni.showToast({icon:"none",title:"请求失败"}),e.dataList=null,e.mescroll.endErr())}))},showDetail:function(t){1==t.orderType&&uni.navigateTo({url:"../doctor/doctorOrderIM?orderId="+t.orderId})}}};e.default=s},a617:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAeCAYAAADJjPsHAAAAAXNSR0IArs4c6QAAAhxJREFUaEPtmj9OwzAUxr9XZhATIjAjOEIbMfJnh4NAEQNEnRGXgQvATgscAISgV2iBNQYlbZ04tmOlFamLXoaqcZ281L88+7P9EQC8dztbDYhrEPYIWEnK0uMn+SB5qn4xlY/K1F/s9Sb3Iy1G8Zrs3BRBRiw8b2ld+WeK0e2xR5e46pvbLL0qfb78IWN9ArhfajQu1ponb5YGH0X/eOpskxBdAKtaKAZmeGH/BNjkRR/Egpqbu6evNmjU70Y3IBxlb3uuKgOrFdi45W+DsH1sB9aLhsh1g0qHwMDmAew7CNvLZcCUnpWBzWUMU/gEYdsmHED9XsTAzEJgXKoDrCqqpFSxiw4GlgmoWTOGgRmEv7tRVVFkqb+4sp4zjDNMky08cZ5MpHVFp7eNY+LMGbbIGUZEzfXWac8k7VklOpea6hcdAIZEdGiCxsD8BJYIsyERNGgMzF9gSY+oQWNgfgNLoQHiIAjPHtNxmVc6XKvvcxnDinNVCY2B+Z9hStfIwPwHpoxjDMxvYCw6dMuDt2MYy3rzUpKXwHjinC3zVFV9VetrzpixX6PUhKPuyPHSVL49qgKoWn92YLzj7NhRLt9BZmC8gSlfILN1gzPsn2UY29z8MuE4bG5sJHVYy2sfwxxG0ufLHcT0wFZt1eYz/TRgepVIwEAgbm2E5y+m3WZ559RfH4srEPYJyFyn7Pyty/n7BeBOCIrKfPUJsF8TeAQunoFtzAAAAABJRU5ErkJggg=="},ccf2:function(t,e,n){"use strict";var a=n("d91d"),o=n.n(a);o.a},d05a:function(t,e,n){"use strict";n.r(e);var a=n("91c0"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},d91d:function(t,e,n){var a=n("ed25");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("995d6868",a,!0,{sourceMap:!1,shadowMode:!1})},df92:function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getDepartmentList=s,e.getDoctorList=r,e.getDoctorCase=c,e.getMyDoctorOrderList=l,e.getDoctorDetail=d,e.getDoctorOrderDetail=u,e.create=b,e.pay=f,e.cancelOrder=g,e.pingOrder=v,e.getImOrderDetail=m;var o=a(n("9bb2")),i=(new o.default).http;function s(t){return i("/app/doctorOrder/getDepartmentList",t,"GET")}function r(t){return i("/app/doctorOrder/getDoctorList",t,"GET")}function c(t){return i("/app/doctorOrder/getDoctorCase",t,"GET")}function l(t){return i("/app/doctorOrder/getMyDoctorOrderList",t,"GET")}function d(t){return i("/app/doctorOrder/getDoctorDetail",t,"GET")}function u(t){return i("/app/doctorOrder/getDoctorOrderDetail",t,"GET")}function b(t){return i("/app/doctorOrder/create",t,"POST","application/json;charset=UTF-8")}function f(t){return i("/app/doctorOrder/pay",t,"POST","application/json;charset=UTF-8")}function g(t){return i("/app/doctorOrder/cancelOrder",t,"POST","application/json;charset=UTF-8")}function v(t){return i("/app/doctorOrder/pingOrder",t,"POST","application/json;charset=UTF-8")}function m(t){return i("/app/doctorOrder/getImOrderDetail",t,"GET")}},ed25:function(t,e,n){var a=n("24fb"),o=n("1de5"),i=n("a617");e=a(!1);var s=o(i);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/* 文章场景相关 */.content[data-v-2e47ba2c]{padding:%?20?%}.content .top-fixed[data-v-2e47ba2c]{width:100%;position:fixed;top:0;left:0;z-index:10}.content .pub-tab-box[data-v-2e47ba2c]{box-sizing:border-box;width:100%;padding:0 %?40?%;background-color:#fff}.content .pub-tab-box .tab-inner[data-v-2e47ba2c]{height:%?88?%;line-height:%?88?%;display:flex;align-items:center;justify-content:space-between;overflow-x:auto}.content .pub-tab-box .item[data-v-2e47ba2c]{font-size:%?28?%;white-space:nowrap;line-height:1;font-family:PingFang SC;font-weight:500;color:#666;margin-right:%?60?%;display:flex;align-items:center;justify-content:center}.content .pub-tab-box .item[data-v-2e47ba2c]:last-child{margin-right:0}.content .pub-tab-box .item.active[data-v-2e47ba2c]{font-weight:700;color:#333}.content .pub-tab-box .item .text[data-v-2e47ba2c]{position:relative;z-index:1}.content .pub-tab-box .item .tab-bg[data-v-2e47ba2c]{width:%?72?%;height:%?28?%;position:absolute;top:%?17?%;left:50%;-webkit-transform:translateX(%?-36?%);transform:translateX(%?-36?%);z-index:-1}.content .consu-list .item[data-v-2e47ba2c]{background:#fff;border-radius:%?16?%;padding:%?40?% %?30?%;position:relative;margin-bottom:%?20?%}.content .consu-list .item .ordersn-box[data-v-2e47ba2c]{display:flex;align-items:center;justify-content:space-between;padding:%?0?% 0 %?20?%}.content .consu-list .item .ordersn-box .num[data-v-2e47ba2c]{font-size:%?26?%;font-family:PingFang SC;font-weight:500;color:#999;line-height:1}.content .consu-list .item .ordersn-box .status-box[data-v-2e47ba2c]{display:flex;align-items:center}.content .consu-list .item .ordersn-box .status-box .recom-box[data-v-2e47ba2c]{width:%?108?%;height:%?30?%;line-height:%?30?%;text-align:left;padding-left:%?8?%;font-size:%?22?%;font-family:PingFang SC;font-weight:500;color:#fff;background-image:url('+s+");background-repeat:no-repeat;background-size:100% 100%;margin-right:%?8?%}.content .consu-list .item .ordersn-box .status-box .text[data-v-2e47ba2c]{font-size:%?28?%;font-family:PingFang SC;font-weight:500;line-height:1}.content .consu-list .item .ordersn-box .status-box .text.success[data-v-2e47ba2c]{color:#2bc7b9}.content .consu-list .item .ordersn-box .status-box .text.black[data-v-2e47ba2c]{color:#111}.content .consu-list .item .ordersn-box .status-box .text.info[data-v-2e47ba2c]{color:#999}.content .consu-list .item .doctor-info[data-v-2e47ba2c]{display:flex;align-items:center}.content .consu-list .item .doctor-info .img-box[data-v-2e47ba2c]{width:%?80?%;height:%?80?%;background:#e0fff8;border-radius:50%;overflow:hidden;margin-right:%?20?%}.content .consu-list .item .doctor-info .img-box uni-image[data-v-2e47ba2c]{width:100%;height:100%}.content .consu-list .item .doctor-info .name[data-v-2e47ba2c]{font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#666;line-height:%?48?%}.content .consu-list .item .doctor-info .name uni-text[data-v-2e47ba2c]{margin-right:%?10?%}.content .consu-list .item .ask-text[data-v-2e47ba2c]{font-size:%?30?%;font-family:PingFang SC;font-weight:500;color:#111;line-height:%?42?%;margin-top:%?26?%;margin-bottom:%?24?%}.content .consu-list .item .patient-text[data-v-2e47ba2c]{font-size:%?24?%;font-family:PingFang SC;font-weight:500;color:#999;margin-bottom:%?24?%}.content .consu-list .item .ask-time[data-v-2e47ba2c]{font-size:%?24?%;font-family:PingFang SC;font-weight:500;color:#999;line-height:1}.content .consu-list .item .bottom-box[data-v-2e47ba2c]{height:%?80?%;display:flex;align-items:center;justify-content:space-between}.content .consu-list .item .bottom-box .amount-paid[data-v-2e47ba2c]{display:flex;align-items:center}.content .consu-list .item .bottom-box .amount-paid .label[data-v-2e47ba2c]{font-size:%?24?%;font-family:PingFang SC;font-weight:500;color:#999;line-height:1}.content .consu-list .item .bottom-box .amount-paid .price-box[data-v-2e47ba2c]{display:flex;align-items:flex-end}.content .consu-list .item .bottom-box .amount-paid .price-box .unit[data-v-2e47ba2c]{font-size:%?24?%;font-family:PingFang SC;font-weight:500;color:#f63;line-height:1.2;margin-right:%?4?%}.content .consu-list .item .bottom-box .amount-paid .price-box .num[data-v-2e47ba2c]{font-size:%?32?%;font-family:PingFang SC;font-weight:700;color:#f63;line-height:1}.content .consu-list .item .bottom-box .btn-box[data-v-2e47ba2c]{box-sizing:border-box;display:flex;align-items:center}.content .consu-list .item .bottom-box .btn-box .btn[data-v-2e47ba2c]{width:%?155?%;height:%?64?%;line-height:%?64?%;font-size:%?26?%;font-family:PingFang SC;font-weight:500;text-align:center;border-radius:%?32?%;margin-left:%?15?%}.content .consu-list .item .bottom-box .btn-box .btn[data-v-2e47ba2c]:first-child{margin-left:0}.content .consu-list .item .bottom-box .btn-box .btn.cancel[data-v-2e47ba2c]{border:1px solid #ddd;color:#666}.content .consu-list .item .bottom-box .btn-box .btn.pay[data-v-2e47ba2c]{background:#2bc7b9;color:#fff}",""]),t.exports=e}}]);