(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/pages/after-sale/after-sale"],{361:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var r=o(t(362));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},362:function(n,e,t){"use strict";t.r(e);var o=t(363),r=t(365);for(var i in r)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(i);t(367),t(369);var a,d=t(32),c=Object(d["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"712c7d60",null,!1,o["components"],a);c.options.__file="pagesA/pages/after-sale/after-sale.vue",e["default"]=c.exports},363:function(n,e,t){"use strict";t.r(e);var o=t(364);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},364:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return a})),t.d(e,"recyclableRender",(function(){return i})),t.d(e,"components",(function(){return o}));var r=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,r=n.goods?n._f("cancelPrice")(n.goods):null;n.$mp.data=Object.assign({},{$root:{f0:t,f1:o,f2:r}})},i=!1,a=[];r._withStripped=!0},365:function(n,e,t){"use strict";t.r(e);var o=t(366),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=r.a},366:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;t(64);var o=t(71),r={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=r}).call(this,t(2)["default"])},367:function(n,e,t){"use strict";t.r(e);var o=t(368),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=r.a},368:function(n,e,t){},369:function(n,e,t){"use strict";t.r(e);var o=t(370),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=r.a},370:function(n,e,t){}},[[361,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pagesA/pages/after-sale/after-sale.js.map