|
|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-saleAfter-saleAfterApply"],{"0fd0":function(e,t,r){"use strict";var a=r("4ea4");r("99af"),r("7db0"),r("d81d"),r("a434"),r("ac1f"),r("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("96cf");var n=a(r("1da1")),i=a(r("359f")),s=a(r("f196")),u=a(r("1687")),c=r("ed1e"),o=r("c0d4"),l={components:{UiCell:s.default,UiButton:i.default,UiRadioPicker:u.default},data:function(){return{fileList:[],params:{receiveStatus:"",refundReason:"",refundType:this.$Route.query.type,orderProductId:this.$Route.query.id,problemDescribe:"",evidenceImages:null},refundShow:!1,refundSelected:{},refundReasonData:[{label:"7天无理由退款",value:"1"},{label:"不喜欢/效果不满意",value:"2"},{label:"商品不符合描述",value:"3"},{label:"其它原因",value:"4"}],receiveSelected:{},receiveShow:!1,receiveStatusData:[{label:"未收到货",value:"1"},{label:"已收到货",value:"2"}]}},onShow:function(){var e=this;2==this.$Route.query.type?uni.setNavigationBarTitle({title:"申请退货退款"}):uni.setNavigationBarTitle({title:"申请退款"}),this.receiveSelected=this.receiveStatusData.find((function(t){return t.value==e.$Route.query.status}))||{}},methods:{setDefaultParams:function(){},getOssCon:function(){return(0,n.default)(regeneratorRuntime.mark((function e(){var t,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,c.ApiPostGetOssConfig)({configId:"refund-evidence/",serviceName:"mall-trade"});case 2:if(t=e.sent,r=t.error,a=t.result,!r){e.next=8;break}return uni.$u.toast(r.message),e.abrupt("return",!1);case 8:return e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)})))()},upload:function(e){var t=this;return(0,n.default)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return a=e.file[0],r.next=3,t.getOssCon();case 3:if(n=r.sent,n){r.next=6;break}return r.abrupt("return",!1);case 6:uni.uploadFile({name:"file",filePath:a.url,url:n.host,formData:{name:a.name,key:"".concat(n.dir,"${filename}"),policy:n.policy,OSSAccessKeyId:n.accessId,success_action_status:200,signature:n.signature},success:function(e){t.fileList.push({url:"".concat(n.host,"/").concat(n.dir).concat(a.name)})}});case 7:case"end":return r.stop()}}),r)})))()},delImage:function(e){this.fileList.splice(e.index,1)},apply:function(){var e=this;return(0,n.default)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.receiveSelected.value){t.next=3;break}return uni.$u.toast("请选择货物状态"),t.abrupt("return",!1);case 3:if(e.refundSelected.value){t.next=6;break}return uni.$u.toast("请选择退货原因"),t.abrupt("return",!1);case 6:return e.params.receiveStatus=e.receiveSelected.value,e.params.refundReason=e.refundSelected.value,e.fileList.length&&(e.params.evidenceImages=e.fileList.map((function(e){return e.url}))),t.next=11,(0,o.ApiPostApplySaleAfter)(e.params);case 11:if(r=t.sent,a=r.error,n=r.result,!a){t.next=17;break}return uni.$u.toast(a.message),t.abrupt("return",!1);case 17:e.$Router.replace("/saleAfterDetail?id=".concat(n.refundId));case 18:case"end":return t.stop()}}),t)})))()}}};t.default=l},2856:function(e,t,r){var a=r("6ba6");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=r("4f06").default;n("a4d6d596",a,!0,{sourceMap:!1,shadowMode:!1})},"4eb2":function(e,t,r){var a=r("9136");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=r("4f06").default;n("751ff656",a,!0,{sourceMap:!1,shadowMode:!1})},5465:function(e,t,r){"use strict";var a=r("2856"),n=r.n(a);n.a},"6ba6":function(e,t,r){var a=r("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码<E4BBA3><E7A081>
|