|
@@ -92,35 +92,41 @@
|
|
|
make.bottom.mas_equalTo(-15);
|
|
|
}];
|
|
|
|
|
|
+ KWeakSelf
|
|
|
#pragma mark 上传文件相关处理
|
|
|
headView.didClickBut = ^(NSInteger tag) {
|
|
|
-
|
|
|
- if(tag ==2 || tag ==3){
|
|
|
-
|
|
|
- if(self->_getBaseInfo){
|
|
|
- self->_getBaseInfo();
|
|
|
- }
|
|
|
-
|
|
|
- uploadImageOrVideoViewController *vc = [uploadImageOrVideoViewController new];
|
|
|
- if(tag ==2){
|
|
|
- vc.isPhotoType = YES;
|
|
|
- }
|
|
|
- else{
|
|
|
- vc.isPhotoType = NO;
|
|
|
- }
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
-
|
|
|
- }
|
|
|
- else if(tag == 1){
|
|
|
- uploadFileRecordViewController *vc = [uploadFileRecordViewController new];
|
|
|
- vc.isNotUploadingType = YES;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
- }
|
|
|
+ [weakSelf didClickUploadFileByTag:tag];
|
|
|
};
|
|
|
|
|
|
return bgView;
|
|
|
}
|
|
|
|
|
|
+#pragma mark 点击文件上传相关
|
|
|
+- (void)didClickUploadFileByTag:(NSInteger)tag
|
|
|
+{
|
|
|
+ if(tag ==2 || tag ==3){
|
|
|
+
|
|
|
+ if(self->_getBaseInfo){
|
|
|
+ self->_getBaseInfo();
|
|
|
+ }
|
|
|
+
|
|
|
+ uploadImageOrVideoViewController *vc = [uploadImageOrVideoViewController new];
|
|
|
+ if(tag ==2){
|
|
|
+ vc.isPhotoType = YES;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ vc.isPhotoType = NO;
|
|
|
+ }
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+
|
|
|
+ }
|
|
|
+ else if(tag == 1){
|
|
|
+ uploadFileRecordViewController *vc = [uploadFileRecordViewController new];
|
|
|
+ vc.isNotUploadingType = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
- (UIView *)tableFoorView{
|
|
|
UIView *bgView = [[UIView alloc] initWithFrame:(CGRectMake(0, 0, SCREEN_W, 68.f))];
|
|
|
[bgView setBackgroundColor:[UIColor clearColor]];
|