onLeft(index,type) {
this.select = index;
this.list = [];
this.goTop();
if(this.allFood.length>0){
if(type=='0'){
this.list =this.allFood
}else{
this.list = this.allFood.filter(function(item){
return item.type == type;
}).map(item=>{
return item
})
}
}
},