(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-refund-apply"],{"064b":function(e,t,a){var i=a("5418");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("9a334dd0",i,!0,{sourceMap:!1,shadowMode:!1})},"06a7":function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return i}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.isLoading?e._e():a("v-uni-view",{staticClass:"container"},[a("v-uni-view",{staticClass:"goods-detail b-f dis-flex flex-dir-row"},[a("v-uni-view",{staticClass:"left"},[a("v-uni-image",{staticClass:"goods-image",attrs:{src:e.goods.goods_image}})],1),a("v-uni-view",{staticClass:"right dis-flex flex-box flex-dir-column flex-x-around"},[a("v-uni-view",{staticClass:"goods-name"},[a("v-uni-text",{staticClass:"twolist-hidden"},[e._v(e._s(e.goods.goods_name))])],1),a("v-uni-view",{staticClass:"dis-flex col-9 f-24"},[a("v-uni-view",{staticClass:"flex-box"},[a("v-uni-view",{staticClass:"goods-props clearfix"},e._l(e.goods.goods_props,(function(t,i){return a("v-uni-view",{key:i,staticClass:"goods-props-item"},[a("v-uni-text",[e._v(e._s(t.value.name))])],1)})),1)],1),a("v-uni-text",{staticClass:"t-r"},[e._v("×"+e._s(e.goods.total_num))])],1)],1)],1),a("v-uni-view",{staticClass:"row-service b-f m-top20"},[a("v-uni-view",{staticClass:"row-title"},[e._v("服务类型")]),a("v-uni-view",{staticClass:"service-switch dis-flex"},e._l(e.RefundTypeEnum.data,(function(t,i){return a("v-uni-view",{key:i,staticClass:"switch-item",class:{active:e.formData.type==t.value},on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.onSwitchService(t.value)}}},[e._v(e._s(t.name))])})),1)],1),a("v-uni-view",{staticClass:"row-textarea b-f m-top20"},[a("v-uni-view",{staticClass:"row-title"},[e._v("申请原因")]),a("v-uni-view",{staticClass:"content"},[a("v-uni-textarea",{staticClass:"textarea",attrs:{maxlength:"2000",placeholder:"请详细填写申请原因,注意保持商品的完好,建议您先与卖家沟通",placeholderStyle:"color:#ccc"},model:{value:e.formData.content,callback:function(t){e.$set(e.formData,"content",t)},expression:"formData.content"}})],1)],1),e.formData.type==e.RefundTypeEnum.RETURN.value?a("v-uni-view",{staticClass:"row-money b-f m-top20 dis-flex"},[a("v-uni-view",{staticClass:"row-title"},[e._v("退款金额")]),a("v-uni-view",{staticClass:"money col-m"},[e._v("¥"+e._s(e.goods.total_pay_price))])],1):e._e(),a("v-uni-view",{staticClass:"row-voucher b-f m-top20"},[a("v-uni-view",{staticClass:"row-title"},[e._v("上传凭证 (最多6张)")]),a("v-uni-view",{staticClass:"image-list"},[e._l(e.imageList,(function(t,i){return a("v-uni-view",{key:i,staticClass:"image-preview"},[a("v-uni-text",{staticClass:"image-delete iconfont icon-shanchu",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteImage(i)}}}),a("v-uni-image",{staticClass:"image",attrs:{mode:"aspectFill",src:t.path}})],1)})),e.imageList.length0?e.uploadFile().then((function(){return e.onSubmit()})).catch((function(t){e.disabled=!1,0!==t.statusCode&&e.$toast(t.errMsg),console.log("err",t)})):e.onSubmit()},onSubmit:function(){var e=this;r.apply(e.orderGoodsId,e.formData).then((function(t){e.$toast(t.message),setTimeout((function(){e.disabled=!1,uni.navigateBack()}),1500)})).catch((function(t){return e.disabled=!1}))},uploadFile:function(){var e=this,t=e.imageList;return new Promise((function(a,i){t.length>0?o.image(t).then((function(t){e.formData.images=t,a(t)})).catch((function(e){return i(e)})):a()}))}}};t.default=s},8673:function(e,t,a){"use strict";var i=a("4ea4");a("d81d"),a("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.image=void 0;var n=i(a("2827")),o=function(e){var t=2097152;return new Promise((function(a,i){n.default.urlFileUpload({files:e,maxSize:t}).then((function(e){var t=e.map((function(e){return e.data.fileInfo.file_id}));a(t,e)})).catch((function(e){return i(e)}))}))};t.image=o},ce19:function(e,t,a){"use strict";var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuditStatusEnum",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"RefundStatusEnum",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"RefundTypeEnum",{enumerable:!0,get:function(){return r.default}});var n=i(a("e32c")),o=i(a("48d8")),r=i(a("5240"))},d9ba:function(e,t,a){"use strict";var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.delivery=t.detail=t.apply=t.goods=t.list=void 0;var n=i(a("5530")),o=i(a("2827")),r={list:"refund/list",goods:"refund/goods",apply:"refund/apply",detail:"refund/detail",delivery:"refund/delivery"},d=function(e,t){return o.default.get(r.list,e,t)};t.list=d;var s=function(e,t){return o.default.get(r.goods,(0,n.default)({orderGoodsId:e},t))};t.goods=s;var u=function(e,t){return o.default.post(r.apply,{orderGoodsId:e,form:t})};t.apply=u;var l=function(e,t){return o.default.get(r.detail,(0,n.default)({orderRefundId:e},t))};t.detail=l;var c=function(e,t){return o.default.post(r.delivery,{orderRefundId:e,form:t})};t.delivery=c},e32c:function(e,t,a){"use strict";var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("e643")),o=new n.default([{key:"WAIT",name:"待审核",value:0},{key:"REVIEWED",name:"已同意",value:10},{key:"REJECTED",name:"已拒绝",value:20}]);t.default=o},e643:function(e,t,a){"use strict";var i=a("4ea4");a("c975"),a("d81d"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("d4ec")),o=i(a("bee2")),r=function(){function e(t){var a=this;(0,n.default)(this,e);var i=[],o=[];if(!Array.isArray(t))throw new Error("param is not an array!");t.map((function(e){e.key&&e.name&&(i.push(e.key),o.push(e.value),a[e.key]=e,e.key!==e.value&&(a[e.value]=e))})),this.data=t,this.keyArr=i,this.valueArr=o}return(0,o.default)(e,[{key:"keyOf",value:function(e){return this.data[this.keyArr.indexOf(e)]}},{key:"valueOf",value:function(e){return this.data[this.valueArr.indexOf(e)]}},{key:"getNameByKey",value:function(e){var t=this.keyOf(e);if(!t)throw new Error("No enum constant"+e);return t.name}},{key:"getNameByValue",value:function(e){var t=this.valueOf(e);if(!t)throw new Error("No enum constant"+e);return t.name}},{key:"getValueByKey",value:function(e){var t=this.keyOf(e);if(!t)throw new Error("No enum constant"+e);return t.key}},{key:"getData",value:function(){return this.data}}]),e}(),d=r;t.default=d}}]);