Преглед изворни кода

图片模式预览朋友圈

桂欢 пре 2 година
родитељ
комит
a0abcfcd6c

+ 11 - 1
SLAiELTS/SLAiELTS.xcodeproj/project.pbxproj

@@ -119,6 +119,8 @@
 		3D2DC3F429B1E6320041A729 /* SLMikeInputView.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D2DC3F329B1E6320041A729 /* SLMikeInputView.m */; };
 		3D2DC3F629B1E6510041A729 /* SLMikeInputView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D2DC3F529B1E6510041A729 /* SLMikeInputView.xib */; };
 		3D5BC38B29E3E77400748197 /* SLMoentsChatView.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D5BC38A29E3E77400748197 /* SLMoentsChatView.m */; };
+		3D5BC38F29E3F87100748197 /* SLFriensInfoVc.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D5BC38D29E3F87100748197 /* SLFriensInfoVc.m */; };
+		3D5BC39029E3F87100748197 /* SLFriensInfoVc.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D5BC38E29E3F87100748197 /* SLFriensInfoVc.xib */; };
 		3D796C6C29B8305C00B7B28A /* NSObject+FBKVOController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D796C6929B8305C00B7B28A /* NSObject+FBKVOController.m */; };
 		3D796C6D29B8305C00B7B28A /* FBKVOController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D796C6A29B8305C00B7B28A /* FBKVOController.m */; };
 		3D8515D729CD92A400418BAB /* JXCategoryTitleBackgroundCellModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D8515D129CD92A400418BAB /* JXCategoryTitleBackgroundCellModel.m */; };
@@ -445,6 +447,9 @@
 		3D2DC3F529B1E6510041A729 /* SLMikeInputView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SLMikeInputView.xib; sourceTree = "<group>"; };
 		3D5BC38929E3E77400748197 /* SLMoentsChatView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SLMoentsChatView.h; sourceTree = "<group>"; };
 		3D5BC38A29E3E77400748197 /* SLMoentsChatView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SLMoentsChatView.m; sourceTree = "<group>"; };
+		3D5BC38C29E3F87100748197 /* SLFriensInfoVc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SLFriensInfoVc.h; sourceTree = "<group>"; };
+		3D5BC38D29E3F87100748197 /* SLFriensInfoVc.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SLFriensInfoVc.m; sourceTree = "<group>"; };
+		3D5BC38E29E3F87100748197 /* SLFriensInfoVc.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SLFriensInfoVc.xib; sourceTree = "<group>"; };
 		3D796C6729B8305C00B7B28A /* KVOController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KVOController.h; sourceTree = "<group>"; };
 		3D796C6829B8305C00B7B28A /* FBKVOController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FBKVOController.h; sourceTree = "<group>"; };
 		3D796C6929B8305C00B7B28A /* NSObject+FBKVOController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+FBKVOController.m"; sourceTree = "<group>"; };
@@ -1368,6 +1373,9 @@
 				3D24D40429DEAF3200014D1C /* SLCreatMomentsVc.h */,
 				3D24D40529DEAF3200014D1C /* SLCreatMomentsVc.m */,
 				3D24D40629DEAF3200014D1C /* SLCreatMomentsVc.xib */,
+				3D5BC38C29E3F87100748197 /* SLFriensInfoVc.h */,
+				3D5BC38D29E3F87100748197 /* SLFriensInfoVc.m */,
+				3D5BC38E29E3F87100748197 /* SLFriensInfoVc.xib */,
 			);
 			path = TimeLineController;
 			sourceTree = "<group>";
