(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/pages/after-sale/after-sale"],{"0df7":function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;t("728a");var o=t("057a"),a={data:function(){return{orderInfo:"",goods:"",imgs:"",type:"",remark:"",suceBg:"linear-gradient(315deg, #5fbc23 0%, #85ce52 100%)",failBg:"linear-gradient(45deg, #f86638 0%, #f44545 100%)",auditBg:"linear-gradient(89deg, #ffbf63 0%, #fc8924 100%)",refund_id:""}},onLoad:function(n){this.type=n.type,this.refund_id=n.refund_id,n.refund_id?this.getDetail(n.refund_id):this.getOrder(n.order_no)},filters:{cancelPrice:function(n){var e=0;return n.map((function(n){n.sku.map((function(n){e+=n.num*n.price}))})),e}},methods:{previewImg:function(e,t){n.previewImage({urls:t,current:e})},cancelRefund:function(){var e=this;n.showModal({content:"你确定要取消退货吗?",success:function(t){t.confirm&&(n.showLoading({title:"取消中..."}),(0,o.cancelRefund)({refund_id:e.refund_id}).then((function(e){200==e.code?n.showModal({content:"取消退货成功",showCancel:!1,success:function(e){e.confirm&&n.reLaunch({url:"../refund-manage/refund-manage?status=0"})}}):n.showModal({content:e.data||"取消退货失败",showCancel:!1}),n.hideLoading()})).catch((function(e){n.hideLoading()})))}})},copy:function(e){n.setClipboardData({data:e,success:function(e){n.showToast({title:"复制成功"})},fail:function(){n.showToast({title:"复制失败",icon:"none"})}})},getDetail:function(e){var t=this;n.showLoading({title:"加载中..."}),(0,o.refundOrderDetail)({refund_id:e}).then((function(e){if(200==e.code){t.orderInfo=e.data,t.goods=e.data.goods;var o=e.data.img;o&&(t.imgs=JSON.parse(o))}else n.showModal({content:e.msg||"获取详情失败",showCancel:!1});n.hideLoading()})).catch((function(e){n.hideLoading()}))},getOrder:function(e){var t=this;n.showLoading({title:"加载中..."}),(0,o.orderQuery)({order_no:e}).then((function(e){200==e.code?(t.orderInfo=e.data,t.goods=e.data.goods):n.showModal({content:e.msg||"获取订单详情失败",showCancel:!1}),n.hideLoading()})).catch((function(e){n.hideLoading()}))},skipDetail:function(){n.navigateTo({url:"../order-info/order-info?order_no="+this.info.order_no})}}};e.default=a}).call(this,t("543d")["default"])},"0eac":function(n,e,t){"use strict";t.r(e);var o=t("0df7"),a=t.n(o);for(var i in o)"default"!==i&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=a.a},"26b0":function(n,e,t){"use strict";var o=t("5f61"),a=t.n(o);a.a},"5f61":function(n,e,t){},"66b7":function(n,e,t){},"74b5":function(n,e,t){"use strict";var o;t.d(e,"b",(function(){return a})),t.d(e,"c",(function(){return i})),t.d(e,"a",(function(){return o}));var a=function(){var n=this,e=n.$createElement,t=(n._self._c,n.goods?n._f("cancelPrice")(n.goods):null),o=n.goods?n._f("totalNum")(n.goods):null,a=n.goods?n._f("cancelPrice")(n.goods):null;n.$mp.data=Object.assign({},{$root:{f0:t,f1:o,f2:a}})},i=[]},dd98:function(n,e,t){"use strict";(function(n){t("fdf4");o(t("66fd"));var e=o(t("e08a"));function o(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t("543d")["createPage"])},e08a:function(n,e,t){"use strict";t.r(e);var o=t("74b5"),a=t("0eac");for(var i in a)"default"!==i&&function(n){t.d(e,n,(function(){return a[n]}))}(i);t("26b0"),t("e0b6");var r,d=t("f0c5"),c=Object(d["a"])(a["default"],o["b"],o["c"],!1,null,"23cf8d7c",null,!1,o["a"],r);e["default"]=c.exports},e0b6:function(n,e,t){"use strict";var o=t("66b7"),a=t.n(o);a.a}},[["dd98","common/runtime","common/vendor"]]]);