| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order-detail/order-detail"],{"0b1b":function(o,e,r){"use strict";r.r(e);var n=r("4714"),t=r("b9d9");for(var i in t)["default"].indexOf(i)<0&&function(o){r.d(e,o,(function(){return t[o]}))}(i);r("6a38");var d=r("828b"),u=Object(d["a"])(t["default"],n["b"],n["c"],!1,null,"004a1e4c",null,!1,n["a"],void 0);e["default"]=u.exports},4714:function(o,e,r){"use strict";r.d(e,"b",(function(){return t})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return n}));var n={axBody:function(){return r.e("components/ax-body/ax-body").then(r.bind(null,"8839"))}},t=function(){var o=this,e=o.$createElement,r=(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,i=o.getOrderStatus(o.orderInfo.status),d=(o.orderInfo.discountMoney+o.orderInfo.firmPrice+o.orderInfo.couponPrice+o.orderInfo.realCost).toFixed(4)||"0.0000",u=o.orderInfo.discountMoney&&o.orderInfo.discountMoney?o.orderInfo.discountMoney.toFixed(4):null,a=o.orderInfo.firmPrice&&o.orderInfo.firmPrice?o.orderInfo.firmPrice.toFixed(4):null,c=o.orderInfo.couponPrice&&o.orderInfo.couponPrice?o.orderInfo.couponPrice.toFixed(4):null,f=o.orderInfo.realCost?o.orderInfo.realCost.toFixed(4):null;o._isMounted||(o.e0=function(e){return o.$app.url.goto("/pages/coupon-buy/coupon-buy")}),o.$mp.data=Object.assign({},{$root:{m0:r,g0:n,g1:t,m1:i,g2:d,g3:u,g4:a,g5:c,g6:f}})},i=[]},"6a38":function(o,e,r){"use strict";var n=r("e1e2"),t=r.n(n);t.a},"6efc":function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLoad:function(o){console.log("启动充值页面的参数:",o),this.getOrderInfo(o.orderId)},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 e=this;this.$api.base("post","/chargeApi/queryIsSuccessStop",{id:o},{}).then((function(o){console.log("订单详情:",o),e.orderInfo=o.obj.orderInfo,e.deviceInfo=o.obj.deviceInfo}))},splitTime:function(o,e){if(o)return o.split(" ")[e]},getOrderStatus:function(o){var e="";switch(o){case 0:e="待启动";break;case 1:e="充电中";break;case 2:e="结算中";break;case 3:e="已完成";break;case 5:e="未成功充电";break}return e}}};e.default=n},8683:function(o,e,r){"use strict";(function(o,e){var n=r("47a9");r("2acb");n(r("3240"));var t=n(r("0b1b"));o.__webpack_require_UNI_MP_PLUGIN__=r,e(t.default)}).call(this,r("3223")["default"],r("df3c")["createPage"])},b9d9:function(o,e,r){"use strict";r.r(e);var n=r("6efc"),t=r.n(n);for(var i in n)["default"].indexOf(i)<0&&function(o){r.d(e,o,(function(){return n[o]}))}(i);e["default"]=t.a},e1e2:function(o,e,r){}},[["8683","common/runtime","common/vendor"]]]);
|