logistics_details.js 2.8 KB

1
  1. require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/points_mall/logistics_details"],{"0454":function(t,e,n){"use strict";var o=n("f1a7"),i=n.n(o);i.a},"0c04":function(t,e,n){"use strict";n.r(e);var o=n("992c"),i=n("c5b1");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("0454");var c=n("828b"),s=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"2644dabd",null,!1,o["a"],void 0);e["default"]=s.exports},"56d8":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("c302"),r=n("d1dc"),c=(o(n("9c8e")),n("d7f8")),s=n("8f59"),u=o(n("0cf0")),a={components:{recommend:function(){Promise.all([n.e("common/vendor"),n.e("components/recommend/index")]).then(function(){return resolve(n("492d"))}.bind(null,n)).catch(n.oe)},authorize:function(){n.e("components/Authorize").then(function(){return resolve(n("636c"))}.bind(null,n)).catch(n.oe)}},mixins:[u.default],data:function(){return{orderId:"",product:{productInfo:{}},orderInfo:{},expressList:[],hostProduct:[]}},computed:(0,s.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&(this.getExpress(),this.get_host_product())},deep:!0}},onLoad:function(t){if(!t.order_id)return this.$util.Tips({title:this.$t("缺少订单号")});this.orderId=t.order_id,this.isLogin?(this.getExpress(),this.get_host_product()):(0,c.toLogin)()},onReady:function(){},onPageScroll:function(e){t.$emit("scroll")},methods:{onLoadFun:function(){this.getExpress(),this.get_host_product()},copyOrderId:function(){t.setClipboardData({data:this.orderInfo.delivery_id})},getExpress:function(){var t=this,e=this;(0,r.getLogisticsDetails)(e.orderId).then((function(t){var n=t.data.express.result||{};e.$set(e,"orderInfo",t.data.order),e.$set(e,"expressList",n.list||[])})).catch((function(e){t.$util.Tips({title:e})}))},get_host_product:function(){var t=this;(0,i.getProductHot)().then((function(e){t.$set(t,"hostProduct",e.data)}))}}};e.default=a}).call(this,n("df3c")["default"])},"992c":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=(this._self._c,this.$t("积分")),n=this.$t("物流公司"),o=this.$t("快递单号"),i=this.$t("复制单号");this.$mp.data=Object.assign({},{$root:{m0:e,m1:n,m2:o,m3:i}})},i=[]},"9f5a5":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("2ea2");o(n("3240"));var i=o(n("0c04"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},c5b1:function(t,e,n){"use strict";n.r(e);var o=n("56d8"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},f1a7:function(t,e,n){}},[["9f5a5","common/runtime","common/vendor"]]]);