(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/index/index"],{70:function(n,e,t){"use strict";(function(n,e){var r=t(4);t(26);r(t(25));var o=r(t(71));n.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},71:function(n,e,t){"use strict";t.r(e);var r=t(72),o=t(74);for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(a);t(76);var u,i=t(32),s=Object(i["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],u);s.options.__file="pages/tabbar/index/index.vue",e["default"]=s.exports},72:function(n,e,t){"use strict";t.r(e);var r=t(73);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},73:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return u})),t.d(e,"recyclableRender",(function(){return a})),t.d(e,"components",(function(){return r}));try{r={uImage:function(){return t.e("uview-ui/components/u-image/u-image").then(t.bind(null,179))},uEmpty:function(){return t.e("uview-ui/components/u-empty/u-empty").then(t.bind(null,186))}}}catch(i){if(-1===i.message.indexOf("Cannot find module")||-1===i.message.indexOf(".vue"))throw i;console.error(i.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement,t=(n._self._c,n.bannerList.length);n.$mp.data=Object.assign({},{$root:{g0:t}})},a=!1,u=[];o._withStripped=!0},74:function(n,e,t){"use strict";t.r(e);var r=t(75),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(a);e["default"]=o.a},75:function(n,e,t){"use strict";(function(n,r){var o=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(t(43)),u=o(t(45)),i={data:function(){return{bannerList:[],statusBarHeight:"",navHeight:"",menuButtonHeight:"",menuButtonTop:"",isRead:!1,admin:!1}},onLoad:function(){var e=n.getSystemInfoSync(),t=750/e.windowWidth,o=r.getMenuButtonBoundingClientRect(),a=o.height*t,u=e.statusBarHeight,i=o.top*t,s=a+2*(i-u);this.navHeight=s-40,this.statusBarHeight=u,this.menuButtonHeight=a,this.menuButtonTop=i,console.log(a,i);var c=this.userRoles,d=c.filter((function(n){return"admin"==n.name}));d.length>0?this.admin=!0:this.admin=!1},onShow:function(){var e=n.getStorageSync("token");e?this.homeFn():this.$u.route({type:"reLaunch",url:"/pages/login/login"})},methods:{goPage:function(n){switch(n){case"inform":this.$u.route("/pages/info/info");break;case"command":this.$u.route("/pages/command/command");break;case"throughTrain":this.$u.route("/pages/throughTrain/throughTrain");break;default:console.log("Unknown fruit");break}},homeFn:function(){var n=this;return(0,u.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$u.api.home();case 2:t=e.sent,n.isRead=t.data.isRead,n.bannerList=t.data.bannersS;case 5:case"end":return e.stop()}}),e)})))()}}};e.default=i}).call(this,t(2)["default"],t(1)["default"])},76:function(n,e,t){"use strict";t.r(e);var r=t(77),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(a);e["default"]=o.a},77:function(n,e,t){}},[[70,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/tabbar/index/index.js.map