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.
 
 
 
 

1 lines
2.6 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/Logistics/index"],{"0908":function(e,t,n){"use strict";var o=n("c447"),r=n.n(o);r.a},7195:function(e,t,n){"use strict";n.r(t);var o=n("d99d"),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},"8ab2":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=[]},"9d78":function(e,t,n){"use strict";n.r(t);var o=n("8ab2"),r=n("7195");for(var s in r)"default"!==s&&function(e){n.d(t,e,(function(){return r[e]}))}(s);n("0908");var i,a=n("f0c5"),d=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"de6f0ef0",null,!1,o["a"],i);t["default"]=d.exports},bdb7:function(e,t,n){"use strict";(function(e){n("0371");o(n("66fd"));var t=o(n("9d78"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},c447:function(e,t,n){},d99d:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("2559"),r=n("8c38"),s=function(){Promise.all([n.e("common/vendor"),n.e("components/Recommend")]).then(function(){return resolve(n("481e"))}.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"])}},[["bdb7","common/runtime","common/vendor"]]]);