text: (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/refund_detail/refund_detail"],{"31ab":function(e,t,o){"use strict";(function(e){o("6b76");i(o("66fd"));var t=i(o("c4af"));function i(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,o("543d")["createPage"])},"4aeb":function(e,t,o){"use strict";var i={loadingCover:function(){return o.e("components/loading-cover/loading-cover").then(o.bind(null,"cd2f"))},nsShowToast:function(){return Promise.all([o.e("common/vendor"),o.e("components/ns-show-toast/ns-show-toast")]).then(o.bind(null,"f505"))}},n=function(){var e=this,t=e.$createElement,o=(e._self._c,e.$util.img(e.detail.sku_image,{size:"mid"})),i=e.$lang("common.currencySymbol"),n=e.$lang("common.currencySymbol"),r=e.$util.timeStampTurnTime(e.detail.refund_action_time),d=e.$util.timeStampTurnTime(e.detail.refund_time),a=e.__map(e.detail.refund_log_list,(function(t,o){var i=e.$util.timeStampTurnTime(t.action_time);return{$orig:e.__get_orig(t),g3:i}}));e._isMounted||(e.e0=function(t){return e.$util.copy(e.detail.shop_address)}),e.$mp.data=Object.assign({},{$root:{g0:o,m0:i,m1:n,g1:r,g2:d,l0:a}})},r=[];o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){return i}))},"52eb":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=d(o("862b")),n=d(o("18e3")),r=d(o("4c22"));function d(e){return e&&e.__esModule?e:{default:e}}var a=function(){Promise.all([o.e("common/vendor"),o.e("components/ns-show-toast/ns-show-toast")]).then(function(){return resolve(o("f505"))}.bind(null,o)).catch(o.oe)},s={data:function(){return{order_goods_id:"",detail:{refund_action:[]},isIphoneX:!1,action:"",formData:{refund_delivery_name:"",refund_delivery_no:"",refund_delivery_remark:""},isSub:!1}},components:{nsShowToast:a},mixins:[i.default,r.default],onLoad:function(e){e.order_goods_id&&(this.order_goods_id=e.order_goods_id),e.action&&(this.action=e.action),this.isIphoneX=this.$util.uniappIsIPhoneX()},onShow:function(){this.$langConfig.refresh(),e.getStorageSync("token")?this.getRefundDetail():this.$util.redirectTo("/pages/login/login/login",{back:"/pages/order/refund_detail/refund_detail?order_goods_id="+this.order_goods_id})},methods:{getRefundDetail:function(){var e=this;this.$api.sendRequest({url:"/api/orderrefund/detail",data:{order_goods_id:this.order_goods_id},success:function(t){t.code>=0?(e.detail=t.data,e.$refs.loadingCover&&e.$refs.loadingCover.hide()):(e.$util.showToast({title:"未获取到该订单项退款信息"}),setTimeout((function(){e.$util.redirectTo("/pages/order/list/list")}),1e3))},fail:function(t){e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},refundAction:function(e){var t=this;switch(e){case"orderRefundCancel":this.cancleRefund(this.detail.order_goods_id,(function(e){e.code>=0&&(t.$util.showToast({title:"撤销成功"}),setTimeout((function(){t.$util.redirectTo("/pages/order/list/list")}),1e3))}));break;case"orderRefundDelivery":this.action="returngoods";break;case"orderRefundAsk":this.$util.redirectTo("/pages/order/refund/refund",{order_goods_id:this.detail.order_goods_id});break}},refurnGoods:function(){var e=this,t=[{name:"refund_delivery_name",checkType:"required",errorMsg:"请输入物流公司"},{name:"refund_delivery_no",checkType:"required",errorMsg:"请输入物流单号"}];this.formData.order_goods_id=this.order_goods_id;var o=n.default.check(this.formData,t);if(!o)return this.$util.showToast({title:n.default.error}),!1;this.isSub||(this.isSub=!0,this.$api.sendRequest({url:"/api/orderrefund/delivery",data:this.formData,success:function(t){0==t.code?(e.action="",e.getRefundDetail()):e.$util.showToast({title:t.message})}}))},switchAction:function(e){this.action=e},imageError:function(){this.detail.sku_image=this.$util.getDefaultImage().default_goods_img,this.$forceUpdate()}}};t.default=s}).call(this,o("543d")["default"])},a785:function(e,t,o){"use strict";var i=o("ba3d"),n=o.n(i);n.a},ba3d:function(e,t,o){},c4af:function(e,t,o){"use strict";o.r(t);var i=o("4aeb"),n=o("f947");for(var r in n)"default"!==r&&function(e){o.d(t,e,(function(){return n[e]}))}(r);o("a785");var d,a=o("f0c5"),s=Object(a["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],d);t["default"]=s.exports},f947:function(e,t,o){"use strict";o.r(t);var i=o("52eb"),n=o.n(i);for(var r in i)"default"!==r&&function(e){o.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a}},[["31ab","common/runtime","common/vendor"]]]);