"use strict";const e=require("../../../../common/vendor.js"),a={data:()=>({TabBarList:[{index:0,name:"首页",img:"/static/tabbar/select_home.png",acImg:"/static/tabbar/home.png"},{index:1,name:"地图",img:"/static/tabbar/select_sq.png",acImg:"/static/tabbar/sq.png"},{index:2,name:"扫一扫",img:"/static/tabbar/find.png",acImg:"/static/tabbar/find.png"},{index:3,name:"订单",img:"/static/tabbar/select_order.png",acImg:"/static/tabbar/order.png"},{index:4,name:"我的",img:"/static/tabbar/select_my.png",acImg:"/static/tabbar/my.png"}],codeheight:0,isOverall:0,phoneModel:""}),props:{tabBarShow:{type:Number,default:0}},mounted(){try{e.index.getSystemInfoSync();let a=this;e.index.getSystemInfo({success(e){console.log(e.brand),console.log(e.model),console.log(e.screenWidth),console.log(e.screenHeight),a.codeheight=Math.round(e.screenHeight),a.phoneModel=e.model,e.model.search("iPhone")?a.isOverall=0:Math.round(e.screenHeight)>740&&(a.isOverall=1),console.log(a.isOverall)}})}catch(a){}},methods:{onTabBar(a,t){switch(t){case 0:e.index.switchTab({url:"/pages/home/home"});break;case 1:e.index.switchTab({url:"/pages/index/index"});break;case 2:e.index.switchTab({url:"/pages/sweep/sweep"});break;case 3:e.index.switchTab({url:"/pages/order/order"});break;case 4:e.index.switchTab({url:"/pages/mine/mine"})}}}};const t=e._export_sfc(a,[["render",function(a,t,n,s,r,i){return{a:e.f(r.TabBarList,((a,t,s)=>({a:a.acImg,b:n.tabBarShow===t,c:2==t?"40px":"24px",d:2==t?"12px":"0px",e:a.img,f:n.tabBarShow!=t,g:2==t?"40px":"24px",h:2==t?"12px":"0px",i:e.t(a.name),j:n.tabBarShow===t?1:"",k:2==t?"4px":"0px",l:e.o((e=>i.onTabBar(a,t)),t),m:2==t?"-18px":"0px",n:t})))}}],["__scopeId","data-v-f5968521"]]);wx.createComponent(t);
