watch:{
nowPhoneHeight:function(){
var tabbar = document.getElementsByClassName("tabBar");if(this.defaultPhoneHeight !=this.nowPhoneHeight){
// 当软键盘弹出,隐藏tabbarfor(let index =0; index < tabbar.length; index++){
let element = tabbar[index];
element.style.display ="none";}}else{
// 相等代表软键盘收起后,显示tabbarfor(let index =0; index < tabbar.length; index++){
let element = tabbar[index];
element.style.display ="block";}}}},