pages-doctor-paymentOrder.44d286f8.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-doctor-paymentOrder"],{"10e6":function(t,e,n){"use strict";var i=n("86fe"),r=n.n(i);r.a},1489:function(t,e,n){"use strict";n.r(e);var i=n("e5b7"),r=n("cf06");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("10e6");var a,c=n("f0c5"),s=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,"3234eb82",null,!1,i["a"],a);e["default"]=s.exports},2292:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAAAXNSR0IArs4c6QAABWJJREFUWEfVmXtQVGUYxp+zLO0uF4FZjJBgucslwJoCccX8A7zNpFmkDuRMAV3IyULTyS7abbyN4AXQGuwyDjhjyUI1TgUISiMMUuFYwNhUcm1dBAxa2QvsnuY7BEK7e875lomR768dzvO87+985+P9bgymNHmNPJVh8QzALgHgB8Bt6vNZ+D0CBn0A08xa8ZVxzPgF1sA0kZfhfnwNN4VcdgrAk7MAJD4Fgw7WwmQbVxpriYmDVVTLzt51oHdeaZRh2A0jqeZKZvzTs9XiX3f2lSwwJLG4RDOKankZwGbMPgJdRoZl9jGKalkHABWddfbVDNBGYEcBSGc/PXVGM4FlqW1TDG4ubkhVpmGpz1LEe8QjSB4Eb1cfTjE8NgydWYdW/S9o/KsBVQNV0Jl0TqdzGjbSfSHyVHnYeN8myCVyUQBWWFHV/x2OdR3DhcE6UZ6pImpYT6kn3g//ANkBOXBhXKgTThjqBmuxpX0LOgzXRceggo33jMeZhM+hkgeLTsAn1Fv0yG17AeW6clHxRMOqfdTQLKqEp4unqMA0op2/7kBRV6GgRRRstEcM6h6+gHnSeYIBnRGYWTOWNC1Gm76N1y4IK5PIcCmpETHuMc5w8HqGxoZwsrcEx7uKoTVpBeMLwu4I2Yl3w94TDEQj6DH1cIAEVD+m56zKe5RI93sKH3V/6DAUL6x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0u/ue7DxyqExGE2b8RhGpm0B/r1hfA5gkwDcS67IZlBpnLUaAO6WsYllUGJMNdZMBPoH9z35q9ZiQa4AAAAASUVORK5CYII="},"5aaa":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("df92"),r={data:function(){return{payLimitTime:null,order:null,wxPay:!0}},onLoad:function(t){this.orderId=JSON.parse(t.orderId),this.getDoctorOrderDetail()},methods:{copyOrderSn:function(t){uni.setClipboardData({data:t,success:function(){uni.showToast({title:"内容已成功复制到剪切板",icon:"none"})}})},getDoctorOrderDetail:function(){var e={orderId:this.orderId},n=this;uni.showLoading(),(0,i.getDoctorOrderDetail)(e).then((function(e){200==e.code?(t.log(e),uni.hideLoading(),n.order=e.order):uni.showToast({icon:"none",title:e.msg})}),(function(t){}))},payOrder:function(){var e={orderId:this.order.orderId},n=this;uni.showLoading(),(0,i.pay)(e).then((function(e){200==e.code?uni.requestPayment({provider:"wxpay",timeStamp:e.result.timeStamp,nonceStr:e.result.nonceStr,package:e.result.packageValue,signType:e.result.signType,paySign:e.result.paySign,success:function(t){uni.hideLoading(),uni.redirectTo({url:"./doctorOrderIM?orderId="+n.order.orderId})},fail:function(e){t.log("fail:"+JSON.stringify(e)),uni.hideLoading()}}):uni.showToast({icon:"none",title:e.msg})}),(function(t){}))}}};e.default=r}).call(this,n("5a52")["default"])},"86fe":function(t,e,n){var i=n("f4cd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("4ae1394d",i,!0,{sourceMap:!1,shadowMode:!1})},cf06:function(t,e,n){"use strict";n.r(e);var i=n("5aaa"),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},df92:function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getDepartmentList=a,e.getDoctorList=c,e.getDoctorCase=s,e.getMyDoctorOrderList=d,e.getDoctorDetail=l,e.getDoctorOrderDetail=u,e.create=f,e.pay=p,e.cancelOrder=g,e.pingOrder=v,e.getImOrderDetail=b;var r=i(n("9bb2")),o=(new r.default).http;function a(t){return o("/app/doctorOrder/getDepartmentList",t,"GET")}function c(t){return o("/app/doctorOrder/getDoctorList",t,"GET")}function s(t){return o("/app/doctorOrder/getDoctorCase",t,"GET")}function d(t){return o("/app/doctorOrder/getMyDoctorOrderList",t,"GET")}function l(t){return o("/app/doctorOrder/getDoctorDetail",t,"GET")}function u(t){return o("/app/doctorOrder/getDoctorOrderDetail",t,"GET")}function f(t){return o("/app/doctorOrder/create",t,"POST","application/json;charset=UTF-8")}function p(t){return o("/app/doctorOrder/pay",t,"POST","application/json;charset=UTF-8")}function g(t){return o("/app/doctorOrder/cancelOrder",t,"POST","application/json;charset=UTF-8")}function v(t){return o("/app/doctorOrder/pingOrder",t,"POST","application/json;charset=UTF-8")}function b(t){return o("/app/doctorOrder/getImOrderDetail",t,"GET")}},e5b7:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"inner"},[i("v-uni-view",{staticClass:"time-price"},[i("v-uni-text",{staticClass:"time"},[t._v("订单金额")]),i("v-uni-view",{staticClass:"price-box"},[i("v-uni-text",{staticClass:"unit"},[t._v("¥")]),i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.order.payMoney))])],1)],1),i("v-uni-view",{staticClass:"pay-type"},[i("v-uni-view",{staticClass:"title"},[t._v("支付方式")]),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-image",{attrs:{src:n("2292"),mode:""}}),i("v-uni-text",{staticClass:"text"},[t._v("微信支付")])],1),i("v-uni-label",[i("v-uni-checkbox",{attrs:{disabled:!0,value:"",checked:t.wxPay}})],1)],1)],1),i("v-uni-view",{staticClass:"order-info"},[i("v-uni-view",{staticClass:"title"},[t._v("订单信息")]),i("v-uni-view",{staticClass:"item"},[i("v-uni-text",{staticClass:"label"},[t._v("订单编号")]),i("v-uni-view",{staticClass:"sn-box"},[i("v-uni-text",{staticClass:"text"},[t._v(t._s(t.order.orderSn))]),i("v-uni-view",{staticClass:"copy-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.copyOrderSn(t.order.orderSn)}}},[t._v("复制")])],1)],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-text",{staticClass:"label"},[t._v("下单时间")]),i("v-uni-text",{staticClass:"text"},[t._v(t._s(t.order.createTime))])],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-text",{staticClass:"label"},[t._v("支付方式")]),i("v-uni-text",{staticClass:"text"},[t._v("微信支付")])],1)],1)],1),i("v-uni-view",{staticClass:"btn-box"},[i("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.payOrder()}}},[t._v("去支付")])],1)],1)},o=[]},f4cd: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-3234eb82]{height:100%}.content[data-v-3234eb82]{height:100%;display:flex;flex-direction:column;justify-content:space-between}.content .inner[data-v-3234eb82]{padding:%?20?%}.content .inner .time-price[data-v-3234eb82]{box-sizing:border-box;height:%?200?%;background:#fff;border-radius:%?16?%;display:flex;flex-direction:column;align-items:center;padding-top:%?50?%}.content .inner .time-price .time[data-v-3234eb82]{font-size:%?26?%;font-family:PingFang SC;font-weight:500;color:#999;line-height:1;text-align:center}.content .inner .time-price .price-box[data-v-3234eb82]{display:flex;align-items:flex-end;margin-top:%?28?%}.content .inner .time-price .price-box .unit[data-v-3234eb82]{font-size:%?32?%;font-family:PingFang SC;font-weight:700;color:#f63;line-height:1.3;margin-right:%?10?%}.content .inner .time-price .price-box .num[data-v-3234eb82]{font-size:%?56?%;font-family:PingFang SC;font-weight:700;color:#f63;line-height:1}.content .inner .pay-type[data-v-3234eb82]{box-sizing:border-box;height:%?192?%;background:#fff;border-radius:%?16?%;margin-top:%?20?%;padding:%?40?% %?30?%;display:flex;flex-direction:column;justify-content:space-between}.content .inner .pay-type .title[data-v-3234eb82]{font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#999;line-height:1}.content .inner .pay-type .item[data-v-3234eb82]{display:flex;align-items:center;justify-content:space-between}.content .inner .pay-type .item .left[data-v-3234eb82]{display:flex;align-items:center}.content .inner .pay-type .item .left uni-image[data-v-3234eb82]{width:%?44?%;height:%?44?%;margin-right:%?20?%}.content .inner .pay-type .item .left .text[data-v-3234eb82]{font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#222;line-height:1}.content .inner .order-info[data-v-3234eb82]{margin-top:%?20?%;background:#fff;border-radius:%?16?%;padding:%?40?% %?30?%}.content .inner .order-info .title[data-v-3234eb82]{font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#222;line-height:1}.content .inner .order-info .item[data-v-3234eb82]{margin-top:%?40?%;display:flex;align-items:center;justify-content:space-between}.content .inner .order-info .item .label[data-v-3234eb82]{font-size:%?26?%;font-family:PingFang SC;font-weight:500;color:#666;line-height:1}.content .inner .order-info .item .text[data-v-3234eb82]{font-size:%?26?%;font-family:PingFang SC;font-weight:500;color:#222;line-height:%?32?%}.content .inner .order-info .item .cont-text[data-v-3234eb82]{font-size:%?26?%;font-family:PingFang SC;font-weight:500;color:#666}.content .inner .order-info .item .cont-text .bold[data-v-3234eb82]{color:#111}.content .inner .order-info .item .sn-box[data-v-3234eb82]{display:flex;align-items:center}.content .inner .order-info .item .sn-box .copy-btn[data-v-3234eb82]{width:%?58?%;height:%?32?%;line-height:%?32?%;text-align:center;font-size:%?22?%;font-family:PingFang SC;font-weight:500;color:#222;background:#f5f5f5;border-radius:%?4?%;margin-left:%?24?%}.content .inner .order-info .line[data-v-3234eb82]{width:100%;height:1px;background:#f0f0f0;margin-top:%?30?%}.content .btn-box[data-v-3234eb82]{height:%?121?%;background:#fff;display:flex;align-items:center;justify-content:center}.content .btn-box .btn[data-v-3234eb82]{width:91.73%;height:%?88?%;line-height:%?88?%;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#fff;text-align:center;background:#2bc7b9;border-radius:%?44?%}',""]),t.exports=e}}]);