| | |
| | | } |
| | | |
| | | -(void)addSubViews{ |
| | | |
| | | [super addSubViews]; |
| | | // |
| | | _visitorRecordV=[[HDLEZVisitorRecordView alloc] init]; |
| | | [self.view addSubview:_visitorRecordV]; |
| | |
| | | [weakSelf.header endRefreshing]; |
| | | if (responseData.success) { |
| | | weakSelf.visitorRecordV.temPList=[NSArray yy_modelArrayWithClass:[HDLEZTemInfoModel class] json:responseData.data]; |
| | | // if (weakSelf.visitorRecordV.temPList.count==0) { |
| | | // |
| | | // } |
| | | if (weakSelf.visitorRecordV.temPList.count==0) {//展示无数据 |
| | | [weakSelf showNoDataViewWithMessage:HDLEZLocallizedString(@"hdl_ez_common_no_data")]; |
| | | }else{ |
| | | [weakSelf hideNoDataView]; |
| | | } |
| | | }else{ |
| | | [weakSelf.view makeToast:responseData.message |
| | | duration:1.5 |