huangxiaodong пре 1 година
родитељ
комит
e1abdae1ba

+ 14 - 2
创维盒子/双子星云手机.xcodeproj/project.pbxproj

@@ -169,6 +169,10 @@
 		6B07AC262BF85859005C2B0E /* ShareRecordModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B07AC242BF85859005C2B0E /* ShareRecordModel.m */; };
 		6B07AC272BF85859005C2B0E /* ShareRecordModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B07AC242BF85859005C2B0E /* ShareRecordModel.m */; };
 		6B07AC282BF85859005C2B0E /* ShareRecordModel.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B07AC232BF85859005C2B0E /* ShareRecordModel.h */; };
+		6B07AC2B2BF8D38F005C2B0E /* NASFileAudioModel.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B07AC292BF8D38F005C2B0E /* NASFileAudioModel.h */; };
+		6B07AC2C2BF8D38F005C2B0E /* NASFileAudioModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B07AC2A2BF8D38F005C2B0E /* NASFileAudioModel.m */; };
+		6B07AC2D2BF8D38F005C2B0E /* NASFileAudioModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B07AC2A2BF8D38F005C2B0E /* NASFileAudioModel.m */; };
+		6B07AC2E2BF8D38F005C2B0E /* NASFileAudioModel.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B07AC292BF8D38F005C2B0E /* NASFileAudioModel.h */; };
 		6B1CC2C62B677F3E00AD4217 /* extraMediaEventModel.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B1CC2C42B677F3D00AD4217 /* extraMediaEventModel.h */; };
 		6B1CC2C72B677F3E00AD4217 /* extraMediaEventModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B1CC2C52B677F3D00AD4217 /* extraMediaEventModel.m */; };
 		6B1CC2CA2B67A5FC00AD4217 /* USBInsertPopView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B1CC2C82B67A5FC00AD4217 /* USBInsertPopView.h */; };
@@ -1091,6 +1095,8 @@
 		6B0582882B045E0B00D37290 /* uploadFileDataModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = uploadFileDataModel.m; sourceTree = "<group>"; };
 		6B07AC232BF85859005C2B0E /* ShareRecordModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ShareRecordModel.h; sourceTree = "<group>"; };
 		6B07AC242BF85859005C2B0E /* ShareRecordModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ShareRecordModel.m; sourceTree = "<group>"; };
+		6B07AC292BF8D38F005C2B0E /* NASFileAudioModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NASFileAudioModel.h; sourceTree = "<group>"; };
+		6B07AC2A2BF8D38F005C2B0E /* NASFileAudioModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NASFileAudioModel.m; sourceTree = "<group>"; };
 		6B1CC2C42B677F3D00AD4217 /* extraMediaEventModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = extraMediaEventModel.h; sourceTree = "<group>"; };
 		6B1CC2C52B677F3D00AD4217 /* extraMediaEventModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = extraMediaEventModel.m; sourceTree = "<group>"; };
 		6B1CC2C82B67A5FC00AD4217 /* USBInsertPopView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = USBInsertPopView.h; sourceTree = "<group>"; };
@@ -2183,6 +2189,8 @@
 			children = (
 				6B7EA7962BF5B4A6002D5CC2 /* NASFilePicModel.h */,
 				6B7EA7972BF5B4A6002D5CC2 /* NASFilePicModel.m */,
+				6B07AC292BF8D38F005C2B0E /* NASFileAudioModel.h */,
+				6B07AC2A2BF8D38F005C2B0E /* NASFileAudioModel.m */,
 				6B7EA7A82BF72D3B002D5CC2 /* queryShareModel.h */,
 				6B7EA7A92BF72D3B002D5CC2 /* queryShareModel.m */,
 				6B7EA7AE2BF73DEB002D5CC2 /* addShareModel.h */,
@@ -2747,6 +2755,7 @@
 				6B1CC2CE2B6B6D6B00AD4217 /* commandSendCheckModel.h in Headers */,
 				6B0581602AFCD0DF00D37290 /* uploadImageOrVideoViewController.h in Headers */,
 				18F9CB092ABD7835003FF71A /* TipsQRCodeForChangeDeviceViewController.h in Headers */,
+				6B07AC2B2BF8D38F005C2B0E /* NASFileAudioModel.h in Headers */,
 				6B5B60722B3D8098009A2AE2 /* fileTransferPathCheckTableViewCell.h in Headers */,
 				6B3A4B152B6F69A500F74679 /* cloudPhoneCommonModel.h in Headers */,
 				6B05819F2AFCF4E800D37290 /* AJPhotoListView.h in Headers */,
