(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/Logistics/index"],{2602:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("2d3a"),r=n("b6d1"),s=function(){Promise.all([n.e("common/vendor"),n.e("components/Recommend")]).then(function(){return resolve(n("fc41"))}.bind(null,n)).catch(n.oe)},i="Logistics",a={name:i,components:{Recommend:s},data:function(){return{id:"",cartInfo:[],orderInfo:{},expressList:[],loaded:!1,logisticsList:[{message:"暂无数据",messageDate:""}]}},watch:{$yroute:function(e){e.name===i&&this.$yroute.query.id!==this.id&&(this.id=this.$yroute.query.id,this.getExpress())}},mounted:function(){this.id=this.$yroute.query.id,this.getExpress()},methods:{copyClipboard:r.copyClipboard,getExpressInfo:function(){var t=this,n={orderCode:this.id,shipperCode:this.orderInfo.deliverySn,logisticCode:this.orderInfo.deliveryId};(0,o.express)(n).then((function(e){t.logisticsList=e.data.Traces.reverse()})).catch((function(t){e.showToast({title:t.msg||t.response.data.msg||t.response.data.message,icon:"none",duration:2e3})}))},getExpress:function(){var t=this;this.id?(this.loaded=!1,(0,o.orderDetail)(this.id).then((function(e){t.orderInfo={deliveryId:e.data.deliveryId,deliveryName:e.data.deliveryName,deliverySn:e.data.deliverySn},t.getExpressInfo()})).catch((function(t){e.showToast({title:t.msg||t.response.data.msg||t.response.data.message,icon:"none",duration:2e3})}))):e.showToast({title:err.msg||err.response.data.msg||err.response.data.message,icon:"none",duration:2e3})}}};t.default=a}).call(this,n("543d")["default"])},2896:function(e,t,n){"use strict";n.r(t);var o=n("2602"),r=n.n(o);for(var s in o)"default"!==s&&function(e){n.d(t,e,(function(){return o[e]}))}(s);t["default"]=r.a},"3f38":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return o}));var r=function(){var e=this,t=e.$createElement;e._self._c},s=[]},4154:function(e,t,n){},"416a":function(e,t,n){"use strict";(function(e){n("ef82");o(n("66fd"));var t=o(n("cd7e"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},9267:function(e,t,n){"use strict";var o=n("4154"),r=n.n(o);r.a},cd7e:function(e,t,n){"use strict";n.r(t);var o=n("3f38"),r=n("2896");for(var s in r)"default"!==s&&function(e){n.d(t,e,(function(){return r[e]}))}(s);n("9267");var i,a=n("f0c5"),d=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"90aa95ee",null,!1,o["a"],i);t["default"]=d.exports}},[["416a","common/runtime","common/vendor"]]]);