@@ -1447,8 +1455,8 @@
 		3DB97D3729D6A86D00B12754 /* TimeLineRefreshHeader */ = {
 			isa = PBXGroup;
 			children = (
-				3DB97D3829D6A86D00B12754 /* SDTimeLineRefreshHeader.m */,
 				3DB97D3929D6A86D00B12754 /* SDTimeLineRefreshHeader.h */,
+				3DB97D3829D6A86D00B12754 /* SDTimeLineRefreshHeader.m */,
 			);
 			path = TimeLineRefreshHeader;
 			sourceTree = "<group>";
@@ -1787,6 +1795,7 @@
 				3D8C9F8729AC57F300678283 /* Assets.xcassets in Resources */,
 				3D25108A29ADD490000AE530 /* SLRoleLabelView.xib in Resources */,
 				3DF3DAE029BAFA4B00CAD3AB /* SLMySpeedView.xib in Resources */,
+				3D5BC39029E3F87100748197 /* SLFriensInfoVc.xib in Resources */,
 				3D2D8BD629DE5402009392DA /* AddressBookCell.xib in Resources */,
 				3D8C9F8529AC57F200678283 /* Main.storyboard in Resources */,
 				3DF3DAD329BAC90F00CAD3AB /* SLModifyNicknameVc.xib in Resources */,
@@ -2010,6 +2019,7 @@
 				3DB97D3E29D6A86E00B12754 /* SDTimeLineCellModel.m in Sources */,
 				3DFEE71129B5D11E000AA7D5 /* UIButton+TitleAndImageLayout.m in Sources */,
 				3D25108429ADA027000AE530 /* SLInterestView.m in Sources */,
+				3D5BC38F29E3F87100748197 /* SLFriensInfoVc.m in Sources */,
 				3D1B9D0829C1B7A90008D01A /* SLImagePickerAndUpload.m in Sources */,
 				3D796C6D29B8305C00B7B28A /* FBKVOController.m in Sources */,
 				3D2DC3EA29B09B070041A729 /* UICollectionView+YMHelper.m in Sources */,

+ 3 - 2
SLAiELTS/SLAiELTS/AppDelegate.mm

@@ -26,16 +26,17 @@
     UIViewController *vc = [SLLoginVCViewController loadViewControllewWithNib];
     self.window.rootViewController = [[SLBaseNavigationController alloc] initWithRootViewController:baseVc];
     [self.window makeKeyAndVisible];
+    [self buildIQkeyBoard];
     return YES;
 }
 
 #pragma MARK- IQ键盘初始化
--(void)BuildIQkeyBoard
+-(void)buildIQkeyBoard
 {
     IQKeyboardManager *manager =  [IQKeyboardManager sharedManager];
     manager.enable = YES;//是否启用键盘管理
     manager.shouldResignOnTouchOutside = YES;//点击可编辑之外,是否自动隐藏键盘
-    manager.enableAutoToolbar = YES;//控制是否显示键盘上的工具条
+    manager.enableAutoToolbar = NO;//控制是否显示键盘上的工具条
     manager.keyboardDistanceFromTextField = 20.f;
     manager.layoutIfNeededOnUpdate = YES;
 }

+ 2 - 1
SLAiELTS/SLAiELTS/Tool/SDPhotoBrowser/SDPhotoBrowser.h

@@ -7,7 +7,7 @@
 //
 
 #import <UIKit/UIKit.h>
-
+#import "SDTimeLineCellModel.h"
 
 @class SDButton, SDPhotoBrowser;
 
@@ -29,6 +29,7 @@
 @property (nonatomic, weak) UIView *sourceImagesContainerView;
 @property (nonatomic, assign) NSInteger currentImageIndex;
 @property (nonatomic, assign) NSInteger imageCount;
+@property (nonatomic, strong) SDTimeLineCellModel *cellModel;
 
 @property (nonatomic, weak) id<SDPhotoBrowserDelegate> delegate;
 

+ 66 - 1
SLAiELTS/SLAiELTS/Tool/SDPhotoBrowser/SDPhotoBrowser.m

@@ -31,6 +31,9 @@
     UIButton *_saveButton;
     UIActivityIndicatorView *_indicatorView;
     BOOL _willDisappear;
+    UIButton *_operationLikeButton;
+    UIButton *_operationCommentButton;
+    UILabel *_detailLabel;
 }
 
 - (id)initWithFrame:(CGRect)frame
@@ -81,8 +84,70 @@
     saveButton.clipsToBounds = YES;
     [saveButton addTarget:self action:@selector(saveImage) forControlEvents:UIControlEventTouchUpInside];
     _saveButton = saveButton;
