huangxiaodong 1 рік тому
батько
коміт
0803e0ff62
17 змінених файлів з 383 додано та 1 видалено
  1. 12 0
      创维盒子/双子星云手机.xcodeproj/project.pbxproj
  2. 22 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_qq_icon.imageset/Contents.json
  3. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_qq_icon.imageset/share_qq_icon@2x.png
  4. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_qq_icon.imageset/share_qq_icon@3x.png
  5. 22 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_secret_icon.imageset/Contents.json
  6. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_secret_icon.imageset/share_secret_icon@2x.png
  7. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_secret_icon.imageset/share_secret_icon@3x.png
  8. 22 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_weixin_Timeline_icon.imageset/Contents.json
  9. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_weixin_Timeline_icon.imageset/share_weixin_Timeline_icon@2x.png
  10. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_weixin_Timeline_icon.imageset/share_weixin_Timeline_icon@3x.png
  11. 22 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_weixin_icon.imageset/Contents.json
  12. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_weixin_icon.imageset/share_weixin_icon@2x.png
  13. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/share_weixin_icon.imageset/share_weixin_icon@3x.png
  14. 28 0
      创维盒子/双子星云手机/Class/Set/previewFile/previewImageOrVideoViewController.m
  15. 16 0
      创维盒子/双子星云手机/Class/Set/previewFile/view/editShareView.h
  16. 230 0
      创维盒子/双子星云手机/Class/Set/previewFile/view/editShareView.m
  17. 9 1
      创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

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

@@ -313,6 +313,10 @@
 		6B93548F2BF30A8C00AA8D31 /* editTypeBottomView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B93548C2BF30A8C00AA8D31 /* editTypeBottomView.h */; };
 		6B9354902BF30A8C00AA8D31 /* editTypeBottomView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B93548C2BF30A8C00AA8D31 /* editTypeBottomView.h */; };
 		6B9354912BF30A8C00AA8D31 /* editTypeBottomView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B93548D2BF30A8C00AA8D31 /* editTypeBottomView.m */; };
+		6B9354942BF33F2700AA8D31 /* editShareView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B9354932BF33F2700AA8D31 /* editShareView.m */; };
+		6B9354952BF33F2700AA8D31 /* editShareView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B9354922BF33F2700AA8D31 /* editShareView.h */; };
+		6B9354962BF33F2700AA8D31 /* editShareView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B9354922BF33F2700AA8D31 /* editShareView.h */; };
+		6B9354972BF33F2700AA8D31 /* editShareView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B9354932BF33F2700AA8D31 /* editShareView.m */; };
 		6B97143F2BCD00CA00CE0096 /* ComontAlretType2ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B97143E2BCD00C900CE0096 /* ComontAlretType2ViewController.m */; };
 		6B9714402BCD00CA00CE0096 /* ComontAlretType2ViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B97143D2BCD00C900CE0096 /* ComontAlretType2ViewController.h */; };
 		6B9714412BCD00CA00CE0096 /* ComontAlretType2ViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B97143D2BCD00C900CE0096 /* ComontAlretType2ViewController.h */; };
@@ -1171,6 +1175,8 @@
 		6B9354872BF2FE8700AA8D31 /* editTypeHeadView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = editTypeHeadView.m; sourceTree = "<group>"; };
 		6B93548C2BF30A8C00AA8D31 /* editTypeBottomView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = editTypeBottomView.h; sourceTree = "<group>"; };
 		6B93548D2BF30A8C00AA8D31 /* editTypeBottomView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = editTypeBottomView.m; sourceTree = "<group>"; };
+		6B9354922BF33F2700AA8D31 /* editShareView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = editShareView.h; sourceTree = "<group>"; };
+		6B9354932BF33F2700AA8D31 /* editShareView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = editShareView.m; sourceTree = "<group>"; };
 		6B97143D2BCD00C900CE0096 /* ComontAlretType2ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ComontAlretType2ViewController.h; sourceTree = "<group>"; };
 		6B97143E2BCD00C900CE0096 /* ComontAlretType2ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ComontAlretType2ViewController.m; sourceTree = "<group>"; };
 		6BA533362B16E65500D1CB5C /* TvStatusModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TvStatusModel.h; sourceTree = "<group>"; };
@@ -1950,6 +1956,8 @@
 				6B9354872BF2FE8700AA8D31 /* editTypeHeadView.m */,
 				6B93548C2BF30A8C00AA8D31 /* editTypeBottomView.h */,
 				6B93548D2BF30A8C00AA8D31 /* editTypeBottomView.m */,
