post_after_sale.js 3.9 KB

1
  1. require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle/pages/post_after_sale/post_after_sale"],{1992:function(e,t,n){"use strict";n.r(t);var o=n("6510"),i=n("9ea8");for(var u in i)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(u);n("1cc1");var a=n("828b"),r=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports},"1cc1":function(e,t,n){"use strict";var o=n("9b1d"),i=n.n(o);i.a},6510:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return o}));var o={uImage:function(){return n.e("components/uview-ui/components/u-image/u-image").then(n.bind(null,"566d"))},uIcon:function(){return n.e("components/uview-ui/components/u-icon/u-icon").then(n.bind(null,"1340"))},price:function(){return n.e("components/price/price").then(n.bind(null,"1266"))},uploader:function(){return n.e("components/uploader/uploader").then(n.bind(null,"2745"))},uPopup:function(){return n.e("components/uview-ui/components/u-popup/u-popup").then(n.bind(null,"002f"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,0!=e.refund_method?Number(e.goodsData.total_pay_price).toFixed(2):null);e._isMounted||(e.e0=function(t){e.showPop=!0},e.e1=function(t){e.showPop=!1}),e.$mp.data=Object.assign({},{$root:{g0:n}})},u=[]},"9b1d":function(e,t,n){e.exports={red_theme:"#FF2C3C",orange_theme:"#f7971e",pink_theme:"#fa444d",gold_theme:"#e0a356",blue_theme:"#2f80ed",green_theme:"#2ec840"}},"9ea8":function(e,t,n){"use strict";n.r(t);var o=n("dd8e"),i=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=i.a},dd8e:function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n("7eb4")),u=o(n("ee10")),a=n("0669"),r=n("7398"),d={data:function(){return{noticeList:["订单所产生的运费,如已经发货的订单平台是不予退回的,请谨慎操作!"],id:1,current:0,refund_method:0,showPop:!1,reasonIndex:"请选择退款原因",remark:"",fileList:[],goodsData:{goods_name:"哈比树儿童滑滑梯室内汽车滑梯家用玩具宝宝小型秋千组合游乐园",goods_image:"https://img0.baidu.com/it/u=2635130093,4202492912&amp;fm=26&amp;fmt=auto&amp;gp=0.jpg",spec_value_str:"红色,L码"},isLoading:!1}},onLoad:function(){var e=this.$Route.query;this.id=e.id,this.getAfterSaleGoods()},methods:{getAfterSaleGoods:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";""!=n&&(this.refund_method=n),1==this.refund_method&&e.setNavigationBarTitle({title:"仅退款"}),2==this.refund_method&&e.setNavigationBarTitle({title:"退货退款"}),(0,a.apiAfterSaleGoods)({order_goods_id:this.id,refund_method:n}).then((function(e){t.goodsData=e}))},radioChange:function(e){this.reasonIndex=this.goodsData.reason[e.detail.value]},applyRefundFun:function(){var t=this;if("请选择退款原因"==this.reasonIndex)return this.$toast({title:"请选择退款原因"});this.isLoading=!0,(0,a.apiAfterSalePost)({refund_remark:this.remark,refund_method:this.refund_method,refund_reason:this.reasonIndex,order_goods_id:this.id,voucher:this.fileList}).then((function(t){e.redirectTo({url:"/bundle/pages/after_sale/after_sale"})})).finally((function(){t.isLoading=!1}))}},onShow:function(){var e=this;return(0,u.default)(i.default.mark((function t(){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.applyRefundFun=(0,r.debounce)(e.applyRefundFun,500,e);case 1:case"end":return t.stop()}}),t)})))()}};t.default=d}).call(this,n("df3c")["default"])},deae:function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("b46f");o(n("3240"));var i=o(n("1992"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["deae","common/runtime","common/vendor"]]]);