@@ -2897,6 +2906,7 @@
 				6BD506F52B9576A4006E7CB0 /* commandSendCheckModel.h in Headers */,
 				6BD506F62B9576A4006E7CB0 /* uploadImageOrVideoViewController.h in Headers */,
 				6BD506F72B9576A4006E7CB0 /* TipsQRCodeForChangeDeviceViewController.h in Headers */,
+				6B07AC2E2BF8D38F005C2B0E /* NASFileAudioModel.h in Headers */,
 				6BD506F82B9576A4006E7CB0 /* fileTransferPathCheckTableViewCell.h in Headers */,
 				6BD506F92B9576A4006E7CB0 /* cloudPhoneCommonModel.h in Headers */,
 				6BD506FA2B9576A4006E7CB0 /* AJPhotoListView.h in Headers */,
@@ -3503,6 +3513,7 @@
 				6BD507C12B9576A4006E7CB0 /* FLAnimatedImageView.m in Sources */,
 				6BEA31772BB65606005167AA /* clearCacheAlretViewController.m in Sources */,
 				6BD507C22B9576A4006E7CB0 /* DeviceThirdIdModel.m in Sources */,
+				6B07AC2D2BF8D38F005C2B0E /* NASFileAudioModel.m in Sources */,
 				6B9354A32BF37D2D00AA8D31 /* previewAudioOrDocumentViewController.m in Sources */,
 				6BD507C32B9576A4006E7CB0 /* HidenMaskSetViewController.m in Sources */,
 				6BD507C42B9576A4006E7CB0 /* filePathCreatTableViewCell.m in Sources */,
@@ -3738,6 +3749,7 @@
 				A003F6C127D841FF00715CBF /* FLAnimatedImageView.m in Sources */,
 				6BEA31762BB65606005167AA /* clearCacheAlretViewController.m in Sources */,
 				6BF0F3D62AD3937B000AA133 /* DeviceThirdIdModel.m in Sources */,
+				6B07AC2C2BF8D38F005C2B0E /* NASFileAudioModel.m in Sources */,
 				6B9354A02BF37D2D00AA8D31 /* previewAudioOrDocumentViewController.m in Sources */,
 				184C8ACD2A94557200F26650 /* HidenMaskSetViewController.m in Sources */,
 				6B5B607B2B3E71B6009A2AE2 /* filePathCreatTableViewCell.m in Sources */,
@@ -4190,7 +4202,7 @@
 				CODE_SIGN_IDENTITY = "Apple Development";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Manual;
-				CURRENT_PROJECT_VERSION = 1;
+				CURRENT_PROJECT_VERSION = 2;
 				DEVELOPMENT_TEAM = "";
 				"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 6SV76WTUUR;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -4271,7 +4283,7 @@
 				CODE_SIGN_IDENTITY = "Apple Development";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Manual;
