You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-app/h5/static/js/pages-order-saleAfter-saleA...

1 line
14 KiB

3 years ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-saleAfter-saleAfterApply"],{"0bcf":function(e,t,n){"use strict";var a=n("f71b"),r=n.n(a);r.a},"0fd0":function(e,t,n){"use strict";var a=n("4ea4");n("99af"),n("7db0"),n("d81d"),n("a434"),n("ac1f"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var r=a(n("1da1")),u=a(n("359f")),i=a(n("f196")),s=a(n("1687")),o=n("ed1e"),l=n("c0d4"),c={components:{UiCell:i.default,UiButton:u.default,UiRadioPicker:s.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,r.default)(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,o.ApiPostGetOssConfig)({configId:"refund-evidence/",serviceName:"mall-trade"});case 2:if(t=e.sent,n=t.error,a=t.result,!n){e.next=8;break}return uni.$u.toast(n.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,r.default)(regeneratorRuntime.mark((function n(){var a,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.file[0],n.next=3,t.getOssCon();case 3:if(r=n.sent,r){n.next=6;break}return n.abrupt("return",!1);case 6:uni.uploadFile({name:"file",filePath:a.url,url:r.host,formData:{name:a.name,key:"".concat(r.dir,"${filename}"),policy:r.policy,OSSAccessKeyId:r.accessId,success_action_status:200,signature:r.signature},success:function(e){t.fileList.push({url:"".concat(r.host,"/").concat(r.dir).concat(a.name)})}});case 7:case"end":return n.stop()}}),n)})))()},delImage:function(e){this.fileList.splice(e.index,1)},apply:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function t(){var n,a,r;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,l.ApiPostApplySaleAfter)(e.params);case 11:if(n=t.sent,a=n.error,r=n.result,!a){t.next=17;break}return uni.$u.toast(a.message),t.abrupt("return",!1);case 17:e.$Router.replace("/saleAfterDetail?id=".concat(r.refundId));case 18:case"end":return t.stop()}}),t)})))()}}};t.default=c},"3e24":function(e,t,n){var a=n("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预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以<EFBFBD><EFBFBD>