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

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"],{"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预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-page-body[data-v-3e9a1a2b]{background:#f8f8f8}body.?%PAGE?%[data-v-3e9a1a2b]{background:#f8f8f8}',""]),e.exports=t},"41ba":function(e,t,n){"use strict";n("ac1f"),n("466d"),Object.defineProperty(t,"__esModule",{value:!0}),t.IsDouble=t.IsInteger=t.IsNumber=t.IsPhone=t.Debounce=t.ToAsyncAwait=void 0;var a=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?e.then((function(e){return{error:null,result:e}})).catch((function(e){return{error:e,result:null}})):e};t.ToAsyncAwait=a;var r=function(e,t){var n;return function(){var a=this,r=arguments;n&&clearTimeout(n),n=setTimeout((function(){e.apply(a,r)}),t)}};t.Debounce=r;var u=function(e){return/^(1[3-9]\d{9})$/.test(e)};t.IsPhone=u;var i=function(e){return!(!isDouble(e)&&!isInteger(e))};t.IsNumber=i;var s=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+$/);return null!=t};t.IsInteger=s;var o=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+(\.\d+)?$/);return null!=t};t.IsDouble=o},5767:function(e,t,n){"use strict";var a=n("dbce"),r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0});var u={};t.default=void 0;var i=r(n("5530")),s=a(n("41ba"));Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(u,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var o=a(n("d071"));Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(u,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var l=(0,i.default)((0,i.default)({},s),{},{requset:o});t.default=l},5942:function(e,t,n){"use strict";var a=n("62fc"),r=n.n(a);r.a},"62fc":function(e,t,n){var a=n("da8f");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=n("4f06").default;r("6f5c3275",a,!0,{sourceMap:!1,shadowMode:!1})},8061:function(e,t,n){"use strict";n.r(t);var a=n("87b1"),r=n("d627");for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);n("0bcf"),n("5942");var i,s=n("f0c5"),o=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,"3e9a1a2b",null,!1,a["a"],i);t["default"]=o.exports},"87b1":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return a}));var a={uUpload:n("ab87").default},r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",[n("v-uni-view",{staticClass:"box"},[e.$Route.query.status?e._e():n("UiCell",{attrs:{title:"货物状态"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.receiveShow=!0}}},[n("v-uni-input",{staticClass:"input",attrs:{slot:"value",disabled:!0,placeholder:"请选择",value:e.receiveSelected.label},slot:"value"})],1),n("UiCell",{attrs:{title:"退款原因"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.refundShow=!0}}},[n("v-uni-input",{staticClass:"input",attrs:{slot:"value",disabled:!0,placeholder:"请选择",value:e.refundSelected.label},slot:"value"})],1),n("UiCell",{attrs:{title:"退款金额",rightIcon:!1}},[n("v-uni-text",{staticClass:"price",attrs:{slot:"value"},slot:"value"},[e._v("¥"+e._s(e.$Route.query.amount))])],1),n("v-uni-view",{staticClass:"title"},[n("v-uni-view",[n("v-uni-text",[e._v("问题描述")]),n("v-uni-text",{staticClass:"title--min"},[e._v("(选填)")])],1),n("v-uni-text",{staticClass:"title--min"},[e._v(e._s(e.params.problemDescribe.length)+"/45")])],1),n("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),n("v-uni-view",{staticClass:"box upload"},[n("v-uni-view",{staticClass:"title"},[n("v-uni-text",[e._v("上传凭证")]),n("v-uni-text",{staticClass:"title--min"},[e._v(""+e._s(e.fileList.length)+"/9")])],1),n("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),n("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("提交申请")]),n("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"}}),n("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)},u=[]},d071:function(e,t,n){"use strict";var a=n("4ea4");n("4de4"),n("caad"),n("d3b7"),n("ac1f"),n("2532"),n("38cf"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.MsbRequestTk=t.MsbRequest=void 0;var r=a(n("5530")),u=a(n("fda4")),i=a(n("4308")),s="test",o={test:"http://k8s-horse-gateway.mashibing.cn",release:"",prod:""},l=function(e,t){if(v(t),200===e.statusCode){var n=e.data;return"SUCCESS"===n.code?n.data:"TOKEN_EXPIRE"===n.code?(uni.navigateTo({url:"/login"}),n):Promise.reject(n)}return e},c=function(e,t){return v(t),{message:e.errMsg,code:e.statusCode}},d=[],f=function(e){return d.includes(JSON.stringify(e))?Promise.reject({message:"请勿频繁操作"}):(d.push(JSON.stringify(e)),!1)},v=function(e){d=d.filter((function(t){return t!==JSON.stringify(e)}))},p=new u.default;t.MsbRequest=p,p.baseUrl=o[s],p.use("request",(function(e){if(console.log("option",e),e.header.repeat){var t=f(e);if(t)return t}return e})),p.use("success",l),p.use("error",c);var h=new u.default;t.MsbRequestTk=h,h.baseUrl=o[s],h.use("request",(function(e){var t=i.default.state.token;if(t){if(e.header=(0,r.default)((0,r.default)({},e.header),{},{Authorization:t}),e.header.repeat){var n=f(e);if(n)return n}return console.log(e),e}var a=getCurrentPages(),u=a[a.length-1];return u.$Router.replace("/login"),Promise.reject({message:"要先登录才能操作哦~"})})),h.use("success",l),h.use("error",c)},d627:function(e,t,n){"use strict";n.r(t);var a=n("0fd0"),r=n.n(a);for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);t["default"]=r.a},da8f: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预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.box[data-v-3e9a1a2b]{padding:0 %?40?%;margin:%?20?% 0;background:#fff}.input[data-v-3e9a1a2b]{font-size:%?28?%;text-align:right;flex:1}.price[data-v-3e9a1a2b]{color:#ff512b}.title[data-v-3e9a1a2b]{padding:%?30?% 0;display:flex;justify-content:space-between}.title--min[data-v-3e9a1a2b]{font-size:%?24?%;color:#999}uni-textarea[data-v-3e9a1a2b]{height:%?100?%}.upload[data-v-3e9a1a2b]{padding-bottom:%?20?%}.btn[data-v-3e9a1a2b]{position:fixed;bottom:%?40?%;left:%?30?%}',""]),e.exports=t},f71b:function(e,t,n){var a=n("3e24");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=n("4f06").default;r("36e79396",a,!0,{sourceMap:!1,shadowMode:!1})},fda4:function(e,t,n){"use strict";var a=n("4ea4");n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("5530")),u=a(n("d4ec")),i=a(n("bee2")),s=function(){function e(t){(0,u.default)(this,e),this.baseUrl="",this.header={repeat:!0},this.hook={request:null,success:null,error:null}}return(0,i.default)(e,[{key:"method",value:function(e){var t=this;if(e.header=(0,r.default)((0,r.default)({},this.header),e.header),e.url=this.baseUrl+e.url,this.hook.request&&(e=this.hook.request(e)),!e)throw new Error("没有请求配置或是request拦截未做return");return e.constructor===Promise?e:new Promise((function(n,a){console.log(e),uni.request((0,r.default)((0,r.default)({},e),{},{success:function(r){var u=r||r[1];if(u.statusCode>=200&&u.statusCode<400){if(t.hook.success){var i=t.hook.success(u,e);i.constructor===Promise?i.then((function(e){n(e)}),(function(e){a(e)})):n(i)}else n(u);return!1}a(t.hook.error?t.hook.error(u,e):u)},fail:function(n){a(t.hook.error?t.hook.error(n,e):n)}}))}))}},{key:"use",value:function(e,t){this.hook[e]=t}},{key:"get",value:function(e,t,n){return this.method({method:"GET",url:e,data:t,header:n})}},{key:"post",value:function(e,t,n){return this.method({method:"POST",url:e,data:t,header:n})}},{key:"put",value:function(e,t,n){return this.method({method:"PUT",url:e,data:t,header:n})}},{key:"delete",value:function(e,t,n){return this.method({method:"DELETE",url:e,data:t,header:n})}}]),e}(),o=s;t.default=o}}]);