tabbar.js 2.5 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/tabbar/tabbar"],{3789:function(e,t,a){"use strict";a.r(t);var n=a("be58"),c=a("46fe");for(var o in c)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return c[e]}))}(o);a("42f0");var r=a("828b"),s=Object(r["a"])(c["default"],n["b"],n["c"],!1,null,"7af90fff",null,!1,n["a"],void 0);t["default"]=s.exports},"42f0":function(e,t,a){"use strict";var n=a("4dfd"),c=a.n(n);c.a},"46fe":function(e,t,a){"use strict";a.r(t);var n=a("886c"),c=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=c.a},"4dfd":function(e,t,a){},"886c":function(e,t,a){"use strict";(function(e,a){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{TabBarList:[{index:0,name:"首页",img:"/static/tabbar/tab_01.png",acImg:"/static/tabbar/tab_02.png"},{index:1,name:"工作台",img:"/static/tabbar/tab_03.png",acImg:"/static/tabbar/tab_04.png"},{index:2,name:"消息",img:"/static/tabbar/tab_05.png",acImg:"/static/tabbar/tab_06.png"},{index:3,name:"我的",img:"/static/tabbar/tab_07.png",acImg:"/static/tabbar/tab_08.png"}],codeheight:0,isOverall:0,phoneModel:""}},props:{tabBarShow:{type:Number,default:0}},mounted:function(){try{e.getSystemInfoSync();var t=this;e.getSystemInfo({success:function(e){console.log(e.brand),console.log(e.model),console.log(e.screenWidth),console.log(e.screenHeight),t.codeheight=Math.round(e.screenHeight),t.phoneModel=e.model,e.model.search("iPhone")?t.isOverall=0:Math.round(e.screenHeight)>740&&(t.isOverall=1),console.log(t.isOverall)}})}catch(a){}},methods:{onTabBar:function(e,t){switch(console.log(t),t){case 0:a.switchTab({url:"/pages/home/home"});break;case 1:a.switchTab({url:"/pages/workbench/workbench"});break;case 2:a.switchTab({url:"/pages/message/message"});break;case 3:a.switchTab({url:"/pages/my/my"});break}}}};t.default=n}).call(this,a("df3c")["default"],a("3223")["default"])},be58:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return c})),a.d(t,"a",(function(){}));var n=function(){var e=this.$createElement;this._self._c},c=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/tabbar/tabbar-create-component',
    {
        'components/tabbar/tabbar-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("3789"))
        })
    },
    [['components/tabbar/tabbar-create-component']]
]);