Browse Source

首次登录信息优化

桂欢 1 year ago
parent
commit
2c43697906

+ 2 - 2
SLAiELTS/SLAiELTS/ViewControllers/MyVC/Models/SLImagePickerAndUpload.m

@@ -57,7 +57,7 @@
 {
 {
     
     
     //    NSDictionary *dictPictureSize = [parma objectForKey:@""];
     //    NSDictionary *dictPictureSize = [parma objectForKey:@""];
-    CGSize pitureSize=CGSizeMake(100, 100);
+    CGSize pitureSize=CGSizeMake(200, 200);
     float RepresentationF=0.2f;
     float RepresentationF=0.2f;
     
     
     if (picType == UIImagePickerControllerSourceTypeCamera && ![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
     if (picType == UIImagePickerControllerSourceTypeCamera && ![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
@@ -76,7 +76,7 @@
         UIImage *image = [info objectForKey:UIImagePickerControllerEditedImage];
         UIImage *image = [info objectForKey:UIImagePickerControllerEditedImage];
 
 
         UIImage *imageOrigin = [self reSizeImage:image toSize:pitureSize];
         UIImage *imageOrigin = [self reSizeImage:image toSize:pitureSize];
-        UIImage *imageThumb = [self reSizeImage:image toSize:CGSizeMake(100, 100)];
+        UIImage *imageThumb = [self reSizeImage:image toSize:CGSizeMake(200, 200)];
         NSData *imageOriginData = nil;
         NSData *imageOriginData = nil;
         NSData *imageThumbData = nil;
         NSData *imageThumbData = nil;
         //NSString *mimeType = nil;
         //NSString *mimeType = nil;

+ 4 - 1
SLAiELTS/SLAiELTS/ViewControllers/RoleLabelVC/Views/SLRoleLabelView.m

@@ -353,7 +353,10 @@
             weakSelf.roleModel.userHead = imageUrl;
             weakSelf.roleModel.userHead = imageUrl;
             NSString *headImgUrl = [NSString stringWithFormat:@"%@%@",[SLHttpCenter SharedInstance].serverUrl, imageUrl];
             NSString *headImgUrl = [NSString stringWithFormat:@"%@%@",[SLHttpCenter SharedInstance].serverUrl, imageUrl];
             [weakSelf.logoImageView sd_setImageWithURL:[NSURL URLWithString:headImgUrl]];
             [weakSelf.logoImageView sd_setImageWithURL:[NSURL URLWithString:headImgUrl]];
-//            weakSelf.logoImageView.layer.cornerRadius = CGRectGetWidth(weakSelf.logoImageView.frame) / 2.0;
+            [weakSelf.logoImageView mas_makeConstraints:^(MASConstraintMaker *make) {
+                make.width.height.mas_equalTo(100);
+            }];
+            weakSelf.logoImageView.layer.cornerRadius = 50;
         };
         };
     }
     }
     return _imageUpload;
     return _imageUpload;

+ 1 - 5
SLAiELTS/SLAiELTS/ViewControllers/RoleLabelVC/Views/SLRoleLabelView.xib

@@ -34,12 +34,8 @@
                     <color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                     <color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                     <nil key="highlightedColor"/>
                     <nil key="highlightedColor"/>
                 </label>
                 </label>
-                <imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_login_logo" translatesAutoresizingMaskIntoConstraints="NO" id="Ox8-7e-thz">
+                <imageView clipsSubviews="YES" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_login_logo" translatesAutoresizingMaskIntoConstraints="NO" id="Ox8-7e-thz">
                     <rect key="frame" x="190" y="50" width="136.33333333333337" height="136.33333333333334"/>
                     <rect key="frame" x="190" y="50" width="136.33333333333337" height="136.33333333333334"/>
-                    <constraints>
-                        <constraint firstAttribute="width" constant="136.33000000000001" id="KRE-cI-Y2T"/>
-                        <constraint firstAttribute="height" constant="136.33000000000001" id="nMK-D9-dYS"/>
-                    </constraints>
                 </imageView>
                 </imageView>
                 <view hidden="YES" clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6LS-Yr-lgs">
                 <view hidden="YES" clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6LS-Yr-lgs">
                     <rect key="frame" x="16" y="186.33333333333334" width="484" height="118.00000000000003"/>
                     <rect key="frame" x="16" y="186.33333333333334" width="484" height="118.00000000000003"/>