-				CURRENT_PROJECT_VERSION = 1;
+				CURRENT_PROJECT_VERSION = 2;
 				DEVELOPMENT_TEAM = "";
 				"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 6SV76WTUUR;
 				FRAMEWORK_SEARCH_PATHS = (

+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/Set/uploadFile_audio.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "uploadFile_audio@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "uploadFile_audio@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/Set/uploadFile_audio.imageset/uploadFile_audio@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/Set/uploadFile_audio.imageset/uploadFile_audio@3x.png


+ 34 - 0
创维盒子/双子星云手机/Class/Set/previewFile/model/NASFileAudioModel.h

@@ -0,0 +1,34 @@
+//
+//  NASFileAudioModel.h
+//  双子星云手机
+//
+//  Created by xd h on 2024/5/18.
+//
+
+#import "SuperModel.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface NASFileAudioDataModel : SuperModel
+@property (nonatomic, copy) NSString*path;
+@property (nonatomic, copy) NSString*name;
+@property (nonatomic, copy) NSString*time;
+@property (nonatomic, assign) long  size;
+@property (nonatomic, copy) NSString*type;
+@property (nonatomic, assign) NSInteger duration;
+
+//自定义
+@property (nonatomic, assign) BOOL isSelectType;
+@end
+
+@protocol NASFileAudioDataModel;
+@interface NASFileAudioDataArrModel : SuperModel
+@property (nonatomic, strong) NSArray<NASFileAudioDataModel>* list;
+@end
+
+
+@interface NASFileAudioModel : SuperModel
+@property (nonatomic, strong) NASFileAudioDataArrModel* data;
+@end
+
+NS_ASSUME_NONNULL_END

+ 20 - 0
创维盒子/双子星云手机/Class/Set/previewFile/model/NASFileAudioModel.m

@@ -0,0 +1,20 @@
+//
+//  NASFileAudioModel.m
+//  双子星云手机
+//
+//  Created by xd h on 2024/5/18.
+//
+
+#import "NASFileAudioModel.h"
+
+@implementation NASFileAudioDataModel
+
+@end
+
+@implementation NASFileAudioDataArrModel
+
+@end
+
+@implementation NASFileAudioModel
+
+@end

+ 1 - 0
创维盒子/双子星云手机/Class/Set/previewFile/model/NASFilePicModel.h

@@ -14,6 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
 @property (nonatomic, copy) NSString*name;
 @property (nonatomic, copy) NSString*time;
 @property (nonatomic, assign) long  size;
+@property (nonatomic, assign) NSInteger duration;//视频时长
 
 //自定义
 @property (nonatomic, assign) BOOL isSelectType;

+ 67 - 50
创维盒子/双子星云手机/Class/Set/previewFile/previewAudioOrDocumentViewController.m

@@ -19,8 +19,8 @@
 #import "editTypeBottomView.h"
 #import "editShareView.h"
 #import "previewToUploadFileView.h"
-
 #import "netWorkManager.h"
+#import "NASFileAudioModel.h"
 
 @interface previewAudioOrDocumentViewController ()<UITableViewDelegate,UITableViewDataSource,DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
 {
@@ -45,8 +45,8 @@
 @property(nonatomic,strong) editTypeBottomView*curEditTypeBottomView;
 @property(nonatomic,strong) UIButton*uploadFileButton;
 
-@property(nonatomic,strong) couldPhoneFileListModel *curCouldPhoneFileListMod;
 @property (nonatomic, strong)  NSMutableArray*didSelectListArr;//选中的数据
+@property (nonatomic, strong)NASFileAudioModel * curNASFileAudioMod;
 @end
 
 @implementation previewAudioOrDocumentViewController
@@ -301,11 +301,11 @@
        && ![self.defaultDiskPath isEqualToString:pathStr]){
         //切换硬盘了 取消全选
         
-        //_rightSelectAllButton.selected = YES;
-        //[self didClickSelectAllButton:_rightSelectAllButton];
+        [_didSelectListArr removeAllObjects];
     }
     
     self.defaultDiskPath = pathStr;
+    [self getFileListFun];
     [self setTitleAfterGetdiskFun];
     [self hideDiskListVieFun];
 }
@@ -316,10 +316,10 @@
 }
 
 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
-    if(!_curCouldPhoneFileListMod){
+    if(!_curNASFileAudioMod){
         return 0;
     }
-    return _curCouldPhoneFileListMod.data.list.count;
+    return _curNASFileAudioMod.data.list.count;
 }
 
 - (downLoadPreViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
@@ -343,15 +343,15 @@
         
     }
     