-    [self addSubview:saveButton];
+//    [self addSubview:saveButton];
 //    self.backgroundColor = [UIColor yellowColor];
+    
+    _operationLikeButton = [UIButton buttonWithType:UIButtonTypeCustom];
+    [_operationLikeButton setTitle:@"点赞" forState:UIControlStateNormal];
+    _operationLikeButton.titleLabel.font = [UIFont systemFontOfSize:10];
+    [_operationLikeButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
+    [_operationLikeButton setImage:[UIImage imageNamed:@"icon_heart"] forState:UIControlStateNormal];
+    [_operationLikeButton handleEvent:UIControlEventTouchUpInside withBlock:^{
+        
+    }];
+
+    _operationCommentButton = [UIButton buttonWithType:UIButtonTypeCustom];
+    [_operationCommentButton setTitle:@"评论" forState:UIControlStateNormal];
+    _operationCommentButton.titleLabel.font = [UIFont systemFontOfSize:10];
+    [_operationCommentButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
+    [_operationCommentButton setImage:[UIImage imageNamed:@"icon_moents_chat"] forState:UIControlStateNormal];
+    [_operationCommentButton handleEvent:UIControlEventTouchUpInside withBlock:^{
+        
+    }];
+    
+    [self addSubview:_operationLikeButton];
+    [self addSubview:_operationCommentButton];
+    [_operationCommentButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(22);
+        make.bottom.equalTo(self.mas_bottom).offset(-30 - kSafeAreaBottom);
+        make.width.mas_equalTo(40);
+        make.height.mas_equalTo(20);
+    }];
+    [_operationLikeButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.equalTo(_operationCommentButton.mas_right).offset(12);
+        make.bottom.equalTo(self.mas_bottom).offset(-30 - kSafeAreaBottom);
+        make.width.mas_equalTo(40);
+        make.height.mas_equalTo(20);
+    }];
+    
+    UIButton *detailBtn = [UIButton buttonWithType:UIButtonTypeCustom];
+    [detailBtn handleEvent:UIControlEventTouchUpInside withBlock:^{
+            
+    }];
+    [detailBtn setTitle:@"详情" forState:UIControlStateNormal];
+    detailBtn.titleLabel.font = [UIFont systemFontOfSize:10];
+    [detailBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
+    [self addSubview:detailBtn];
+    [detailBtn mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.centerY.equalTo(_operationLikeButton);
+        make.right.equalTo(self.mas_right).offset(-20);
+        make.width.mas_equalTo(40);
+        make.height.mas_equalTo(20);
+    }];
+
+    UILabel *detailLabel = [[UILabel alloc] initWithFrame:CGRectZero];
+    detailLabel.numberOfLines = 0;
+    detailLabel.textColor = [UIColor whiteColor];
+    detailLabel.font = [UIFont systemFontOfSize:14];
+    [self addSubview:detailLabel];
+    _detailLabel = detailLabel;
+    _detailLabel.text = @"我是文案我是文案我是文案我是文案我是文案我是文案我是文案我是我是文案我是文案我是文案我是文案我是文案我是文案我是文案我是";
+    [_detailLabel mas_updateConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(20);
+        make.top.mas_equalTo((kSCREEN_HEIGHT + kSCREEN_WIDTH) / 2.0 + 30);
+        make.centerX.equalTo(self);
+        make.bottom.equalTo(detailBtn.mas_top).offset(-12);
+    }];
 }
 
 - (void)saveImage

+ 16 - 0
SLAiELTS/SLAiELTS/ViewControllers/TimeLine/TimeLineController/SLFriensInfoVc.h

@@ -0,0 +1,16 @@
+//
+//  SLFriensInfoVc.h
+//  SLAiELTS
+//
+//  Created by Gusont on 2023/4/10.
+//
+
+#import "SLBaseViewController.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface SLFriensInfoVc : SLBaseViewController
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 29 - 0
SLAiELTS/SLAiELTS/ViewControllers/TimeLine/TimeLineController/SLFriensInfoVc.m

