(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesMall/refund/details"],{"2a07":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},r=[]},"920e":function(t,e,o){"use strict";o.r(e);var n=o("2a07"),r=o("d847");for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);o("c025");var a=o("828b"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=c.exports},c025:function(t,e,o){"use strict";var n=o("ccf8"),r=o.n(n);r.a},ccf8:function(t,e,o){},d707:function(t,e,o){"use strict";(function(t){var n=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(o("7ca3")),i=o("8f59"),a=n(o("f5e9"));function c(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}var l={components:{mallStore:function(){o.e("pagesMall/component/mall/store").then(function(){return resolve(o("9ee2"))}.bind(null,o)).catch(o.oe)}},data:function(){return{loadEnd:!1,orderId:"",orderInfo:{},mallConfig:{},delayer:null}},computed:function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?c(Object(o),!0).forEach((function(e){(0,r.default)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},(0,i.mapState)({themeColor:function(t){return t.app.themeColor},iconClock:function(t){return a.default.svgToUrl("clock",t.app.themeColor)},iconMore:function(t){return a.default.svgToUrl("more",t.app.themeColor)}})),onLoad:function(e){var o=this;t.showLoading({title:"加载中"}),this.orderId=e.id,this.getMallConfig(),this.getOrderDetails((function(){t.hideLoading(),o.loadEnd=!0}))},onShow:function(){this.loadEnd&&this.getOrderDetails()},onUnload:function(){clearTimeout(this.delayer)},methods:{getOrderDetails:function(e){var o=this;this.$util.request("mall.orderDetails",{id:this.orderId}).then((function(n){e&&e(),1==n.code?(o.orderInfo=n.data,o.orderInfo.goods_price=parseFloat(parseFloat(o.orderInfo.total_price)-parseFloat(o.orderInfo.pay_postage||0)).toFixed(2)):t.showToast({title:n.msg,icon:"none"})})).catch((function(t){console.error("获取订单详情",t)}))},getMallConfig:function(){var e=this;this.$util.request("mall.config").then((function(o){1==o.code?e.mallConfig=o.data:t.showToast({title:o.msg,icon:"none"})})).catch((function(t){console.error("获取商城配置",t)}))},handleCancel:function(){var e=this;t.showModal({title:"提示",content:"确定取消退款申请? \n 点击取消退款后取消申请",confirmText:"取消退款",confirmColor:this.themeColor,cancelText:"我再想想",cancelColor:"#999999",success:function(o){o.confirm&&(t.showLoading({title:"加载中",mask:!0}),e.$util.request("mall.cancelRefund",{id:e.orderId}).then((function(o){t.hideLoading(),1==o.code?(t.showToast({title:"取消成功",icon:"success",mask:!0,duration:1500}),e.delayer=setTimeout((function(){t.navigateBack()}),1500)):t.showToast({title:o.msg,icon:"none"})})).catch((function(e){t.hideLoading(),console.error("取消退款",e)})))}})},handleWrite:function(){this.$util.toPage({mode:1,path:"/pagesMall/refund/goods?id="+this.orderId})},toNavigation:function(){this.$util.toPage({mode:7,address:{latitude:this.mallConfig.latitude,longitude:this.mallConfig.longitude,address:this.mallConfig.address}})},onContact:function(){this.$util.toPage({mode:6,phone:this.mallConfig.mobile})}}};e.default=l}).call(this,o("df3c")["default"])},d847:function(t,e,o){"use strict";o.r(e);var n=o("d707"),r=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},e582:function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("aa6c");n(o("3240"));var r=n(o("920e"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(r.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])}},[["e582","common/runtime","common/vendor"]]]);