(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesMall/refund/apply"],{"0cc4":function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("aa6c");r(n("3240"));var o=r(n("7aec"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"47c0":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement;this._self._c},o=[]},5886:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("7ca3")),a=n("8f59");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var i={data:function(){return{loadEnd:!1,reasonList:[{id:1,name:"产品存在质量问题"},{id:2,name:"产品实物与描述不符"},{id:3,name:"卖家的发货环节出现问题"},{id:4,name:"卖家存在延迟发货问题"}],selectReason:null,formData:{order_id:"",refund_reason:"",refund_content:""}}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,a.mapState)({themeColor:function(e){return e.app.themeColor}})),onLoad:function(e){var t=this;this.formData.order_id=e.id,this.$nextTick((function(){t.loadEnd=!0}))},methods:{changeReason:function(e){this.selectReason=e,this.formData.refund_reason=this.reasonList[e].name},handleSubmit:function(){this.formData.refund_reason||this.formData.refund_content?(e.showLoading({title:"加载中",mask:!0}),this.$util.request("mall.orderRefund",this.formData).then((function(t){e.hideLoading(),1==t.code?e.redirectTo({url:"/pagesMall/refund/success"}):e.showToast({title:t.msg,icon:"none",duration:2e3})})).catch((function(t){e.hideLoading(),console.error("提交退款申请",t)}))):e.showToast({title:"请选择退款原因或填写退款描述",icon:"none",duration:2e3})}}};t.default=i}).call(this,n("df3c")["default"])},"6bee":function(e,t,n){},"7aec":function(e,t,n){"use strict";n.r(t);var r=n("47c0"),o=n("cbdc");for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("81c3");var c=n("828b"),i=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=i.exports},"81c3":function(e,t,n){"use strict";var r=n("6bee"),o=n.n(r);o.a},cbdc:function(e,t,n){"use strict";n.r(t);var r=n("5886"),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a}},[["0cc4","common/runtime","common/vendor"]]]);