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
12 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(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预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.box[data-v-1f529b54]{padding:0 %?40?%;margin:%?20?% 0;background:#fff}.input[data-v-1f529b54]{font-size:%?28?%;text-align:right;flex:1}.price[data-v-1f529b54]{color:#ff512b}.title[data-v-1f529b54]{padding:%?30?% 0;display:flex;justify-content:space-between}.title--min[data-v-1f529b54]{font-size:%?24?%;color:#999}uni-textarea[data-v-1f529b54]{height:%?100?%}.upload[data-v-1f529b54]{padding-bottom:%?20?%}.btn[data-v-1f529b54]{position:fixed;bottom:%?40?%;left:%?30?%;width:%?670?%}',""]),e.exports=t},8061:function(e,t,r){"use strict";r.r(t);var a=r("d0fe"),n=r("d627");for(var i in n)"default"!==i&&function(e){r.d(t,e,(function(){return n[e]}))}(i);r("d7842"),r("5465");var s,u=r("f0c5"),c=Object(u["a"])(n["default"],a["b"],a["c"],!1,null,"1f529b54",null,!1,a["a"],s);t["default"]=c.exports},9136: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预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-page-body[data-v-1f529b54]{background:#f8f8f8}body.?%PAGE?%[data-v-1f529b54]{background:#f8f8f8}',""]),e.exports=t},c0d4:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiPutLogisticsInfo=t.ApiGetLogisticsCompanylist=t.ApiGetSaleAfterOrderDetail=t.ApiGetSaleAfterOrderList=t.ApiPostCancelSaleAfter=t.ApiPostEditSaleAfter=t.ApiPostApplySaleAfter=t.ApiGetOrderStatistics=t.ApiPutCancelOrder=t.ApiPostSubmitOrder=t.ApiPutOrderReceive=t.ApiGetOrderLogistics=t.ApiGetOrderPaySatus=t.ApiGetOrderProductDetail=t.ApiGetOrderDetail=t.ApiGetBeforeCartOrder=t.ApiGetBeforeOrder=t.ApiGetOrderList=void 0;var a=r("5767"),n="/mall/trade",i=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(n,"/app/tradeOrder/page"),e))};t.ApiGetOrderList=i;var s=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(n,"/app/tradeOrder/buyAdvanceOrder"),e))};t.ApiGetBeforeOrder=s;var u=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(n,"/app/tradeOrder/cartAdvanceOrder"),e))};t.ApiGetBeforeCartOrder=u;var c=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(n,"/app/tradeOrder/").concat(e)))};t.ApiGetOrderDetail=c;var o=function(e){var t=e.orderProductId;return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(n,"/app/tradeOrder/product/").concat(t)))};t.ApiGetOrderProductDetail=o;var l=function(e){var t=e.orderId;return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(n,"/app/tradeOrder/payResult/").concat(t)))};t.ApiGetOrderPaySatus=l;var d=function(e){var t=e.orderId;return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(n,"/app/tradeOrder/logistics/").concat(t)))};t.ApiGetOrderLogistics=d;var p=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(n,"/app/tradeOrder/receive"),e))};t.ApiPutOrderReceive=p;var f=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.post("".concat(n,"/app/tradeOrder/submitOrder"),e))};t.ApiPostSubmitOrder=f;var v=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(n,"/app/tradeOrder/cancel"),e))};t.ApiPutCancelOrder=v;var A=function(){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(n,"/app/tradeOrder/statistics")))};t.ApiGetOrderStatistics=A;var b=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.post("".concat(n,"/app/refundOrder/applyRefund"),e))};t.ApiPostApplySaleAfter=b;var m=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(n,"/app/refundOrder/updateRefund"),e))};t.ApiPostEditSaleAfter=m;var g=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(n,"/app/refundOrder/cancelRefund"),e))};t.ApiPostCancelSaleAfter=g;var h=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(n,"/app/refundOrder/page"),e))};t.ApiGetSaleAfterOrderList=h;var w=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(n,"/app/refundOrder/refundInfo"),e))};t.ApiGetSaleAfterOrderDetail=w;var y=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(n,"/app/refundOrder/logisticsCompany")))};t.ApiGetLogisticsCompanylist=y;var O=function(e){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(n,"/app/refundOrder/completeRefund"),e))};t.ApiPutLogisticsInfo=O},d0fe:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return a}));var a={uUpload:r("ab87").default},n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",[r("v-uni-view",{staticClass:"box"},[e.$Route.query.status?e._e():r("UiCell",{attrs:{title:"货物状态"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.receiveShow=!0}}},[r("v-uni-input",{staticClass:"input",attrs:{slot:"value",disabled:!0,placeholder:"请选择",value:e.receiveSelected.label},slot:"value"})],1),r("UiCell",{attrs:{title:"退款原因"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.refundShow=!0}}},[r("v-uni-input",{staticClass:"input",attrs:{slot:"value",disabled:!0,placeholder:"请选择",value:e.refundSelected.label},slot:"value"})],1),r("UiCell",{attrs:{title:"退款金额",rightIcon:!1}},[r("v-uni-text",{staticClass:"price",attrs:{slot:"value"},slot:"value"},[e._v("¥"+e._s(e.$Route.query.amount))])],1),r("v-uni-view",{staticClass:"title"},[r("v-uni-view",[r("v-uni-text",[e._v("问题描述")]),r("v-uni-text",{staticClass:"title--min"},[e._v("(选填)")])],1),r("v-uni-text",{staticClass:"title--min"},[e._v(e._s(e.params.problemDescribe.length)+"/45")])],1),r("v-uni-textarea",{staticClass:"textarea",attrs:{maxlength:"45",placeholder:"请输入您申请退款的问题"},model:{value:e.params.problemDescribe,callback:function(t){e.$set(e.params,"problemDescribe",t)},expression:"params.problemDescribe"}})],1),r("v-uni-view",{staticClass:"box upload"},[r("v-uni-view",{staticClass:"title"},[r("v-uni-text",[e._v("上传凭证")]),r("v-uni-text",{staticClass:"title--min"},[e._v(""+e._s(e.fileList.length)+"/9")])],1),r("u-upload",{attrs:{fileList:e.fileList,multiple:!0,maxCount:9,previewFullImage:!0},on:{afterRead:function(t){arguments[0]=t=e.$handleEvent(t),e.upload.apply(void 0,arguments)},delete:function(t){arguments[0]=t=e.$handleEvent(t),e.delImage.apply(void 0,arguments)}}})],1),r("UiButton",{staticClass:"btn",attrs:{size:"max",type:"gradual"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.apply.apply(void 0,arguments)}}},[e._v("提交申请")]),r("UiRadioPicker",{attrs:{title:"退款原因",show:e.refundShow,options:e.refundReasonData},on:{"update:show":function(t){arguments[0]=t=e.$handleEvent(t),e.refundShow=t}},model:{value:e.refundSelected,callback:function(t){e.refundSelected=t},expression:"refundSelected"}}),r("UiRadioPicker",{attrs:{title:"货物状态",show:e.receiveShow,options:e.receiveStatusData},on:{"update:show":function(t){arguments[0]=t=e.$handleEvent(t),e.receiveShow=t}},model:{value:e.receiveSelected,callback:function(t){e.receiveSelected=t},expression:"receiveSelected"}})],1)},i=[]},d627:function(e,t,r){"use strict";r.r(t);var a=r("0fd0"),n=r.n(a);for(var i in a)"default"!==i&&function(e){r.d(t,e,(function(){return a[e]}))}(i);t["default"]=n.a},d7842:function(e,t,r){"use strict";var a=r("4eb2"),n=r.n(a);n.a}}]);