@@ -0,0 +1,29 @@
+//
+//  SLFriensInfoVc.m
+//  SLAiELTS
+//
+//  Created by Gusont on 2023/4/10.
+//
+
+#import "SLFriensInfoVc.h"
+#import "SDTimeLineTableHeaderView.h"
+
+@interface SLFriensInfoVc ()
+@property (weak, nonatomic) IBOutlet UIImageView *fHeardImageView;
+@property (weak, nonatomic) IBOutlet UIButton *userNameLabel;
+@property (weak, nonatomic) IBOutlet UILabel *locLabel;
+@property (weak, nonatomic) IBOutlet UIView *fpyqBgView;
+
+@end
+
+@implementation SLFriensInfoVc
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    // Do any additional setup after loading the view from its nib.
+}
+
+- (IBAction)toMsgBtnClick:(id)sender {
+}
+
+@end

+ 125 - 0
SLAiELTS/SLAiELTS/ViewControllers/TimeLine/TimeLineController/SLFriensInfoVc.xib

@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21225" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
+    <device id="retina6_0" orientation="portrait" appearance="light"/>
+    <dependencies>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21207"/>
+        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
+        <capability name="System colors in document resources" minToolsVersion="11.0"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+    </dependencies>
+    <objects>
+        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SLFriensInfoVc">
+            <connections>
+                <outlet property="fHeardImageView" destination="KTp-mS-JjL" id="Jym-hq-w4D"/>
+                <outlet property="fpyqBgView" destination="NzD-oC-pVR" id="ClP-qM-zgg"/>
+                <outlet property="locLabel" destination="Ua0-ci-XmP" id="paI-jG-2e5"/>
+                <outlet property="userNameLabel" destination="7Es-Se-YjK" id="2DC-fE-Z73"/>
+                <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
+            </connections>
+        </placeholder>
+        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
+        <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
+            <rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
+            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+            <subviews>
+                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nVv-kt-5Om">
+                    <rect key="frame" x="0.0" y="0.0" width="390" height="300"/>
+                    <subviews>
+                        <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_ellipse" translatesAutoresizingMaskIntoConstraints="NO" id="KTp-mS-JjL">
+                            <rect key="frame" x="163" y="91" width="64" height="64"/>
+                            <constraints>
+                                <constraint firstAttribute="width" constant="64" id="Btm-0C-WJ8"/>
+                                <constraint firstAttribute="height" constant="64" id="uB4-ZE-3QH"/>
+                            </constraints>
+                        </imageView>
+                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7Es-Se-YjK">
+                            <rect key="frame" x="154" y="171" width="82" height="36"/>
+                            <fontDescription key="fontDescription" type="system" weight="medium" pointSize="20"/>
+                            <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
+                            <state key="normal" title="用户名称">
+                                <color key="titleColor" red="0.031372549020000001" green="0.058823529409999999" blue="0.1058823529" alpha="1" colorSpace="calibratedRGB"/>
+                            </state>
+                        </button>
+                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="地区:江西 南昌      2公里以内" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ua0-ci-XmP">
+                            <rect key="frame" x="105.66666666666669" y="212" width="179" height="15.666666666666657"/>
+                            <fontDescription key="fontDescription" type="system" pointSize="13"/>
+                            <color key="textColor" red="0.68235294117647061" green="0.68235294117647061" blue="0.69803921568627447" alpha="1" colorSpace="calibratedRGB"/>
+                            <nil key="highlightedColor"/>
+                        </label>
+                    </subviews>
+                    <color key="backgroundColor" systemColor="systemBackgroundColor"/>
+                    <constraints>
+                        <constraint firstItem="KTp-mS-JjL" firstAttribute="centerX" secondItem="nVv-kt-5Om" secondAttribute="centerX" id="52z-AE-Zn3"/>
+                        <constraint firstItem="7Es-Se-YjK" firstAttribute="centerX" secondItem="KTp-mS-JjL" secondAttribute="centerX" id="7z6-ms-ksw"/>
+                        <constraint firstAttribute="height" constant="300" id="ByX-wX-3GY"/>
+                        <constraint firstItem="Ua0-ci-XmP" firstAttribute="centerX" secondItem="nVv-kt-5Om" secondAttribute="centerX" id="DPW-Gq-VjE"/>
+                        <constraint firstItem="Ua0-ci-XmP" firstAttribute="top" secondItem="7Es-Se-YjK" secondAttribute="bottom" constant="5" id="WP1-nO-Gad"/>
+                        <constraint firstItem="7Es-Se-YjK" firstAttribute="top" secondItem="KTp-mS-JjL" secondAttribute="bottom" constant="16" id="hMQ-NJ-cRo"/>
+                    </constraints>
+                </view>
+                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NzD-oC-pVR">
+                    <rect key="frame" x="0.0" y="310" width="390" height="80"/>
+                    <subviews>
+                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="朋友圈" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RcK-jj-Z4a">
+                            <rect key="frame" x="16" y="30.333333333333314" width="49" height="19.333333333333329"/>
+                            <fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
+                            <color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+                            <nil key="highlightedColor"/>
+                        </label>
+                        <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_right_arrow" translatesAutoresizingMaskIntoConstraints="NO" id="Tk0-Dt-puA">
+                            <rect key="frame" x="350" y="28" width="24" height="24"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="24" id="0s3-xU-8IN"/>
+                                <constraint firstAttribute="width" constant="24" id="GK4-RR-LCE"/>
+                            </constraints>
+                        </imageView>
+                    </subviews>
+                    <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+                    <constraints>
+                        <constraint firstItem="Tk0-Dt-puA" firstAttribute="centerY" secondItem="NzD-oC-pVR" secondAttribute="centerY" id="2kf-20-oth"/>
+                        <constraint firstAttribute="trailing" secondItem="Tk0-Dt-puA" secondAttribute="trailing" constant="16" id="EqB-f4-492"/>
+                        <constraint firstAttribute="height" constant="80" id="Qqz-72-eYO"/>
+                        <constraint firstItem="RcK-jj-Z4a" firstAttribute="leading" secondItem="NzD-oC-pVR" secondAttribute="leading" constant="16" id="aL3-qf-uu7"/>
+                        <constraint firstItem="RcK-jj-Z4a" firstAttribute="centerY" secondItem="NzD-oC-pVR" secondAttribute="centerY" id="xeC-IB-lMj"/>
+                    </constraints>
+                </view>
+                <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Dib-TE-03f">
+                    <rect key="frame" x="0.0" y="400" width="390" height="56"/>
+                    <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+                    <constraints>
+                        <constraint firstAttribute="height" constant="56" id="OcC-pf-Adr"/>
+                    </constraints>
+                    <fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
+                    <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
+                    <state key="normal" title="进入对话"/>
+                    <connections>
+                        <action selector="toMsgBtnClick:" destination="-1" eventType="touchUpInside" id="Vw3-uZ-1Gc"/>
+                    </connections>
+                </button>
+            </subviews>
+            <viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
+            <color key="backgroundColor" systemColor="systemBackgroundColor"/>
+            <constraints>
+                <constraint firstItem="NzD-oC-pVR" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="0hw-oA-YJE"/>
+                <constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="nVv-kt-5Om" secondAttribute="trailing" id="2TK-C8-bxO"/>
+                <constraint firstItem="Dib-TE-03f" firstAttribute="top" secondItem="NzD-oC-pVR" secondAttribute="bottom" constant="10" id="2aN-gL-NyV"/>
+                <constraint firstItem="Dib-TE-03f" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="7b7-eX-Ugp"/>
+                <constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="NzD-oC-pVR" secondAttribute="trailing" id="AoJ-mf-CAz"/>
+                <constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="Dib-TE-03f" secondAttribute="trailing" id="Cbv-Va-Eew"/>
+                <constraint firstItem="KTp-mS-JjL" firstAttribute="top" secondItem="Q5M-cg-NOt" secondAttribute="top" constant="44" id="RsQ-JH-qw8"/>
+                <constraint firstItem="nVv-kt-5Om" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="Zmt-6t-TU0"/>
+                <constraint firstItem="nVv-kt-5Om" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="g0U-Pm-tiW"/>
+                <constraint firstItem="NzD-oC-pVR" firstAttribute="top" secondItem="nVv-kt-5Om" secondAttribute="bottom" constant="10" id="m3F-P1-AkY"/>
+            </constraints>
+            <point key="canvasLocation" x="113.84615384615384" y="0.0"/>
+        </view>
+    </objects>
+    <resources>
+        <image name="icon_ellipse" width="52.333332061767578" height="52.333332061767578"/>
+        <image name="icon_right_arrow" width="22.333333969116211" height="22.333333969116211"/>
+        <systemColor name="systemBackgroundColor">
+            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+        </systemColor>
+    </resources>
+</document>

