Explorar el Código

1.图片详情页分享关联

huangxiaodong hace 1 año
padre
commit
fd4fa6925e

+ 2 - 0
创维盒子/双子星云手机/Class/Set/previewFile/imageDetailsScrollViewController.h

@@ -12,6 +12,8 @@ NS_ASSUME_NONNULL_BEGIN
 @interface imageDetailsScrollViewController : BaseViewController
 @property(nonatomic,assign) NSInteger index;
 @property(nonatomic,strong) NSMutableArray*totalDataArr;
+
+@property(nonatomic,assign)BOOL canShareType;
 @end
 
 NS_ASSUME_NONNULL_END

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

@@ -69,6 +69,11 @@
 - (void)gotoShareViewFun
 {
     editShareView *editShareV = [[editShareView alloc] init];
+    
+    NASFilePicDataArrModel *dataModel = _totalDataArr[_index];
+    editShareV.didSelectListArr = [NSMutableArray arrayWithArray:@[dataModel]];
+    editShareV.shareFileType = @"2";
+    
     [self.view addSubview:editShareV];
     
     [editShareV mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -177,4 +182,9 @@
     }
 }
 
+- (void)setCanShareType:(BOOL)canShareType
+{
+    _canShareType = canShareType;
+    [_curEditTypeBottomView setCanShaewFunBy:canShareType];
+}
 @end

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

@@ -33,6 +33,8 @@
     
     BOOL hadUploadTaskType;
     BOOL hadDownloadTaskType;
+    
+    BOOL canShareType;
 }
 @property (nonatomic, strong) UICollectionView *dataCollectionView;
 
@@ -909,7 +911,7 @@
         vc.index = index;
         vc.totalDataArr = totalArr;
         [self.navigationController pushViewController:vc animated:YES];
-        
+        vc.canShareType = canShareType;
     }
 }
 
@@ -961,6 +963,7 @@
     [[netWorkManager shareInstance] CommonGetWithCallBackCode:queryShareSwitchFun Parameters:paraDict success:^(id  _Nonnull responseObject){
         queryShareModel *queryShareMod = [[queryShareModel alloc] initWithDictionary:responseObject error:nil];
         if(queryShareMod){
+            self->canShareType = queryShareMod.data.configValue;
             [weakSelf.curEditTypeBottomView setCanShaewFunBy:queryShareMod.data.configValue];
         }