+				6B9354922BF33F2700AA8D31 /* editShareView.h */,
+				6B9354932BF33F2700AA8D31 /* editShareView.m */,
 			);
 			path = view;
 			sourceTree = "<group>";
@@ -2603,6 +2611,7 @@
 				6B5D40432B4CF04C000965CF /* PlayerViewController+downloadFile.h in Headers */,
 				6B5D40152B47F27A000965CF /* couldPhoneCommonModel.h in Headers */,
 				18BB18412AC417CB00A36F63 /* RYShearDeviceUDPManager.h in Headers */,
+				6B9354952BF33F2700AA8D31 /* editShareView.h in Headers */,
 				184C8AD52A949D5900F26650 /* AboutViewController.h in Headers */,
 				6B34DC672BF1FFB1002DD1EF /* imageCollectionViewCell.h in Headers */,
 				6B0581A22AFCF50300D37290 /* AJPhotoListCell.h in Headers */,
@@ -2738,6 +2747,7 @@
 				6BD506EF2B9576A4006E7CB0 /* PlayerViewController+downloadFile.h in Headers */,
 				6BD506F02B9576A4006E7CB0 /* couldPhoneCommonModel.h in Headers */,
 				6BD506F12B9576A4006E7CB0 /* RYShearDeviceUDPManager.h in Headers */,
+				6B9354962BF33F2700AA8D31 /* editShareView.h in Headers */,
 				6BD506F22B9576A4006E7CB0 /* AboutViewController.h in Headers */,
 				6B34DC692BF1FFB1002DD1EF /* imageCollectionViewCell.h in Headers */,
 				6BD506F32B9576A4006E7CB0 /* AJPhotoListCell.h in Headers */,
@@ -3171,6 +3181,7 @@
 				6BD507282B9576A4006E7CB0 /* PwdInPutView.m in Sources */,
 				6BD507292B9576A4006E7CB0 /* RYShearDeviceUDPManager.m in Sources */,
 				6BD5072A2B9576A4006E7CB0 /* TipsQRCodeForChangeDeviceViewController.m in Sources */,
+				6B9354972BF33F2700AA8D31 /* editShareView.m in Sources */,
 				6BD5072B2B9576A4006E7CB0 /* fileTransfeSetViewController.m in Sources */,
 				6BD5072C2B9576A4006E7CB0 /* UIButton+AFNetworking.m in Sources */,
 				6BD5072D2B9576A4006E7CB0 /* backupsFilerecordTableView.m in Sources */,
@@ -3391,6 +3402,7 @@
 				18E557292A3C60ED005CC84B /* PwdInPutView.m in Sources */,
 				18BB18422AC417CB00A36F63 /* RYShearDeviceUDPManager.m in Sources */,
 				18F9CB062ABD7835003FF71A /* TipsQRCodeForChangeDeviceViewController.m in Sources */,
+				6B9354942BF33F2700AA8D31 /* editShareView.m in Sources */,
 				6B5B60662B3D5FD8009A2AE2 /* fileTransfeSetViewController.m in Sources */,
 				183AE6502A8A2CF000B11CB0 /* UIButton+AFNetworking.m in Sources */,
 				6B1FBD3B2B467A8000926382 /* backupsFilerecordTableView.m in Sources */,

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

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

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


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


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

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

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


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


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

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

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


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


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

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

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


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


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

@@ -18,6 +18,7 @@
 #import "titleLabelReusableView.h"
 #import "editTypeHeadView.h"
 #import "editTypeBottomView.h"
