|
|
@@ -172,6 +172,9 @@
|
|
|
make.height.mas_equalTo(54);
|
|
|
}];
|
|
|
|
|
|
+ BOOL isShowLastFileType = [HWDataManager getBoolWithKey:Const_last_file_show];
|
|
|
+ self.NASLastFileV.eyeButton.selected = !isShowLastFileType;
|
|
|
+
|
|
|
//tableFooterView
|
|
|
NSString *text = NSLocalizedString(@"NAS_bottom_tip",nil);
|
|
|
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, 50)];
|
|
|
@@ -387,7 +390,9 @@
|
|
|
#pragma mark 点击最近文件模块
|
|
|
- (void)didClickLastFileFunBy:(NSInteger)tag
|
|
|
{
|
|
|
-
|
|
|
+ if(tag == 2){
|
|
|
+ [self getLastFileDataFun];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
#pragma mark 用户点击上传文件
|
|
|
@@ -475,7 +480,33 @@
|
|
|
_lastFileDataArr = [lastFileManager shareManager].lastFileListArr;
|
|
|
//HLog(@"%@",_lastFileDataArr);
|
|
|
|
|
|
- if(_lastFileDataArr.count > 0){
|
|
|
+ BOOL isShowLastFileType = [HWDataManager getBoolWithKey:Const_last_file_show];
|
|
|
+ if(!isShowLastFileType){
|
|
|
+ _tableHeadView.frame = CGRectMake(0, 0, SCREEN_W, 165+ 15 +120 +54 + 15);
|
|
|
+
|
|
|
+ [self.NASLastFileV mas_remakeConstraints:^(MASConstraintMaker *make) {
|
|
|
+ make.top.equalTo(_NASCommonUsedV.mas_bottom).offset(15);
|
|
|
+ make.left.mas_equalTo(0);
|
|
|
+ make.right.mas_equalTo(0);
|
|
|
+ make.height.mas_equalTo(54);
|
|
|
+ }];
|
|
|
+
|
|
|
+ self.NASLastFileV.notDataImageV.hidden = YES;
|
|
|
+ self.NASLastFileV.notDataLabel.hidden = YES;
|
|
|
+
|
|
|
+ //全圆角
|
|
|
+ UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, SCREEN_W-32 , 54)
|
|
|
+ byRoundingCorners:UIRectCornerAllCorners
|
|
|
+ cornerRadii:CGSizeMake(12, 12)];
|
|
|
+ CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
|
|
|
+ maskLayer.frame = self.NASLastFileV.bounds;
|
|
|
+ maskLayer.path = maskPath.CGPath;
|
|
|
+ self.NASLastFileV.whiteBgView.layer.mask = maskLayer;
|
|
|
+
|
|
|
+ _lastFileDataArr = [NSMutableArray new];
|
|
|
+
|
|
|
+ }
|
|
|
+ else if(_lastFileDataArr.count > 0){
|
|
|
_tableHeadView.frame = CGRectMake(0, 0, SCREEN_W, 165+ 15 +120 +54 + 15);
|
|
|
|
|
|
[self.NASLastFileV mas_remakeConstraints:^(MASConstraintMaker *make) {
|
|
|
@@ -488,15 +519,6 @@
|
|
|
self.NASLastFileV.notDataImageV.hidden = YES;
|
|
|
self.NASLastFileV.notDataLabel.hidden = YES;
|
|
|
|
|
|
-// /*上圆角*/
|
|
|
-// UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, SCREEN_W- 32 , 54)
|
|
|
-// byRoundingCorners:UIRectCornerAllCorners
|
|
|
-// cornerRadii:CGSizeMake(12, 12)];
|
|
|
-// CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
|
|
|
-// //maskLayer.frame = self.NASLastFileV.bounds;
|
|
|
-// maskLayer.frame = CGRectMake(0, 0, SCREEN_W -32, 54);
|
|
|
-// maskLayer.path = maskPath.CGPath;
|
|
|
-// self.NASLastFileV.layer.mask = maskLayer;
|
|
|
}
|
|
|
else{
|
|
|
_tableHeadView.frame = CGRectMake(0, 0, SCREEN_W, 165+ 15 +120 +254 + 15);
|