"use strict";const common_vendor=require("../../../../common/vendor.js");const _sfc_main={data(){return{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{const res=common_vendor.index.getSystemInfoSync();let that=this;common_vendor.index.getSystemInfo({success(res2){console.log(res2.brand);console.log(res2.model);console.log(res2.screenWidth);console.log(res2.screenHeight);that.codeheight=Math.round(res2.screenHeight);that.phoneModel=res2.model;if(res2.model.search("iPhone")){that.isOverall=0}else if(Math.round(res2.screenHeight)>740){that.isOverall=1}console.log(that.isOverall)}})}catch(e){}},methods:{onTabBar(item,index){switch(index){case 0:common_vendor.index.switchTab({url:"/pages/home/home"});break;case 1:common_vendor.index.switchTab({url:"/pages/index/index"});break;case 2:common_vendor.index.switchTab({url:"/pages/sweep/sweep"});break;case 3:common_vendor.index.switchTab({url:"/pages/order/order"});break;case 4:common_vendor.index.switchTab({url:"/pages/mine/mine"});break}}}};function _sfc_render(_ctx,_cache,$props,$setup,$data,$options){return{a:common_vendor.f($data.TabBarList,((item,index,i0)=>({a:item.acImg,b:$props.tabBarShow===index,c:index==2?"40px":"24px",d:index==2?"12px":"0px",e:item.img,f:$props.tabBarShow!=index,g:index==2?"40px":"24px",h:index==2?"12px":"0px",i:common_vendor.t(item.name),j:$props.tabBarShow===index?1:"",k:index==2?"4px":"0px",l:common_vendor.o(($event=>$options.onTabBar(item,index))),m:index==2?"-18px":"0px",n:index})))}}const Component=common_vendor._export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-f5968521"]]);my.createComponent(Component);
