(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subPackages/order/order-detail/order-detail"],{"41ba":function(o,r,e){},"4b30":function(o,r,e){"use strict";(function(o,r){var n=e("47a9");e("5449");n(e("3240"));var t=n(e("f711"));o.__webpack_require_UNI_MP_PLUGIN__=e,r(t.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"55b7":function(o,r,e){"use strict";e.r(r);var n=e("c726"),t=e.n(n);for(var a in n)["default"].indexOf(a)<0&&function(o){e.d(r,o,(function(){return n[o]}))}(a);r["default"]=t.a},c726:function(o,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={onLoad:function(o){console.log("启动充值页面的参数：",o),this.getOrderInfo(o.chargeOrderNo)},data:function(){return{orderInfo:{id:1},deviceInfo:{}}},methods:{getStopType:function(){var o="用户主动终止";return this.orderInfo.stopType&&(1==this.orderInfo.stopType?o="用户主动终止":2==this.orderInfo.stopType&&(o="充电桩主动终止")),o},clcaServicePrice:function(){var o=this.orderInfo.realCost-this.orderInfo.thirdPartyElecfee;return this.orderInfo.discountMoney&&(o+=this.orderInfo.discountMoney),o?o.toFixed(4):"0.0000"},getOrderInfo:function(o){var r=this;this.$api.base("get","/applet/v1/charge/queryOrder/".concat(o),{},{}).then((function(o){console.log("订单详情：",o),r.orderInfo=o.data}))},splitTime:function(o,r){if(o)return o.split(" ")[r]},formatDuration:function(o){if(!o||o<0)return"0分钟";var r=Math.floor(o/3600),e=Math.floor(o%3600/60);return r>0?"".concat(r,"小时").concat(e,"分钟"):"".concat(e,"分钟")},getOrderStatus:function(o){var r="";switch(o){case 0:r="待启动";break;case 1:r="充电中";break;case 2:r="结算中";break;case 3:r="已完成";break;case 5:r="未成功充电";break}return r}}};r.default=n},dc53:function(o,r,e){"use strict";e.d(r,"b",(function(){return t})),e.d(r,"c",(function(){return a})),e.d(r,"a",(function(){return n}));var n={axBody:function(){return e.e("components/ax-body/ax-body").then(e.bind(null,"23fc"))}},t=function(){var o=this,r=o.$createElement,e=(o._self._c,o.getStopType()),n=0!=o.orderInfo.maspStatus&&1===o.orderInfo.maspStatus?(o.orderInfo.maspAmount+o.orderInfo.maspRealAmount).toFixed(2)||"0":null,t=0!=o.orderInfo.maspStatus&&1!==o.orderInfo.maspStatus&&2===o.orderInfo.maspStatus?(o.orderInfo.maspAmount+o.orderInfo.maspRealAmount).toFixed(2):null,a=o.getOrderStatus(o.orderInfo.status),u=o.formatDuration(o.orderInfo.chargeTime)||"--",c=o.orderInfo.discountMoney&&o.orderInfo.discountMoney?o.orderInfo.discountMoney.toFixed(4):null,i=o.orderInfo.firmPrice&&o.orderInfo.firmPrice?o.orderInfo.firmPrice.toFixed(4):null,d=o.orderInfo.couponPrice&&o.orderInfo.couponPrice?o.orderInfo.couponPrice.toFixed(4):null;o._isMounted||(o.e0=function(r){return o.$app.url.goto("/subPackages/coupon/coupon-buy/coupon-buy")}),o.$mp.data=Object.assign({},{$root:{m0:e,g0:n,g1:t,m1:a,m2:u,g2:c,g3:i,g4:d}})},a=[]},ee9a:function(o,r,e){"use strict";var n=e("41ba"),t=e.n(n);t.a},f711:function(o,r,e){"use strict";e.r(r);var n=e("dc53"),t=e("55b7");for(var a in t)["default"].indexOf(a)<0&&function(o){e.d(r,o,(function(){return t[o]}))}(a);e("ee9a");var u=e("828b"),c=Object(u["a"])(t["default"],n["b"],n["c"],!1,null,"0cc1d062",null,!1,n["a"],void 0);r["default"]=c.exports}},[["4b30","common/runtime","common/vendor"]]]);