美文网首页
点击不同按钮切换不同按钮刷新数据

点击不同按钮切换不同按钮刷新数据

作者: summerTa | 来源:发表于2018-09-20 11:57 被阅读0次

-(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];

}

相关文章

网友评论

      本文标题:点击不同按钮切换不同按钮刷新数据

      本文链接:https://www.haomeiwen.com/subject/azwgnftx.html