点击不同按钮切换不同按钮刷新数据
2018-09-20 本文已影响0人
summerTa
-(void)orderButtonClick:(UIButton*)btn{
self.selectedButton.enabled = YES;
btn.enabled=NO;
self.selectedButton = btn;
self.selectBtnTag=btn.tag;
switch(btn.tag) {
case 0:
NSLog(@"默认距离");
_strOrderType=@"default";
break;
case 1:
_strOrderType=@"comment";
NSLog(@"好评优选");
break;
case 2:
_strOrderType=@"goNum";
NSLog(@"人气最高");
break;
default:
break;
}
[self loadBookBarData:_strOrderType];
}