-    if(row < _curCouldPhoneFileListMod.data.list.count){
-        couldPhoneFileModel* fileModel = _curCouldPhoneFileListMod.data.list[row];
-        cell.curFileModel = fileModel;
+    if(row < _curNASFileAudioMod.data.list.count){
+        NASFileAudioDataModel* dataModel = _curNASFileAudioMod.data.list[row];
+        cell.curNASFileAudioDataModel = dataModel;
         
         KWeakSelf
         cell.didClickSwitch = ^(BOOL SwitchOn) {
-            if([weakSelf userCheckFileModel:fileModel withShowTip:YES]){
-                [weakSelf userCheckFilePreviewByRow:row];
-            }
+//            if([weakSelf userCheckFileModel:fileModel withShowTip:YES]){
+//                [weakSelf userCheckFilePreviewByRow:row];
+//            }
         };
     }
     return cell;
@@ -364,13 +364,13 @@
 #pragma mark 空数据
 - (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView {
     
-    NSString *imageName = @"uploadFile_noData";
+    NSString *imageName = @"common_no_data_pic";
     
     return [UIImage imageNamed:imageName];
 }
 
 - (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView {
-    NSString *text = NSLocalizedString(@"File_download_file_no_data",nil);
+    NSString *text = NSLocalizedString(@"common_no_data_tip",nil);
     
     NSDictionary *attributes = @{NSFontAttributeName: [UIFont systemFontOfSize:16.0f],
                                  NSForegroundColorAttributeName: HW999999Color};
@@ -478,21 +478,21 @@
 
 - (void)userCheckFilePreviewByRow:(NSInteger)row
 {
-    if(row < _curCouldPhoneFileListMod.data.list.count){
-        couldPhoneFileModel* fileModel = _curCouldPhoneFileListMod.data.list[row];
-        
-        if(fileModel.isSelectType){
-            [_didSelectListArr removeObject:fileModel];
-        }
-        else{
-            [_didSelectListArr addObject:fileModel];
-        }
-        
-         fileModel.isSelectType = !fileModel.isSelectType;
-        //[self.tableView reloadData];
-        //[self.dataCollectionView reloadData];
-        [self setEditTypeTitleFun];
-    }
+//    if(row < _curCouldPhoneFileListMod.data.list.count){
+//        couldPhoneFileModel* fileModel = _curCouldPhoneFileListMod.data.list[row];
+//        
+//        if(fileModel.isSelectType){
+//            [_didSelectListArr removeObject:fileModel];
+//        }
+//        else{
+//            [_didSelectListArr addObject:fileModel];
+//        }
+//        
+//         fileModel.isSelectType = !fileModel.isSelectType;
+//        //[self.tableView reloadData];
+//        //[self.dataCollectionView reloadData];
+//        [self setEditTypeTitleFun];
+//    }
 }
 
 - (void)didClickSelectAllButton:(UIButton*)button
@@ -502,22 +502,22 @@
     
     [_didSelectListArr removeAllObjects];
     
-    for (couldPhoneFileModel* fileModel in _curCouldPhoneFileListMod.data.list) {
-        
-        if(!button.selected){
-            fileModel.isSelectType = button.selected;
-        }
-        else{
-            [_didSelectListArr addObject:fileModel];
-            if([self userCheckFileModel:fileModel withShowTip:NO]){
-                fileModel.isSelectType = button.selected;
-            }
-            else{
-                isNeedShowTip = YES;
-            }
-        }
-        
-    }
+//    for (couldPhoneFileModel* fileModel in _curCouldPhoneFileListMod.data.list) {
+//        
+//        if(!button.selected){
+//            fileModel.isSelectType = button.selected;
+//        }
+//        else{
+//            [_didSelectListArr addObject:fileModel];
+//            if([self userCheckFileModel:fileModel withShowTip:NO]){
+//                fileModel.isSelectType = button.selected;
+//            }
+//            else{
+//                isNeedShowTip = YES;
+//            }
+//        }
+//        
+//    }
     
     if(isNeedShowTip){
         if(_isAudioType){
@@ -672,12 +672,10 @@
 - (void)setTitleAfterGetdiskFun
 {
     if(_isAudioType){
-        //self.titleLabel.text = NSLocalizedString(@"my_set_no_image_upload",nil) ;
-        [self setTitleLabelText:NSLocalizedString(@"my_set_no_image_upload",nil)];
+        [self setTitleLabelText:NSLocalizedString(@"my_set_no_music",nil)];
     }
     else{
-        //self.titleLabel.text = NSLocalizedString(@"my_set_no_video_upload",nil) ;
-        [self setTitleLabelText:NSLocalizedString(@"my_set_no_video_upload",nil)];
+        [self setTitleLabelText:NSLocalizedString(@"my_set_no_file",nil)];
     }
     
 }
@@ -693,7 +691,9 @@
     [self showDownloadTipFun];
     [self checkFileTransferTask];
     
-    [self getFileListFun];
+    if(!_curNASFileAudioMod){
+        [self getFileListFun];
+    }
 }
 
 - (void)viewWillDisappear:(BOOL)animated{
@@ -795,12 +795,29 @@
         [paraDict setValue:@"file" forKey:@"type"];
     }
     
+    NSArray *diskNameArr = [_defaultDiskPath componentsSeparatedByString:@"/"];
+    if(diskNameArr && diskNameArr.count >= 2){
+        
+        NSString *name = diskNameArr.lastObject;
+        if(name.length == 0)
+        {
+            name = diskNameArr[diskNameArr.count -2];
+        }
+        
+        [paraDict setValue:name forKey:@"path"];
+    }
     
     [self showNewIndicatorHaveStrWithCanBack:YES canTouch:NO showText:NSLocalizedString(@"common_loading_tip",nil)];
     
     KWeakSelf
     [[netWorkManager shareInstance] cloudPhoneGETCallBackCode:@"getFileList" Parameters:paraDict success:^(id  _Nonnull responseObject) {
         [weakSelf removeNewIndicatorHaveStr];
+        weakSelf.curNASFileAudioMod = [[NASFileAudioModel alloc] initWithDictionary:responseObject error:nil];
+        
+        if(weakSelf.curNASFileAudioMod && weakSelf.curNASFileAudioMod.status == 0){
+            [weakSelf.tableView reloadData];
+        }
+        
     } failure:^(NSError * _Nonnull error) {
         [weakSelf removeNewIndicatorHaveStr];
     }];

+ 1 - 1
创维盒子/双子星云手机/Class/Set/previewFile/previewImageOrVideoViewController.m

@@ -434,7 +434,7 @@
 }
 
 - (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView {
-    NSString *text = NSLocalizedString(@"File_download_file_no_data",nil);
+    NSString *text = NSLocalizedString(@"common_no_data_tip",nil);
     
     NSDictionary *attributes = @{NSFontAttributeName: [UIFont systemFontOfSize:16.0f],
                                  NSForegroundColorAttributeName: HW999999Color};

+ 4 - 3
创维盒子/双子星云手机/Class/Set/previewFile/view/previewToUploadFileView.m

@@ -154,11 +154,12 @@
 
 - (void)didClickButFun:(UIButton*)but
 {
-    NSInteger tag = but.tag;
+    [self removeFromSuperview];
     
-    //if(tag == 100)
+    NSInteger tag = but.tag;
+    if(tag == 100)
     {
-        [self removeFromSuperview];
+        return;
     }
     
     if(_didClickButtonFun){

+ 2 - 1
创维盒子/双子星云手机/Class/Set/uploadFile/downLoadFile/view/downLoadPreViewCell.h

@@ -7,7 +7,7 @@
 
 #import <UIKit/UIKit.h>
 #import "couldPhoneFileListModel.h"
-
+#import "NASFileAudioModel.h"
 NS_ASSUME_NONNULL_BEGIN
 
 @interface downLoadPreViewCell : UITableViewCell
@@ -23,6 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
 @property (nonatomic,copy) void (^didClickSwitch)(BOOL SwitchOn);
 
 @property(nonatomic,strong) couldPhoneFileModel*curFileModel;
+@property(nonatomic,strong) NASFileAudioDataModel*curNASFileAudioDataModel;
 @end
 
 NS_ASSUME_NONNULL_END

+ 58 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/downLoadFile/view/downLoadPreViewCell.m

@@ -195,4 +195,62 @@
     titleLabel.attributedText = noteStr;
 }
 
+
+- (void)setCurNASFileAudioDataModel:(NASFileAudioDataModel *)curNASFileAudioDataModel
+{
+    _curNASFileAudioDataModel = curNASFileAudioDataModel;
+    
+    mImageView.image = [UIImage imageNamed:@"uploadFile_image"];
+    if([_curNASFileAudioDataModel.type isEqualToString:@"video"])
+    {
+        mImageView.image = [UIImage imageNamed:@"uploadFile_Video"];
+    }
+    else if([_curNASFileAudioDataModel.type isEqualToString:@"audio"])
+    {
+        mImageView.image = [UIImage imageNamed:@"uploadFile_audio"];
+    }
+        
+    checkButton.selected = _curNASFileAudioDataModel.isSelectType;
+
+    
+    //时间戳转换为日期
+    NSString *dateStr = _curNASFileAudioDataModel.time;
+    
+    NSString * totalSizeStr = nil;
+    NSInteger totalSize_k = _curNASFileAudioDataModel.size / 1024;
+    if(totalSize_k == 0){
+        totalSize_k = 1;
+    }
+    
+    if(totalSize_k < 1024){
+        totalSizeStr = [[NSString alloc] initWithFormat:@"%ldKB",totalSize_k];
+    }
+    else if( totalSize_k >= 1024 && totalSize_k < 1024*1024){
+        totalSizeStr = [[NSString alloc] initWithFormat:@"%.1fMB",totalSize_k/1024.0];
+        
+    }
+    else{
+        totalSizeStr = [[NSString alloc] initWithFormat:@"%.2fG",totalSize_k/1024.0/1024.0];
+    }
+    
+    NSString * leftStr = _curNASFileAudioDataModel.name;
+    NSString * rightStr = [[NSString alloc] initWithFormat:@"\n%@      %@",dateStr,totalSizeStr];
+    
+    
+    NSString *totalStr = [[NSString alloc] initWithFormat:@"%@%@",leftStr,rightStr];
+    
+    NSMutableAttributedString *noteStr = [[NSMutableAttributedString alloc] initWithString:totalStr];
+    
+    NSRange redRange = NSMakeRange([totalStr rangeOfString:rightStr].location, [totalStr rangeOfString:rightStr].length);
+    [noteStr addAttribute:NSForegroundColorAttributeName value:[UIColor hwColor:@"#666666" alpha:1.0] range:redRange];
+    [noteStr addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:12.0] range:redRange];
+    // 设置行间距
+    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
+    [paragraphStyle setLineSpacing:5];        //设置行间距
+    
+    [noteStr addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [totalStr  length])];
+    
+    
+    titleLabel.attributedText = noteStr;
+}
 @end