+#import "editShareView.h"
 
 @interface previewImageOrVideoViewController ()<UICollectionViewDelegate,UICollectionViewDataSource,DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
 {
@@ -105,6 +106,19 @@
         make.height.mas_equalTo(60 + AdaptTabHeight);
     }];
     
+#pragma mark 编辑状态的 下载 分享 删除 响应事件
+    _curEditTypeBottomView.didClickButtonFun = ^(NSInteger tag) {
+        if(tag==1){
+            [[iToast makeText:@"点击下载"] show];
+        }
+        else if(tag==2){
+            [weakSelf gotoShareViewFun];
+        }
+        else if(tag==3){
+            [[iToast makeText:@"点击删除"] show];
+        }
+    };
+    
     [self.view addSubview:self.dataCollectionView];
     [self.dataCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
         make.left.mas_equalTo(0);
@@ -534,6 +548,20 @@
     [_curEditTypeHeadView setTitleLabetextByNumbers:_didSelectListArr.count];
 }
 
+#pragma mark 用户点击分享
+- (void)gotoShareViewFun
+{
+    editShareView *editShareV = [[editShareView alloc] init];
+    [self.view addSubview:editShareV];
+    
+    [editShareV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.bottom.mas_equalTo(0);
+        make.top.mas_equalTo(0);
+    }];
+}
+
 #pragma mark 设置标题
 - (void)setTitleLabelText:(NSString*)title
 {

+ 16 - 0
创维盒子/双子星云手机/Class/Set/previewFile/view/editShareView.h

@@ -0,0 +1,16 @@
+//
+//  editShareView.h
+//  双子星云手机
+//
+//  Created by xd h on 2024/5/14.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface editShareView : UIView
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 230 - 0
创维盒子/双子星云手机/Class/Set/previewFile/view/editShareView.m

@@ -0,0 +1,230 @@
+//
+//  editShareView.m
+//  双子星云手机
+//
+//  Created by xd h on 2024/5/14.
+//
+
+#import "editShareView.h"
+
+@interface editShareView ()
+@property(nonatomic,strong) UIButton*day7Button;
+@property(nonatomic,strong) UIButton*dayForeverButton;
+@end
+
+@implementation editShareView
+
+- (id)initWithFrame:(CGRect)frame{
+    self = [super initWithFrame:frame];
+    self.backgroundColor = [UIColor hwColor:@"#000000" alpha:0.6];
+    [self drawAnyView];
+    return self;
+}
+
+- (void)drawAnyView{
+    
+    UIView *whiteBgView = [[UIView alloc] init];
+    whiteBgView.backgroundColor = [UIColor whiteColor];
+    [self addSubview:whiteBgView];
+    whiteBgView.layer.cornerRadius = 32;
+    whiteBgView.layer.masksToBounds = YES;
+    
+    [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.bottom.mas_equalTo(0);
+        make.height.mas_equalTo(315 -50+ AdaptTabHeight);
+    }];
+    
+ 
+    UILabel *titleLabel = [[UILabel alloc] init];
+    titleLabel.font = [UIFont systemFontOfSize:18.0];
+    titleLabel.textColor = [UIColor hwColor:@"#0A132B" alpha:1.0];
+    [whiteBgView addSubview:titleLabel];
+    
+    NSString *leftText = NSLocalizedString(@"share_title_left",nil);
+    NSString *rightText = NSLocalizedString(@"share_title_right",nil);
+    NSString *totalStr = [[NSString alloc] initWithFormat:@"%@  %@",leftText,rightText];
+    
+    NSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc] initWithString:totalStr];
+    NSRange redRange = NSMakeRange([totalStr rangeOfString:rightText].location, [totalStr rangeOfString:rightText].length);
+    UIColor *noteColor =[UIColor hwColor:@"#959799" alpha:1.0];
+    [attrStr addAttribute:NSForegroundColorAttributeName value:noteColor range:redRange];
+    [attrStr addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:12.0] range:redRange];
+    titleLabel.attributedText = attrStr;
+    
+    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(25);
+        make.right.mas_equalTo(0);
+        make.top.mas_equalTo(20);
+        make.height.mas_equalTo(40);
+    }];
+    
+    NSString *secondTitleStr = NSLocalizedString(@"share_expiration_date",nil);
+    UILabel *secondTitleLabel = [[UILabel alloc] init];
+    secondTitleLabel.font = [UIFont systemFontOfSize:14.0];
+    secondTitleLabel.textColor = [UIColor hwColor:@"#666666" alpha:1.0];
+    secondTitleLabel.text = secondTitleStr;
+    [whiteBgView addSubview:secondTitleLabel];
+    
+    CGFloat secondWith = [secondTitleStr boundingRectWithSize:CGSizeMake(300, 20) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14.0]} context:nil].size.width;
+    
+    [secondTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(25);
+        make.width.mas_equalTo(secondWith);
+        make.top.equalTo(titleLabel.mas_bottom).offset(10);
+        make.height.mas_equalTo(25);
+    }];
+    
+    
+    _day7Button = [[UIButton alloc] init];
+    [_day7Button setImage:[UIImage imageNamed:@"common_did_check"] forState:UIControlStateSelected];
+    [_day7Button setImage:[UIImage imageNamed:@"common_un_check"] forState:UIControlStateNormal];
+    [_day7Button setTitle:NSLocalizedString(@"share_expiration_date_7",nil) forState:UIControlStateNormal];
+    [_day7Button setTitleColor:[UIColor hwColor:@"#0A132B"] forState:UIControlStateNormal];
+    [_day7Button addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+    _day7Button.titleLabel.font = [UIFont boldSystemFontOfSize:14];
+    _day7Button.tag = 1;
+    [whiteBgView addSubview:_day7Button];
+    _day7Button.selected = YES;
+    
+    [_day7Button mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.equalTo(secondTitleLabel.mas_right).offset(5);
+        make.width.mas_equalTo(100);
+        make.top.equalTo(secondTitleLabel.mas_top).offset(0);
+        make.height.mas_equalTo(25);
+    }];
+    
+    _dayForeverButton = [[UIButton alloc] init];
+    [_dayForeverButton setImage:[UIImage imageNamed:@"common_did_check"] forState:UIControlStateSelected];
+    [_dayForeverButton setImage:[UIImage imageNamed:@"common_un_check"] forState:UIControlStateNormal];
+    [_dayForeverButton setTitle:NSLocalizedString(@"share_expiration_date_forever",nil) forState:UIControlStateNormal];
+    [_dayForeverButton setTitleColor:[UIColor hwColor:@"#0A132B"] forState:UIControlStateNormal];
+    [_dayForeverButton addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+    _dayForeverButton.titleLabel.font = [UIFont boldSystemFontOfSize:14];
+    _dayForeverButton.tag = 2;
+    [whiteBgView addSubview:_dayForeverButton];
+    
+    [_dayForeverButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.equalTo(_day7Button.mas_right).offset(15);
+        make.width.mas_equalTo(100);
+        make.top.equalTo(secondTitleLabel.mas_top).offset(0);
+        make.height.mas_equalTo(25);
+    }];
+    
+    NSArray *titleArr = @[NSLocalizedString(@"share_by_weixin",nil),
+                          NSLocalizedString(@"share_by_QQ",nil),
+                          NSLocalizedString(@"share_by_timeLine",nil),
+                          NSLocalizedString(@"share_by_secret",nil)];
+  
+    NSArray *imageStrArr = @[@"share_weixin_icon",
+                             @"share_qq_icon",
+                             @"share_weixin_Timeline_icon",
+                             @"share_secret_icon"];
+    
+    CGFloat curButFullWidth = SCREEN_W/4.0;
+    
+    for (int i = 0; i< titleArr.count; i++) {
+
+        UIButton*curButton = [[UIButton alloc] init];
+        [curButton addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+        curButton.tag = 10+i;
+        [whiteBgView addSubview:curButton];
+
+        [curButton mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.width.mas_equalTo(curButFullWidth);
+            make.left.mas_equalTo(i*curButFullWidth);
+            make.height.mas_equalTo(80);
+            make.top.equalTo(secondTitleLabel.mas_bottom).offset(20);
+        }];
+        
+        UIView *imageBgView = [[UIView alloc] init];
+        imageBgView.backgroundColor = [UIColor hwColor:@"#F5F7FA"];
+        imageBgView.layer.cornerRadius = 8;
+        imageBgView.layer.masksToBounds = YES;
+        [curButton addSubview:imageBgView];
+        
+        [imageBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.width.mas_equalTo(64);
+            make.height.mas_equalTo(52);
+            make.centerX.equalTo(curButton.mas_centerX);
+            make.top.mas_equalTo(0);
+        }];
+        
+        UIImageView *leftImageV = [[UIImageView alloc] init];
+        leftImageV.image = [UIImage imageNamed:imageStrArr[i]];
+        [imageBgView addSubview:leftImageV];
+
+        [leftImageV mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.width.mas_equalTo(25);
+            make.height.mas_equalTo(25);
+            make.centerX.equalTo(imageBgView.mas_centerX);
+            make.centerY.equalTo(imageBgView.mas_centerY).offset(0);
+        }];
+
+        UILabel *leftLabel = [[UILabel alloc] init];
+        leftLabel.textColor = [UIColor hwColor:@"#0A132B"];
+        leftLabel.textAlignment = NSTextAlignmentCenter;
+        leftLabel.font = [UIFont systemFontOfSize:12.0];
+        leftLabel.text = titleArr[i];
+        [curButton addSubview:leftLabel];
+
+        [leftLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.width.mas_equalTo(curButFullWidth);
+            make.height.mas_equalTo(25);
+            make.centerX.equalTo(curButton.mas_centerX);
+            make.top.equalTo(imageBgView.mas_bottom).offset(10);
+        }];
+    }
+    
+    
+    UIButton*cancelButton = [[UIButton alloc] init];
+    [cancelButton setTitle:NSLocalizedString(@"other_cancel",nil) forState:UIControlStateNormal];
+    [cancelButton setTitleColor:[UIColor hwColor:@"#0A132B"] forState:UIControlStateNormal];
+    [cancelButton addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+    cancelButton.titleLabel.font = [UIFont boldSystemFontOfSize:14];
+    cancelButton.tag = 100;
+    [whiteBgView addSubview:cancelButton];
+    
+    [cancelButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.bottom.mas_equalTo(-AdaptTabHeight);
+        make.height.mas_equalTo(40);
+    }];
+    
+    UIView *lineView = [[UIView alloc] init];
+    lineView.backgroundColor = [UIColor hwColor:@"#EAEAEA"];
+    [whiteBgView addSubview:lineView];
+    
+    [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(25);
+        make.right.mas_equalTo(-25);
+        make.bottom.equalTo(cancelButton.mas_top).offset(-5);
+        make.height.mas_equalTo(1);
+    }];
+}
+
+- (void)didClickButFun:(UIButton*)but
+{
+    NSInteger tag = but.tag;
+    
+    if(tag==1 && !_day7Button.selected){
+        _day7Button.selected = YES;
+        _dayForeverButton.selected = NO;
+    }
+    else if(tag==2 && !_dayForeverButton.selected){
+        _day7Button.selected = NO;
+        _dayForeverButton.selected = YES;
+    }
+    else if(tag == 100){
+        [self removeFromSuperview];
+    }
+    
+//    if(_didClickButtonFun){
+//        _didClickButtonFun(tag);
+//    }
+}
+
+@end
+

+ 9 - 1
创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

@@ -458,4 +458,12 @@
 "my_set_no_share"   = "分享记录";
 "common_edit_didSelect"   = "选中";
 "common_edit_share"   = "分享";
-
+"share_title_left"   = "分享文件";
+"share_title_right"   = "严禁传播违法内容,否则将承担相应法律责任。";
+"share_expiration_date"   = "文件分享有效期";
+"share_expiration_date_7"   = "7天过期";
+"share_expiration_date_forever"   = "永久有效";
+"share_by_weixin"   = "微信";
+"share_by_QQ"   = "QQ";
+"share_by_timeLine"   = "朋友圈";
+"share_by_secret"   = "私密分享";