myPackage.js 3.0 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageB/myPackage"],{1183:function(t,n,e){"use strict";var i=e("8f75"),s=e.n(i);s.a},"29b7":function(t,n,e){"use strict";e.r(n);var i=e("fa9c"),s=e("e61a");for(var o in s)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return s[t]}))}(o);e("1183");var r,u=e("f0c5"),a=Object(u["a"])(s["default"],i["b"],i["c"],!1,null,"2f3c4302",null,!1,i["a"],r);n["default"]=a.exports},3900:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{current:0,list1:[],status:"",goodslist:[],sumweight:0,to_transit:0,transit_receipt:0,to_overseas:0,keyword:""}},onLoad:function(t){console.log(t),this.current=t.index,0==this.current?this.status="to_transit":1==this.current?this.status="transit_receipt":this.status="to_overseas"},computed:{i18n:function(){return this.$t("index")}},onShow:function(){this.getnumber(),t.setNavigationBarTitle({title:this.i18n.mine+this.i18n.parcel}),this.getlist()},methods:{detail:function(t){},frozen:function(n){t.$u.http.post("/api/address/default/".concat(n)).then((function(t){console.log(t)})).catch((function(){}))},getlist:function(){var n=this;t.$u.http.get("/api/express-order?",{params:{order_no:this.keyword,container_id:"",status_collection:this.status}}).then((function(t){n.goodslist=t.data,n.goodslist.forEach((function(t){n.sumweight+=Number(t.estimated_weight)}))})).catch((function(){}))},getnumber:function(){var n=this;t.$u.http.get("/api/express-order/status-count",{}).then((function(t){n.to_transit=t.to_transit,n.transit_receipt=t.transit_receipt,n.to_overseas=t.to_overseas,n.list1=[{name:n.i18n.deliver+n.to_transit},{name:n.i18n.Sign+n.transit_receipt},{name:n.i18n.overseas+n.to_overseas}]})).catch((function(){}))},click:function(t){console.log("item",t),this.current=t.index,0==this.current?(this.status="to_transit",this.getlist()):1==this.current?(this.status="transit_receipt",this.getlist()):(this.status="to_overseas",this.getlist())}},mounted:function(){}};n.default=e}).call(this,e("543d")["default"])},"8f75":function(t,n,e){},e61a:function(t,n,e){"use strict";e.r(n);var i=e("3900"),s=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=s.a},f173:function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("f93b");i(e("66fd"));var s=i(e("29b7"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(s.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},fa9c:function(t,n,e){"use strict";e.d(n,"b",(function(){return s})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return i}));var i={uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"01eb"))},uTabs:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-tabs/u-tabs")]).then(e.bind(null,"5506"))}},s=function(){var t=this,n=t.$createElement;t._self._c},o=[]}},[["f173","common/runtime","common/vendor"]]]);