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
11 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-saleAfterSelect"],{3500:function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return u})),r.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",[r("UiWhiteBox",[r("UiGoodsInfo",{staticClass:"goods-info",attrs:{data:e.orderInfo.orderProduct}})],1),r("UiWhiteBox",[r("v-uni-view",{staticClass:"title"},[e._v("选择售后类型")]),r("v-uni-view",{staticClass:"item item__first",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.select(1)}}},[r("v-uni-view",[e._v("申请退款")]),r("v-uni-text",[e._v("没有收到货,或已协商同意不退货只退款")])],1),r("v-uni-view",{staticClass:"item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.select(2,2)}}},[r("v-uni-view",[e._v("申请退货退款")]),r("v-uni-text",[e._v("已收到货,需要退还收到的货物")])],1)],1)],1)},u=[]},"3d3d":function(e,t,r){"use strict";r.r(t);var n=r("3500"),a=r("c9da");for(var u in a)"default"!==u&&function(e){r.d(t,e,(function(){return a[e]}))}(u);r("aa48");var o,i=r("f0c5"),s=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,"5f949e6c",null,!1,n["a"],o);t["default"]=s.exports},"41ba":function(e,t,r){"use strict";r("ac1f"),r("466d"),Object.defineProperty(t,"__esModule",{value:!0}),t.IsDouble=t.IsInteger=t.IsNumber=t.IsPhone=t.Debounce=t.ToAsyncAwait=void 0;var n=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=n;var a=function(e,t){var r;return function(){var n=this,a=arguments;r&&clearTimeout(r),r=setTimeout((function(){e.apply(n,a)}),t)}};t.Debounce=a;var u=function(e){return/^(1[3-9]\d{9})$/.test(e)};t.IsPhone=u;var o=function(e){return!(!isDouble(e)&&!isInteger(e))};t.IsNumber=o;var i=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+$/);return null!=t};t.IsInteger=i;var s=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+(\.\d+)?$/);return null!=t};t.IsDouble=s},5767:function(e,t,r){"use strict";var n=r("dbce"),a=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0});var u={};t.default=void 0;var o=a(r("5530")),i=n(r("41ba"));Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(u,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var s=n(r("d071"));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 c=(0,o.default)((0,o.default)({},i),{},{requset:s});t.default=c},"874e":function(e,t,r){var n=r("24fb");t=n(!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-5f949e6c]{background:#f8f8f8}.title[data-v-5f949e6c]{height:%?98?%;line-height:%?98?%;border-bottom:%?2?% solid #eee;padding:0 %?30?%;color:#666}.item[data-v-5f949e6c]{padding:%?40?% 0;margin:0 %?40?%}.item__first[data-v-5f949e6c]{border-bottom:%?2?% solid #eee}.item uni-view[data-v-5f949e6c]{font-weight:700;margin-bottom:%?20?%}.item uni-text[data-v-5f949e6c]{color:#999;font-size:%?24?%}.goods-info[data-v-5f949e6c]{border:0}body.?%PAGE?%[data-v-5f949e6c]{background:#f8f8f8}',""]),e.exports=t},aa48:function(e,t,r){"use strict";var n=r("b062"),a=r.n(n);a.a},b062:function(e,t,r){var n=r("874e");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("6be12252",n,!0,{sourceMap:!1,shadowMode:!1})},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.ApiPostWxPay=t.ApiPutCancelOrder=t.ApiPostSubmitOrder=t.ApiPutOrderReceive=t.ApiGetOrderLogistics=t.ApiGetOrderProductDetail=t.ApiGetOrderDetail=t.ApiGetBeforeCartOrder=t.ApiGetBeforeOrder=t.ApiGetOrderList=void 0;var n=r("5767"),a="/mall/trade",u=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/page"),e))};t.ApiGetOrderList=u;var o=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/buyAdvanceOrder"),e))};t.ApiGetBeforeOrder=o;var i=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/cartAdvanceOrder"),e))};t.ApiGetBeforeCartOrder=i;var s=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/").concat(e)))};t.ApiGetOrderDetail=s;var c=function(e){var t=e.orderProductId;return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/product/").concat(t)))};t.ApiGetOrderProductDetail=c;var d=function(e){var t=e.orderId;return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/logistics/").concat(t)))};t.ApiGetOrderLogistics=d;var f=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.put("".concat(a,"/app/tradeOrder/receive"),e))};t.ApiPutOrderReceive=f;var l=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.post("".concat(a,"/app/tradeOrder/submitOrder"),e))};t.ApiPostSubmitOrder=l;var p=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.post("".concat(a,"/app/tradeOrder/cancel"),e))};t.ApiPutCancelOrder=p;var v=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/pay/payTest"),e))};t.ApiPostWxPay=v;var A=function(){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/statistics")))};t.ApiGetOrderStatistics=A;var h=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.post("".concat(a,"/app/refundOrder/applyRefund"),e))};t.ApiPostApplySaleAfter=h;var b=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.put("".concat(a,"/app/refundOrder/updateRefund"),e))};t.ApiPostEditSaleAfter=b;var O=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.put("".concat(a,"/app/refundOrder/cancelRefund"),e))};t.ApiPostCancelSaleAfter=O;var g=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/refundOrder/page"),e))};t.ApiGetSaleAfterOrderList=g;var m=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/refundOrder/refundInfo"),e))};t.ApiGetSaleAfterOrderDetail=m;var y=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/refundOrder/logisticsCompany")))};t.ApiGetLogisticsCompanylist=y;var P=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.put("".concat(a,"/app/refundOrder/completeRefund"),e))};t.ApiPutLogisticsInfo=P},c9da:function(e,t,r){"use strict";r.r(t);var n=r("ef58"),a=r.n(n);for(var u in n)"default"!==u&&function(e){r.d(t,e,(function(){return n[e]}))}(u);t["default"]=a.a},d071:function(e,t,r){"use strict";var n=r("4ea4");r("4de4"),r("caad"),r("d3b7"),r("ac1f"),r("2532"),r("38cf"),r("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.MsbRequestTk=t.MsbRequest=void 0;var a=n(r("5530")),u=n(r("fda4")),o=n(r("4308")),i="test",s={test:"http://k8s-horse-gateway.mashibing.cn",release:"",prod:""},c=function(e,t){if(p(t),200===e.statusCode){var r=e.data;return"SUCCESS"===r.code?r.data:"TOKEN_EXPIRE"===r.code?(uni.navigateTo({url:"/login"}),r):Promise.reject(r)}return e},d=function(e,t){return p(t),{message:e.errMsg,code:e.statusCode}},f=[],l=function(e){var t={url:e.url,method:e.method,data:e.data};return f.includes(JSON.stringify(t))?Promise.reject({message:"请勿频繁操作"}):(f.push(JSON.stringify(t)),!1)},p=function(e){f=f.filter((function(t){return t!==JSON.stringify({url:e.url,method:e.method,data:e.data})}))},v=new u.default;t.MsbRequest=v,v.baseUrl=s[i],v.use("request",(function(e){if(e.header.repeat){var t=l(e);if(t)return t}return e})),v.use("success",c),v.use("error",d);var A=new u.default;t.MsbRequestTk=A,A.baseUrl=s[i],A.use("request",(function(e){var t=o.default.state.token;if(t){if(e.header=(0,a.default)((0,a.default)({},e.header),{},{Authorization:t}),e.header.repeat){var r=l(e);if(r)return r}return console.log(e),e}var n=getCurrentPages(),u=n[n.length-1];return u.$Router.replace("/login"),Promise.reject({message:"要先登录才能操作哦~"})})),A.use("success",c),A.use("error",d)},ef58:function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("96cf");var a=n(r("1da1")),u=n(r("7932")),o=n(r("5a25")),i=r("c0d4"),s={components:{UiWhiteBox:o.default,UiGoodsInfo:u.default},data:function(){return{orderInfo:{}}},mounted:function(){this.getOrderProductInfo()},methods:{getOrderProductInfo:function(){var e=this;return(0,a.default)(regeneratorRuntime.mark((function t(){var r,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,i.ApiGetOrderProductDetail)({orderProductId:e.$Route.query.id});case 2:if(r=t.sent,n=r.error,a=r.result,!n){t.next=8;break}return uni.$u.toast(n.message),t.abrupt("return",!1);case 8:e.orderInfo=a;case 9:case"end":return t.stop()}}),t)})))()},select:function(e,t){var r=this.orderInfo.orderProduct,n=r.orderProductId,a=r.realAmount;this.$Router.push({path:"/saleAfterApply",query:{status:t,type:e,id:n,amount:a}})}}};t.default=s},fda4:function(e,t,r){"use strict";var n=r("4ea4");r("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r("5530")),u=n(r("d4ec")),o=n(r("bee2")),i=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,o.default)(e,[{key:"method",value:function(e){var t=this;if(e.header=(0,a.default)((0,a.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(r,n){uni.request((0,a.default)((0,a.default)({},e),{},{success:function(a){var u=a||a[1];if(u.statusCode>=200&&u.statusCode<400){if(t.hook.success){var o=t.hook.success(u,e);o.constructor===Promise?o.then((function(e){r(e)}),(function(e){n(e)})):r(o)}else r(u);return!1}n(t.hook.error?t.hook.error(u,e):u)},fail:function(r){n(t.hook.error?t.hook.error(r,e):r)}}))}))}},{key:"use",value:function(e,t){this.hook[e]=t}},{key:"get",value:function(e,t,r){return this.method({method:"GET",url:e,data:t,header:r})}},{key:"post",value:function(e,t,r){return this.method({method:"POST",url:e,data:t,header:r})}},{key:"put",value:function(e,t,r){return this.method({method:"PUT",url:e,data:t,header:r})}},{key:"delete",value:function(e,t,r){return this.method({method:"DELETE",url:e,data:t,header:r})}}]),e}(),s=i;t.default=s}}]);