tabbar.js
2.5 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/tabbar/tabbar"],{"0557":function(a,t,e){"use strict";(function(a,e){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{a.getSystemInfoSync();var t=this;a.getSystemInfo({success:function(a){console.log(a.brand),console.log(a.model),console.log(a.screenWidth),console.log(a.screenHeight),t.codeheight=Math.round(a.screenHeight),t.phoneModel=a.model,a.model.search("iPhone")?t.isOverall=0:Math.round(a.screenHeight)>740&&(t.isOverall=1),console.log(t.isOverall)}})}catch(e){}},methods:{onTabBar:function(a,t){switch(console.log(t),t){case 0:e.switchTab({url:"/pages/home/home"});break;case 1:e.switchTab({url:"/pages/workbench/workbench"});break;case 2:e.switchTab({url:"/pages/message/message"});break;case 3:e.switchTab({url:"/pages/my/my"});break}}}};t.default=n}).call(this,e("df3c")["default"],e("3223")["default"])},"0a4d":function(a,t,e){"use strict";e.d(t,"b",(function(){return n})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){}));var n=function(){var a=this.$createElement;this._self._c},c=[]},"1b66":function(a,t,e){},"2ad8":function(a,t,e){"use strict";var n=e("1b66"),c=e.n(n);c.a},"8d20":function(a,t,e){"use strict";e.r(t);var n=e("0a4d"),c=e("df6d");for(var o in c)["default"].indexOf(o)<0&&function(a){e.d(t,a,(function(){return c[a]}))}(o);e("2ad8");var r=e("828b"),s=Object(r["a"])(c["default"],n["b"],n["c"],!1,null,"7af90fff",null,!1,n["a"],void 0);t["default"]=s.exports},df6d:function(a,t,e){"use strict";e.r(t);var n=e("0557"),c=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(a){e.d(t,a,(function(){return n[a]}))}(o);t["default"]=c.a}}]);
;(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__("8d20"))
})
},
[['components/tabbar/tabbar-create-component']]
]);