+ 8 - 1
SLAiELTS/SLAiELTS/ViewControllers/TimeLine/Views/Cell/SDTimeLineCell.m

@@ -38,6 +38,7 @@
 #import "SDTimeLineCellOperationMenu.h"
 
 #import "LEETheme.h"
+#import "SLFriensInfoVc.h"
 
 const CGFloat contentLabelFontSize = 14;
 CGFloat maxContentLabelHeight = 0; // 根据具体font而定
@@ -85,6 +86,12 @@ NSString *const kSDTimeLineCellOperationButtonClickedNotification = @"SDTimeLine
     _nameLable = [UILabel new];
     _nameLable.font = [UIFont boldSystemFontOfSize:16];
     _nameLable.textColor = SLColor(@"#080F1B");
+    _nameLable.userInteractionEnabled = YES;
+    WS(weakSelf);
+    [_nameLable addTapWithBlock:^{
+        SLFriensInfoVc *vc = [[SLFriensInfoVc alloc] init];
+        [weakSelf.viewController.rdv_tabBarController.navigationController pushViewController:vc animated:YES];
+    }];
     
     _contentLabel = [UILabel new];
     _contentLabel.font = [UIFont systemFontOfSize:contentLabelFontSize];
@@ -108,7 +115,6 @@ NSString *const kSDTimeLineCellOperationButtonClickedNotification = @"SDTimeLine
     _operationLikeButton.titleLabel.font = [UIFont systemFontOfSize:10];
     [_operationLikeButton setTitleColor:SLColor(@"#8E8E93") forState:UIControlStateNormal];
     [_operationLikeButton setImage:[UIImage imageNamed:@"icon_heart"] forState:UIControlStateNormal];
