(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-refund-apply"],{"0955":function(e,t,a){"use strict";a.r(t);var i=a("77f3"),n=a.n(i);for(var o in i)"default"!==o&&function(e){a.d(t,e,(function(){return i[e]}))}(o);t["default"]=n.a},"26a1":function(e,t,a){"use strict";var i=a("3892"),n=a.n(i);n.a},3892:function(e,t,a){var i=a("84c9");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("491a0b74",i,!0,{sourceMap:!1,shadowMode:!1})},"48d8":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:"NORMAL",name:"进行中",value:0},{key:"REJECTED",name:"已拒绝",value:10},{key:"COMPLETED",name:"已完成",value:20},{key:"CANCELLED",name:"已取消",value:30}]);t.default=o},5240: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:"RETURN",name:"退货退款",value:10},{key:"EXCHANGE",name:"换货",value:20}]);t.default=o},"704f":function(e,t,a){"use strict";a.r(t);var i=a("79e1"),n=a("0955");for(var o in n)"default"!==o&&function(e){a.d(t,e,(function(){return n[e]}))}(o);a("26a1");var r,s=a("f0c5"),d=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"5b623f6b",null,!1,i["a"],r);t["default"]=d.exports},"77f3":function(e,t,a){"use strict";var i=a("dbce");a("99af"),a("a434"),a("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a("ce19"),o=i(a("8673")),r=i(a("d9ba")),s=6,d={data:function(){return{RefundTypeEnum:n.RefundTypeEnum,isLoading:!0,orderGoodsId:null,goods:{},formData:{images:[],type:10,content:""},imageList:[],maxImageLength:s,disabled:!1}},onLoad:function(e){var t=e.orderGoodsId;this.orderGoodsId=t,this.getGoodsDetail()},methods:{getGoodsDetail:function(){var e=this;e.isLoading=!0,r.goods(e.orderGoodsId).then((function(t){e.goods=t.data.goods,e.isLoading=!1}))},onSwitchService:function(e){this.formData.type=e},chooseImage:function(){var e=this,t=e.imageList;uni.chooseImage({count:s-t.length,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(a){var i=a.tempFiles;e.imageList=t.concat(i)}})},deleteImage:function(e){this.imageList.splice(e,1)},handleSubmit:function(){var e=this,t=e.imageList;if(!0===e.disabled)return!1;e.disabled=!0,t.length>0?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(i):a()}))}}};t.default=d},"79e1":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.length