|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-logisitcsInfo"],{"007b":function(e,t,r){"use strict";r.r(t);var n=r("2e27"),a=r("fcf7");for(var i in a)"default"!==i&&function(e){r.d(t,e,(function(){return a[e]}))}(i);r("4607");var o,s=r("f0c5"),u=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"d3901cfe",null,!1,n["a"],o);t["default"]=u.exports},"14b1":function(e,t,r){"use strict";var n=r("34d3"),a=r.n(n);a.a},2548: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/* 垂直间距 */.ui-goods[data-v-c847ad5a]{padding:%?30?%;border-bottom:1px solid #eee}.ui-goods-item[data-v-c847ad5a]{display:flex;justify-content:space-between}.ui-goods-item--image[data-v-c847ad5a]{width:%?140?%;height:%?140?%}.ui-goods-item--right[data-v-c847ad5a]{width:%?474?%}.ui-goods-item--con[data-v-c847ad5a]{display:flex;justify-content:space-between;font-size:%?28?%;color:#333;line-height:%?39?%}.ui-goods-item--title[data-v-c847ad5a]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.ui-goods-item--pirce[data-v-c847ad5a]{font-size:%?22?%;margin-left:%?60?%}.ui-goods-item--desc[data-v-c847ad5a]{margin-top:%?20?%;line-height:%?39?%;display:flex;justify-content:space-between}.ui-goods-item--desc uni-text[data-v-c847ad5a]{font-size:%?24?%;color:#999}.ui-goods-item--desc uni-text.ui-goods-item--num[data-v-c847ad5a]{font-size:%?28?%;margin-left:%?60?%}',""]),e.exports=t},"2e27":function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return i})),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",e._l(e.orderInfo.products,(function(t,n){return r("UiGoodsInfo",{key:t.orderProductId,class:n===e.orderInfo.products.length-1?"goods-info__last":"",attrs:{data:t}})})),1),r("UiWhiteBox",{staticClass:"company"},[r("v-uni-text",{staticClass:"company--name"},[e._v(e._s(e.orderInfo.companyName))]),r("v-uni-view",{staticClass:"company--no"},[e._v(e._s(e.orderInfo.trackingNo))])],1),r("UiWhiteBox",[r("v-uni-view",{staticClass:"title"},[r("v-uni-text",[e._v("物流信息")]),r("v-uni-text",{staticClass:"title--desc"},[e._v("本服务有快递100提供")])],1),r("v-uni-view",{staticClass:"group"},e._l(e.orderInfo.logisticsDataList,(function(t,n){return r("v-uni-view",{key:n,staticClass:"item",class:n===e.orderInfo.logisticsDataList.length-1?"item__last":""},[r("v-uni-view",{staticClass:"item--time"},[e._v(e._s(t.time))]),r("v-uni-view",{staticClass:"item--ctx"},[e._v(e._s(t.context))])],1)})),1)],1)],1)},i=[]},"34d3":function(e,t,r){var n=r("2548");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("5aec1f58",n,!0,{sourceMap:!1,shadowMode:!1})},"35d3":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{data:{type:Object,default:{}}}};t.default=n},"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 i=function(e){return/^(1[3-9]\d{9})$/.test(e)};t.IsPhone=i;var o=function(e){return!(!isDouble(e)&&!isInteger(e))};t.IsNumber=o;var s=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+$/);return null!=t};t.IsInteger=s;var u=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+(\.\d+)?$/);return null!=t};t.IsDouble=u},4607:function(e,t,r){"use strict";var n=r("e272"),a=r.n(n);a.a},5767:function(e,t,r){"use strict";var n=r("dbce"),a=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0});var i={};t.default=void 0;var o=a(r("5530")),s=n(r("41ba"));Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=n(r("d071"));Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=(0,o.default)((0,o.default)({},s),{},{requset:u});t.default=c},"594b":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-d3901cfe]{background:#f8f8f8}.company[data-v-d3901cfe]{height:%?100?%;padding:0 %?30?%;display:flex;align-items:center;justify-content:space-between}.title[data-v-d3901cfe]{height:%?98?%;line-height:%?98?%;border-bottom:%?2?% solid #eee;padding:0 %?30?%;color:#666;display:flex;justify-content:space-between}.title--desc[data-v-d3901cfe]{color:#999}.group[data-v-d3901cfe]{padding:%?30?%}.item[data-v-d3901cfe]{padding-bottom:%?44?%;position:relative;padding-left:%?58?%}.item[data-v-d3901cfe]::before{display:block;width:%?10?%;height:%?10?%;content:"";border-radius:50%;border:%?6?% solid #ff875b;background:#fff;position:absolute;left:0}.item[data-v-d3901cfe]::after{display:block;content:"";height:calc(100% - %?38?%);width:1px;left:%?10?%;top:%?28?%;border-left:1px dashed #999;position:absolute}.item__last[data-v-d3901cfe]::after{display:none}.item--time[data-v-d3901cfe]{font-size:%?24?%;color:#999}.item--ctx[data-v-d3901cfe]{line-height:%?42?%;color:#666;margin-top:%?20?%}.goods-info__last[data-v-d3901cfe]{border:0}body.?%PAGE?%[data-v-d3901cfe]{background:#f8f8f8}',""]),e.exports=t},"5a25":function(e,t,r){"use strict";var n;r.r(t);var a,i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"ui-white-box"},[e._t("default")],2)},o=[],s=(r("c557"),r("f0c5")),u={},c=Object(s["a"])(u,i,o,!1,null,"7e14885a",null,!1,n,a);t["default"]=c.exports},7932:function(e,t,r){"use strict";r.r(t);var n=r("fb9e"),a=r("99dd");for(var i in a)"default"!==i&&function(e){r.d(t,e,(function(){return a[e]}))}(i);r("14b1");var o,s=r("f0c5"),u=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"c847ad5a",null,!1,n["a"],o);t["default"]=u.exports},"99dd":function(e,t,r){"use strict";r.r(t);var n=r("35d3"),a=r.n(n);for(var i in n)"default"!==i&&function(e){r.d(t,e,(function(){return n[e]}))}(i);t["default"]=a.a},b64e: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")),i=n(r("7932")),o=n(r("5a25")),s=r("c0d4"),u={components:{UiWhiteBox:o.default,UiGoodsInfo:i.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,s.ApiGetOrderLogistics)({orderId:e.$Route.query.orderId});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)})))()}}};t.default=u},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",i=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/page"),e))};t.ApiGetOrderList=i;var o=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/buyAdvanceOrder"),e))};t.ApiGetBeforeOrder=o;var s=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/cartAdvanceOrder"),e))};t.ApiGetBeforeCartOrder=s;var u=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/").concat(e)))};t.ApiGetOrderDetail=u;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 h=function(){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/statistics")))};t.ApiGetOrderStatistics=h;var b=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.post("".concat(a,"/app/refundOrder/applyRefund"),e))};t.ApiPostApplySaleAfter=b;var g=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.put("".concat(a,"/app/refundOrder/updateRefund"),e))};t.ApiPostEditSaleAfter=g;var m=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.put("".concat(a,"/app/refundOrder/cancelRefund"),e))};t.ApiPostCancelSaleAfter=m;var A=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/refundOrder/page"),e))};t.ApiGetSaleAfterOrderList=A;var y=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/refundOrder/refundInfo"),e))};t.ApiGetSaleAfterOrderDetail=y;var O=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/refundOrder/logisticsCompany")))};t.ApiGetLogisticsCompanylist=O;var w=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.put("".concat(a,"/app/refundOrder/completeRefund"),e))};t.ApiPutLogisticsInfo=w},c557:function(e,t,r){"use strict";var n=r("dd95"),a=r.n(n);a.a},c997: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/* 垂直间距 */.ui-white-box[data-v-7e14885a]{margin:%?20?% %?30?%;background:#fff;border-radius:%?20?%}',""]),e.exports=t},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")),i=n(r("fda4")),o=n(r("4308")),s="test",u={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){return f.includes(JSON.stringify(e))?Promise.reject({message:"请勿频繁操作"}):(f.push(JSON.stringify(e)),!1)},p=function(e){f=f.filter((function(t){return t!==JSON.stringify(e)}))},v=new i.default;t.MsbRequest=v,v.baseUrl=u[s],v.use("request",(function(e){if(console.log("option",e),e.header.repeat){var t=l(e);if(t)return t}return e})),v.use("success",c),v.use("error",d);var h=new i.default;t.MsbRequestTk=h,h.baseUrl=u[s],h.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(),i=n[n.length-1];return i.$Router.replace("/login"),Promise.reject({message:"要先登录才能操作哦~"})})),h.use("success",c),h.use("error",d)},dd95:function(e,t,r){var n=r("c997");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("36cf71ae",n,!0,{sourceMap:!1,shadowMode:!1})},e272:function(e,t,r){var n=r("594b");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("a4b4b760",n,!0,{sourceMap:!1,shadowMode:!1})},fb9e:function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return i})),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",{staticClass:"ui-goods"},[r("v-uni-view",{staticClass:"ui-goods-item"},[r("v-uni-image",{staticClass:"ui-goods-item--image",attrs:{mode:"widthFix",src:e.data.productImageUrl}}),r("v-uni-view",{staticClass:"ui-goods-item--right"},[r("v-uni-view",{staticClass:"ui-goods-item--con"},[r("v-uni-text",{staticClass:"ui-goods-item--title"},[e._v(e._s(e.data.productName))]),r("v-uni-text",{staticClass:"ui-goods-item--pirce"},[e._v("¥"+e._s(e.data.realAmount))])],1),r("v-uni-view",{staticClass:"ui-goods-item--desc"},[r("v-uni-text",[e._v(e._s(e.data.skuDescribe))]),r("v-uni-text",{staticClass:"ui-goods-item--num"},[e._v("x"+e._s(e.data.quantity))])],1)],1)],1),e._t("operation")],2)},i=[]},fcf7:function(e,t,r){"use strict";r.r(t);var n=r("b64e"),a=r.n(n);for(var i in n)"default"!==i&&function(e){r.d(t,e,(function(){return n[e]}))}(i);t["default"]=a.a},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")),i=n(r("d4ec")),o=n(r("bee2")),s=function(){function e(t){(0,i.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){console.log(e),uni.request((0,a.default)((0,a.default)({},e),{},{success:function(a){var i=a||a[1];if(i.statusCode>=200&&i.statusCode<400){if(t.hook.success){var o=t.hook.success(i,e);o.constructor===Promise?o.then((function(e){r(e)}),(function(e){n(e)})):r(o)}else r(i);return!1}n(t.hook.error?t.hook.error(i,e):i)},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}(),u=s;t.default=u}}]); |