-    WS(weakSelf);
     [_operationLikeButton handleEvent:UIControlEventTouchUpInside withBlock:^{
         if ([weakSelf.delegate respondsToSelector:@selector(didClickLikeButtonInCell:)]) {
             [weakSelf.delegate didClickLikeButtonInCell:weakSelf];
@@ -243,6 +249,7 @@ NSString *const kSDTimeLineCellOperationButtonClickedNotification = @"SDTimeLine
     _nameLable.text = model.name;
     _contentLabel.text = model.msgContent;
     _picContainerView.picPathStringsArray = model.picNamesArray;
+    _picContainerView.cellModel = _model;
     
     if (model.shouldShowMoreButton) { // 如果文字高度超过60
         _moreButton.sd_layout.heightIs(20);

+ 3 - 0
SLAiELTS/SLAiELTS/ViewControllers/TimeLine/Views/PhotoContainer/SDWeiXinPhotoContainerView.h

@@ -28,9 +28,12 @@
  */
 
 #import <UIKit/UIKit.h>
+#import "SDTimeLineCellModel.h"
 
 @interface SDWeiXinPhotoContainerView : UIView
 
 @property (nonatomic, strong) NSArray *picPathStringsArray;
 
+@property (nonatomic, strong) SDTimeLineCellModel *cellModel;
+
 @end

+ 1 - 0
SLAiELTS/SLAiELTS/ViewControllers/TimeLine/Views/PhotoContainer/SDWeiXinPhotoContainerView.m

@@ -122,6 +122,7 @@
     SDPhotoBrowser *browser = [[SDPhotoBrowser alloc] init];
     browser.currentImageIndex = imageView.tag;
     browser.sourceImagesContainerView = self;
+    browser.cellModel = self.cellModel;
     browser.imageCount = self.picPathStringsArray.count;
     browser.delegate = self;
     [browser show];