| | |
| | | #import "PBRadioTableViewCell.h" |
| | | #import "PBCheckInfoTableViewCell.h" |
| | | #import "PBCheckImageTableViewCell.h" |
| | | #import "PBCheckHeaderView.h" |
| | | static NSString *const inputCellID = @"InputCellID"; |
| | | static NSString *const topTitleCellID = @"topTitleCellID"; |
| | | static NSString *const timeChooseCellID = @"timeChooseCellID"; |
| | |
| | | @property (nonatomic, strong) NSDictionary *typeDict; |
| | | @property (nonatomic, weak) UIButton *typeListBtn; |
| | | @property (nonatomic, weak) UIButton *functionBtn; |
| | | @property (nonatomic, strong) PBCheckHeaderView *tableheaderView1; |
| | | @end |
| | | |
| | | @implementation PBExamineDetailController |
| | |
| | | [self setupUI]; |
| | | } |
| | | - (void)setupUI { |
| | | // __weak typeof(self) weakSelf = self; |
| | | __weak typeof(self) weakSelf = self; |
| | | self.title = [self.examinDetailDic valueForKey:@"aedt_name"]; |
| | | self.view.backgroundColor = PBColor(244, 245, 246); |
| | | // self.view.backgroundColor = [UIColor blackColor]; |
| | |
| | | make.right.equalTo(self.view).offset(-10); |
| | | make.bottom.equalTo(self.view).offset(-(bottomH)); |
| | | }]; |
| | | NSArray *imageArr = [self.examinDetailDic valueForKey:@"imges"]; |
| | | if (imageArr.count > 0) { |
| | | self.tableheaderView1 = [[PBCheckHeaderView alloc] initWithFrame:CGRectMake(0, 0, self.view.width, 100)]; |
| | | self.tableheaderView1.PlayVideoUrlBlock = ^(NSString * _Nonnull url) { |
| | | [weakSelf.view endEditing:YES]; |
| | | NSLog(@"打开视频"); |
| | | PBVideoPlayViewController *playVC = [[PBVideoPlayViewController alloc] init]; |
| | | playVC.url = url; |
| | | [weakSelf.navigationController pushViewController:playVC animated:YES]; |
| | | }; |
| | | self.tableheaderView1.projectModel = self.projectModel; |
| | | self.tableheaderView1.isAddExamine = NO; |
| | | self.tableheaderView1.detailsImageArr = imageArr; |
| | | self.tableView.tableHeaderView = self.tableheaderView1; |
| | | } |
| | | UIView *linV = [[UIView alloc] init]; |
| | | linV.backgroundColor = PBColor(246, 246, 247); |
| | | [self.view addSubview:linV]; |