myPackage.js 2.7 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageC/myPackage/myPackage"],{"49b6":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={components:{PackageCard:function(){e.e("pageC/myPackage/component/packageCard").then(function(){return resolve(e("52cd"))}.bind(null,e)).catch(e.oe)}},data:function(){return{follow:"to_transit",weights:0,orderId:"",containerId:"",statusNum:{},page:1,orderList:[]}},computed:{i18n:function(){return this.$t("index")}},onLoad:function(t){this.follow=t.type||"to_transit",this.getPackageList(1)},onShow:function(){this.getPackageList(1)},methods:{tabSwitch:function(t){this.page=1,this.follow=t,this.getPackageList(1)},toInformation:function(n){"imperfect"!=n.status&&t.navigateTo({url:"/pageD/orderInformation/orderInformation?orderStatus=".concat(n.id)})},getNum:function(){var n=this;t.$u.http.get("/api/express-order/status-count").then((function(t){n.statusNum=t}))},getPackageList:function(n){var e=this;t.$u.http.get("/api/express-order?container_id=".concat(this.containerId,"&status_collection=").concat(this.follow,"&order_no=").concat(this.orderId,"&page=").concat(this.page,"&limit=10")).then((function(t){1==n?(e.weights=0,e.orderList=t.data):e.orderList=e.orderList.concat(t.data),e.orderList.map((function(t){e.weights+=Number(t.actual_weight)})),e.total=t.total}))}},onReachBottom:function(){this.total>this.orderList.length&&(this.page++,this.getPackageList(0))},created:function(){this.getNum(),t.setNavigationBarTitle({title:this.i18n.myPackage})}};n.default=a}).call(this,e("df3c")["default"])},"5b4e":function(t,n,e){"use strict";(function(t,n){var a=e("47a9");e("abeb");a(e("3240"));var o=a(e("6fcf"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"6fcf":function(t,n,e){"use strict";e.r(n);var a=e("7f96"),o=e("c3bd");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("fdf0");var c=e("828b"),r=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"27ba534d",null,!1,a["a"],void 0);n["default"]=r.exports},"781d":function(t,n,e){},"7f96":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return a}));var a={"u-Input":function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u--input/u--input")]).then(e.bind(null,"7780"))}},o=function(){var t=this.$createElement;this._self._c},i=[]},c3bd:function(t,n,e){"use strict";e.r(n);var a=e("49b6"),o=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=o.a},fdf0:function(t,n,e){"use strict";var a=e("781d"),o=e.n(a);o.a}},[["5b4e","common/runtime","common/vendor"]]]);