Browse Source

首页资讯

Steven 3 months ago
parent
commit
1b6f827d0b
24 changed files with 194 additions and 86 deletions
  1. 10 0
      KulexiuForStudent/KulexiuForStudent.xcodeproj/project.pbxproj
  2. BIN
      KulexiuForStudent/KulexiuForStudent/Assets.xcassets/Home/home_left.imageset/home_left@2x.png
  3. BIN
      KulexiuForStudent/KulexiuForStudent/Assets.xcassets/Home/home_left.imageset/home_left@3x.png
  4. 5 6
      KulexiuForStudent/KulexiuForStudent/Module/Chat/View/ChatUserInfo/UserDetailBodyView.xib
  5. 3 3
      KulexiuForStudent/KulexiuForStudent/Module/Home/Controller/HomeViewController.m
  6. 3 3
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeInformationCell.m
  7. 19 16
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeInformationCell.xib
  8. 6 7
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeIntroduceView.xib
  9. 7 8
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeLiveCourseView.xib
  10. 2 3
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeNewMusic/HomeNewMusicView.xib
  11. 6 3
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomePageView/HomeInformationBodyView.m
  12. 20 0
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomePageView/HomeInformationHeadView.h
  13. 28 0
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomePageView/HomeInformationHeadView.m
  14. 49 0
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomePageView/HomeInformationHeadView.xib
  15. 1 2
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeRecommendMusic/HomeRecommendMusicView.xib
  16. 1 2
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotAlbum/HomeHotAlbumView.xib
  17. 6 7
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotInformationHeadView.xib
  18. 7 8
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotLiveCourse/HomeHotLiveCourseView.xib
  19. 1 2
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotMusic/HomeHotMusicView.xib
  20. 1 2
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotTalent/HomeHotTalentView.xib
  21. 4 1
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotVideoCourse/HomeHotVideoCell.m
  22. 3 1
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotVideoCourse/HomeHotVideoCell.xib
  23. 1 0
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotVideoCourse/HomeHotVideoCourseView.m
  24. 11 12
      KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotVideoCourse/HomeHotVideoCourseView.xib

+ 10 - 0
KulexiuForStudent/KulexiuForStudent.xcodeproj/project.pbxproj

@@ -499,6 +499,8 @@
 		BC5A4B8A2CF42104008C2FDD /* MusicRoomCourseListCell.m in Sources */ = {isa = PBXBuildFile; fileRef = BC5A4B812CF42104008C2FDD /* MusicRoomCourseListCell.m */; };
 		BC5A4B8B2CF42104008C2FDD /* MusicRoomCourseListCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC5A4B822CF42104008C2FDD /* MusicRoomCourseListCell.xib */; };
 		BC5A4B8C2CF42104008C2FDD /* MusicRoomGroupHeadView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC5A4B852CF42104008C2FDD /* MusicRoomGroupHeadView.xib */; };
+		BC5B35242CF7105100456E7F /* HomeInformationHeadView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC5B35232CF7105100456E7F /* HomeInformationHeadView.m */; };
+		BC5B35262CF7105700456E7F /* HomeInformationHeadView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC5B35252CF7105700456E7F /* HomeInformationHeadView.xib */; };
 		BC5F765029001C8D00B433E0 /* HomeDragButton.m in Sources */ = {isa = PBXBuildFile; fileRef = BC5F764F29001C8D00B433E0 /* HomeDragButton.m */; };
 		BC60E3CC287D552800B05441 /* AccountDeleteViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BC60E3C5287D552800B05441 /* AccountDeleteViewController.m */; };
 		BC60E3CD287D552800B05441 /* DeleteAccountBodyView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC60E3C9287D552800B05441 /* DeleteAccountBodyView.m */; };
@@ -1922,6 +1924,9 @@
 		BC5A4B852CF42104008C2FDD /* MusicRoomGroupHeadView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MusicRoomGroupHeadView.xib; sourceTree = "<group>"; };
 		BC5A4B862CF42104008C2FDD /* MusicRoomStudentPageView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MusicRoomStudentPageView.h; sourceTree = "<group>"; };
 		BC5A4B872CF42104008C2FDD /* MusicRoomStudentPageView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MusicRoomStudentPageView.m; sourceTree = "<group>"; };
+		BC5B35222CF7105100456E7F /* HomeInformationHeadView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomeInformationHeadView.h; sourceTree = "<group>"; };
+		BC5B35232CF7105100456E7F /* HomeInformationHeadView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HomeInformationHeadView.m; sourceTree = "<group>"; };
+		BC5B35252CF7105700456E7F /* HomeInformationHeadView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HomeInformationHeadView.xib; sourceTree = "<group>"; };
 		BC5F764E29001C8D00B433E0 /* HomeDragButton.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomeDragButton.h; sourceTree = "<group>"; };
 		BC5F764F29001C8D00B433E0 /* HomeDragButton.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HomeDragButton.m; sourceTree = "<group>"; };
 		BC60E3C5287D552800B05441 /* AccountDeleteViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AccountDeleteViewController.m; sourceTree = "<group>"; };
@@ -6521,6 +6526,9 @@
 				BC2DFF4D28BE068D0056105A /* TeacherStyleFlowLayout.m */,
 				BCFDA65D28BCAEC80022B497 /* HomeInformationBodyView.h */,
 				BCFDA65E28BCAEC80022B497 /* HomeInformationBodyView.m */,
+				BC5B35222CF7105100456E7F /* HomeInformationHeadView.h */,
+				BC5B35232CF7105100456E7F /* HomeInformationHeadView.m */,
+				BC5B35252CF7105700456E7F /* HomeInformationHeadView.xib */,
 			);
 			path = HomePageView;
 			sourceTree = "<group>";
@@ -6657,6 +6665,7 @@
 			files = (
 				BC7FF6A12BEB71610092E0DE /* client.p12 in Resources */,
 				BCCE95DE2AB0490D00AB6385 /* TenantHomeSubjectListCell.xib in Resources */,
+				BC5B35262CF7105700456E7F /* HomeInformationHeadView.xib in Resources */,
 				BCC583CB28A9EC6400BAB4CF /* cloud_animation_7.png in Resources */,
 				BC71D1052881A2420010F14B /* TencentOpenApi_IOS_Bundle.bundle in Resources */,
 				BC206EE42CEF29A6001F2B85 /* MyCourseRankSortView.xib in Resources */,
@@ -7264,6 +7273,7 @@
 				BCC409062AFCE6B500C60249 /* VideoCropImageViewCell.m in Sources */,
 				BC60E3CD287D552800B05441 /* DeleteAccountBodyView.m in Sources */,
 				BC494A7C286958EC00CCD343 /* MusicRoomCourseInfoCell.m in Sources */,
+				BC5B35242CF7105100456E7F /* HomeInformationHeadView.m in Sources */,
 				BCB6347127F6D29600ACFDCF /* KSChatEmojiBoardView.m in Sources */,
 				BCCC36202AAF0EDF000D60CA /* SettingBottomView.m in Sources */,
 				2723B66427F15CFC00E0B90B /* VeriCheckView.m in Sources */,

BIN
KulexiuForStudent/KulexiuForStudent/Assets.xcassets/Home/home_left.imageset/home_left@2x.png


BIN
KulexiuForStudent/KulexiuForStudent/Assets.xcassets/Home/home_left.imageset/home_left@3x.png


+ 5 - 6
KulexiuForStudent/KulexiuForStudent/Module/Chat/View/ChatUserInfo/UserDetailBodyView.xib

@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
     <device id="retina6_0" orientation="portrait" appearance="light"/>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
         <capability name="System colors in document resources" minToolsVersion="11.0"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
@@ -191,7 +191,7 @@
                     </userDefinedRuntimeAttributes>
                 </view>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="最近练习" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bhE-25-YYz">
-                    <rect key="frame" x="40" y="290" width="66" height="22"/>
+                    <rect key="frame" x="40" y="289" width="63.666666666666657" height="22"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="22" id="F6D-gT-EVx"/>
                     </constraints>
@@ -200,14 +200,13 @@
                     <nil key="highlightedColor"/>
                 </label>
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_left" translatesAutoresizingMaskIntoConstraints="NO" id="Jaj-wc-QDp">
-                    <rect key="frame" x="28" y="294" width="4" height="14"/>
+                    <rect key="frame" x="28" y="294" width="4" height="12"/>
                     <constraints>
                         <constraint firstAttribute="width" constant="4" id="aMk-us-iHn"/>
-                        <constraint firstAttribute="height" constant="14" id="ek9-ya-EuK"/>
                     </constraints>
                 </imageView>
                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="JQZ-qL-qfG">
-                    <rect key="frame" x="14" y="328" width="362" height="252"/>
+                    <rect key="frame" x="14" y="327" width="362" height="252"/>
                     <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="252" id="12e-F9-uGR"/>

+ 3 - 3
KulexiuForStudent/KulexiuForStudent/Module/Home/Controller/HomeViewController.m

@@ -1154,12 +1154,12 @@
     }
     else if (collectionView == self.videoCollectionView) {
         if (IS_IPAD) {
-            return CGSizeMake(205, 157);
+            return CGSizeMake(205, 158);
         }
-        return CGSizeMake(168, 157);
+        return CGSizeMake(168, 158);
     }
     else {
-        return CGSizeMake(168, 157);
+        return CGSizeMake(168, 158);
     }
 }
 

+ 3 - 3
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeInformationCell.m

@@ -32,21 +32,21 @@
     self.timeLabel.text = [model.createTime dateFormatString];
     [self.messageImage sd_setImageWithURL:[NSURL URLWithString:[model.coverImage getUrlEndcodeString]] placeholderImage:[UIImage imageNamed:@"video_placeholder"]];
     if (rowIndex == ROWINDEX_TOP) {
-        UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, kScreenWidth - 28, 90) byRoundingCorners:UIRectCornerTopLeft|UIRectCornerTopRight cornerRadii:CGSizeMake(8, 8)];
+        UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, kScreenWidth - 28, 90) byRoundingCorners:UIRectCornerTopLeft|UIRectCornerTopRight cornerRadii:CGSizeMake(10, 10)];
         CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
         maskLayer.frame = self.backView.bounds;
         maskLayer.path = maskPath.CGPath;
         self.backView.layer.mask = maskLayer;
     }
     else if (rowIndex == ROWINDEX_BOTTOM) {
-        UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, kScreenWidth - 28, 90) byRoundingCorners:UIRectCornerBottomLeft|UIRectCornerBottomRight cornerRadii:CGSizeMake(8, 8)];
+        UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, kScreenWidth - 28, 90) byRoundingCorners:UIRectCornerBottomLeft|UIRectCornerBottomRight cornerRadii:CGSizeMake(10, 10)];
         CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
         maskLayer.frame = self.backView.bounds;
         maskLayer.path = maskPath.CGPath;
         self.backView.layer.mask = maskLayer;
     }
     else if (rowIndex == ROWINDEX_TOP_BOTTOM) {
-        UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, kScreenWidth - 28, 90) byRoundingCorners:UIRectCornerTopLeft|UIRectCornerTopRight|UIRectCornerBottomLeft|UIRectCornerBottomRight cornerRadii:CGSizeMake(8, 8)];
+        UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, kScreenWidth - 28, 90) byRoundingCorners:UIRectCornerTopLeft|UIRectCornerTopRight|UIRectCornerBottomLeft|UIRectCornerBottomRight cornerRadii:CGSizeMake(10, 10)];
         CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
         maskLayer.frame = self.backView.bounds;
         maskLayer.path = maskPath.CGPath;

+ 19 - 16
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeInformationCell.xib

@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
     <device id="retina6_1" orientation="portrait" appearance="light"/>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
         <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"/>
@@ -22,27 +22,30 @@
                         <rect key="frame" x="14" y="0.0" width="414" height="90"/>
                         <subviews>
                             <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="video_placeholder" translatesAutoresizingMaskIntoConstraints="NO" id="Z8V-5d-ftb">
-                                <rect key="frame" x="10" y="9" width="104" height="72"/>
+                                <rect key="frame" x="10" y="5" width="108" height="80"/>
                                 <constraints>
-                                    <constraint firstAttribute="height" constant="72" id="Ixx-fI-7pn"/>
-                                    <constraint firstAttribute="width" constant="104" id="h7s-KS-fQD"/>
+                                    <constraint firstAttribute="height" constant="80" id="Ixx-fI-7pn"/>
+                                    <constraint firstAttribute="width" constant="108" id="h7s-KS-fQD"/>
                                 </constraints>
                                 <userDefinedRuntimeAttributes>
                                     <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
-                                        <real key="value" value="5"/>
+                                        <real key="value" value="6"/>
                                     </userDefinedRuntimeAttribute>
                                 </userDefinedRuntimeAttributes>
                             </imageView>
-                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7QX-lI-BO2">
-                                <rect key="frame" x="125" y="80" width="0.0" height="0.0"/>
-                                <fontDescription key="fontDescription" type="system" pointSize="11"/>
-                                <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
+                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2024年07月15日" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7QX-lI-BO2">
+                                <rect key="frame" x="130" y="67" width="97" height="17"/>
+                                <constraints>
+                                    <constraint firstAttribute="height" constant="17" id="ect-XX-4v1"/>
+                                </constraints>
+                                <fontDescription key="fontDescription" type="system" pointSize="12"/>
+                                <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                 <nil key="highlightedColor"/>
                             </label>
-                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="wordWrap" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vYy-zu-7s3">
-                                <rect key="frame" x="125" y="10" width="275" height="0.0"/>
-                                <fontDescription key="fontDescription" type="system" pointSize="14"/>
-                                <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
+                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="交响乐团由哪些乐器组成?初学者如何迈过学" textAlignment="natural" lineBreakMode="wordWrap" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vYy-zu-7s3">
+                                <rect key="frame" x="130" y="6" width="270" height="36"/>
+                                <fontDescription key="fontDescription" type="system" pointSize="15"/>
+                                <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                 <nil key="highlightedColor"/>
                             </label>
                         </subviews>
@@ -51,10 +54,10 @@
                             <constraint firstItem="Z8V-5d-ftb" firstAttribute="centerY" secondItem="mV5-EQ-8aL" secondAttribute="centerY" id="65T-Vc-Xyh"/>
                             <constraint firstAttribute="trailing" secondItem="vYy-zu-7s3" secondAttribute="trailing" constant="14" id="7U3-xg-AYH"/>
                             <constraint firstItem="Z8V-5d-ftb" firstAttribute="leading" secondItem="mV5-EQ-8aL" secondAttribute="leading" constant="10" id="AkI-85-N17"/>
-                            <constraint firstItem="vYy-zu-7s3" firstAttribute="leading" secondItem="Z8V-5d-ftb" secondAttribute="trailing" constant="11" id="R3E-jc-iaM"/>
+                            <constraint firstItem="vYy-zu-7s3" firstAttribute="leading" secondItem="Z8V-5d-ftb" secondAttribute="trailing" constant="12" id="R3E-jc-iaM"/>
                             <constraint firstItem="vYy-zu-7s3" firstAttribute="top" secondItem="Z8V-5d-ftb" secondAttribute="top" constant="1" id="kdL-xJ-5iv"/>
                             <constraint firstItem="7QX-lI-BO2" firstAttribute="bottom" secondItem="Z8V-5d-ftb" secondAttribute="bottom" constant="-1" id="nvO-fK-ikj"/>
-                            <constraint firstItem="7QX-lI-BO2" firstAttribute="leading" secondItem="Z8V-5d-ftb" secondAttribute="trailing" constant="11" id="rfR-4y-TIo"/>
+                            <constraint firstItem="7QX-lI-BO2" firstAttribute="leading" secondItem="Z8V-5d-ftb" secondAttribute="trailing" constant="12" id="rfR-4y-TIo"/>
                         </constraints>
                     </view>
                 </subviews>

+ 6 - 7
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeIntroduceView.xib

@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
     <device id="retina6_1" orientation="portrait" appearance="light"/>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
@@ -14,7 +14,7 @@
             <autoresizingMask key="autoresizingMask"/>
             <subviews>
                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YXf-ag-UTD">
-                    <rect key="frame" x="349" y="12" width="45" height="18"/>
+                    <rect key="frame" x="350" y="12" width="44" height="18"/>
                     <color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="18" id="OJp-8I-Nrz"/>
@@ -26,7 +26,7 @@
                     </userDefinedRuntimeAttributes>
                 </view>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="老师风采" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="R1l-Xp-3tk">
-                    <rect key="frame" x="29" y="10" width="65.5" height="22"/>
+                    <rect key="frame" x="29" y="10" width="64" height="22"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="22" id="4eO-n3-qj3"/>
                     </constraints>
@@ -48,13 +48,13 @@
                     </constraints>
                 </imageView>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="更多" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RwY-C1-Hxk">
-                    <rect key="frame" x="355" y="14" width="25" height="14.5"/>
+                    <rect key="frame" x="356" y="14" width="24" height="14.5"/>
                     <fontDescription key="fontDescription" type="system" pointSize="12"/>
                     <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
                     <nil key="highlightedColor"/>
                 </label>
                 <button opaque="NO" tag="1008" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="spZ-ec-oEg">
-                    <rect key="frame" x="355" y="6" width="34" height="30"/>
+                    <rect key="frame" x="356" y="6" width="33" height="30"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="30" id="AsG-mP-8Lu"/>
                     </constraints>
@@ -69,7 +69,6 @@
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_left" translatesAutoresizingMaskIntoConstraints="NO" id="WRA-M3-XbQ">
                     <rect key="frame" x="19" y="15" width="4" height="12"/>
                     <constraints>
-                        <constraint firstAttribute="height" constant="12" id="I90-pe-Bbi"/>
                         <constraint firstAttribute="width" constant="4" id="yRX-LK-uP9"/>
                     </constraints>
                 </imageView>

+ 7 - 8
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeLiveCourseView.xib

@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
     <device id="retina6_1" orientation="portrait" appearance="light"/>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
@@ -14,7 +14,7 @@
             <autoresizingMask key="autoresizingMask"/>
             <subviews>
                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YjN-Fx-G8f">
-                    <rect key="frame" x="349" y="32" width="45" height="18"/>
+                    <rect key="frame" x="350" y="32" width="44" height="18"/>
                     <color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="18" id="QXM-Ob-gFw"/>
@@ -26,7 +26,7 @@
                     </userDefinedRuntimeAttributes>
                 </view>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="直播课" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ddn-uf-BAf">
-                    <rect key="frame" x="29" y="30" width="49" height="22"/>
+                    <rect key="frame" x="29" y="30" width="48" height="22"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="22" id="Ui4-lg-adA"/>
                     </constraints>
@@ -46,13 +46,13 @@
                     </constraints>
                 </imageView>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="更多" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3ib-v1-Htp">
-                    <rect key="frame" x="355" y="34" width="25" height="14.5"/>
+                    <rect key="frame" x="356" y="34" width="24" height="14.5"/>
                     <fontDescription key="fontDescription" type="system" pointSize="12"/>
                     <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
                     <nil key="highlightedColor"/>
                 </label>
                 <button opaque="NO" tag="1008" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="14b-8n-uKT">
-                    <rect key="frame" x="355" y="26" width="34" height="30"/>
+                    <rect key="frame" x="356" y="26" width="33" height="30"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="30" id="R97-WE-q5Z"/>
                     </constraints>
@@ -65,9 +65,8 @@
                     </connections>
                 </button>
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_left" translatesAutoresizingMaskIntoConstraints="NO" id="bhP-8F-ysM">
-                    <rect key="frame" x="19" y="32" width="4" height="18"/>
+                    <rect key="frame" x="19" y="35" width="4" height="12"/>
                     <constraints>
-                        <constraint firstAttribute="height" constant="18" id="gv1-Vn-bFv"/>
                         <constraint firstAttribute="width" constant="4" id="h5T-b4-Sw4"/>
                     </constraints>
                 </imageView>

+ 2 - 3
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeNewMusic/HomeNewMusicView.xib

@@ -61,9 +61,8 @@
                     </constraints>
                 </imageView>
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_left" translatesAutoresizingMaskIntoConstraints="NO" id="Gnt-En-BW7">
-                    <rect key="frame" x="14" y="13" width="4" height="18"/>
+                    <rect key="frame" x="14" y="14.666666666666664" width="4" height="15"/>
                     <constraints>
-                        <constraint firstAttribute="height" constant="18" id="B5g-ev-PbH"/>
                         <constraint firstAttribute="width" constant="4" id="Jx9-Q2-wT3"/>
                     </constraints>
                 </imageView>
@@ -105,7 +104,7 @@
         </view>
     </objects>
     <resources>
-        <image name="home_left" width="4" height="12"/>
+        <image name="home_left" width="4" height="15"/>
         <image name="home_more_green" width="5" height="8"/>
     </resources>
 </document>

+ 6 - 3
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomePageView/HomeInformationBodyView.m

@@ -10,6 +10,8 @@
 #import "HomeMessageModel.h"
 #import "KSBaseWKWebViewController.h"
 #import "UserInfoManager.h"
+#import "HomeInformationHeadView.h"
+
 @interface HomeInformationBodyView ()<UITableViewDelegate,UITableViewDataSource>
 
 @property (nonatomic, assign) BOOL isFirstLoad;
@@ -33,11 +35,12 @@
         self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
         self.tableView.rowHeight = 90;
         
-        UIView *headView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 10)];
-        headView.backgroundColor = HexRGB(0xf6f8f9);
+        HomeInformationHeadView *headView = [HomeInformationHeadView sharedInstance];
+        CGFloat height = [HomeInformationHeadView getViewHeight];
+        headView.frame = CGRectMake(0, 0, KPortraitWidth, height);
         self.tableView.tableHeaderView = headView;
         
-        UIView *bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 10)];
+        UIView *bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, KPortraitWidth, 10)];
         bottomView.backgroundColor = HexRGB(0xf6f8f9);
         self.tableView.tableFooterView = bottomView;
         

+ 20 - 0
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomePageView/HomeInformationHeadView.h

@@ -0,0 +1,20 @@
+//
+//  HomeInformationHeadView.h
+//  KulexiuForStudent
+//
+//  Created by 王智 on 2024/11/27.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface HomeInformationHeadView : UIView
+
++ (instancetype)sharedInstance;
+
++ (CGFloat)getViewHeight;
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 28 - 0
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomePageView/HomeInformationHeadView.m

@@ -0,0 +1,28 @@
+//
+//  HomeInformationHeadView.m
+//  KulexiuForStudent
+//
+//  Created by 王智 on 2024/11/27.
+//
+
+#import "HomeInformationHeadView.h"
+
+@implementation HomeInformationHeadView
+
++ (instancetype)sharedInstance {
+    HomeInformationHeadView *view = [[[NSBundle mainBundle] loadNibNamed:@"HomeInformationHeadView" owner:nil options:nil] firstObject];
+    return view;
+}
+
++ (CGFloat)getViewHeight {
+    return 56.0f;
+}
+/*
+// Only override drawRect: if you perform custom drawing.
+// An empty implementation adversely affects performance during animation.
+- (void)drawRect:(CGRect)rect {
+    // Drawing code
+}
+*/
+
+@end

+ 49 - 0
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomePageView/HomeInformationHeadView.xib

@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+    <device id="retina6_12" orientation="portrait" appearance="light"/>
+    <dependencies>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+    </dependencies>
+    <objects>
+        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
+        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
+        <view contentMode="scaleToFill" id="iN0-l3-epB">
+            <rect key="frame" x="0.0" y="0.0" width="393" height="56"/>
+            <autoresizingMask key="autoresizingMask"/>
+            <subviews>
+                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="热门资讯" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="f3W-Pc-Cxd">
+                    <rect key="frame" x="24" y="20" width="67.666666666666671" height="24"/>
+                    <constraints>
+                        <constraint firstAttribute="height" constant="24" id="0fE-nI-IJb"/>
+                    </constraints>
+                    <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
+                    <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                    <nil key="highlightedColor"/>
+                </label>
+                <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_left" translatesAutoresizingMaskIntoConstraints="NO" id="Eue-s3-S1O">
+                    <rect key="frame" x="14" y="24.666666666666671" width="4" height="15"/>
+                    <constraints>
+                        <constraint firstAttribute="width" constant="4" id="CyF-a9-ZIC"/>
+                    </constraints>
+                </imageView>
+            </subviews>
+            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+            <constraints>
+                <constraint firstItem="f3W-Pc-Cxd" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="20" id="3vM-Ne-T1i"/>
+                <constraint firstItem="Eue-s3-S1O" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="14" id="fPg-kg-cfh"/>
+                <constraint firstAttribute="bottom" secondItem="f3W-Pc-Cxd" secondAttribute="bottom" constant="12" id="lK1-Cc-fp2"/>
+                <constraint firstItem="f3W-Pc-Cxd" firstAttribute="leading" secondItem="Eue-s3-S1O" secondAttribute="trailing" constant="6" id="sqt-hl-oke"/>
+                <constraint firstItem="f3W-Pc-Cxd" firstAttribute="centerY" secondItem="Eue-s3-S1O" secondAttribute="centerY" id="ubV-zi-EYQ"/>
+            </constraints>
+            <nil key="simulatedTopBarMetrics"/>
+            <nil key="simulatedBottomBarMetrics"/>
+            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
+            <point key="canvasLocation" x="49.618320610687022" y="-8.4507042253521139"/>
+        </view>
+    </objects>
+    <resources>
+        <image name="home_left" width="4" height="15"/>
+    </resources>
+</document>

+ 1 - 2
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeRecommendMusic/HomeRecommendMusicView.xib

@@ -61,9 +61,8 @@
                     </constraints>
                 </imageView>
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_left" translatesAutoresizingMaskIntoConstraints="NO" id="Te8-hi-wDF">
-                    <rect key="frame" x="14" y="13" width="4" height="18"/>
+                    <rect key="frame" x="14" y="16" width="4" height="12"/>
                     <constraints>
-                        <constraint firstAttribute="height" constant="18" id="0nb-Nj-2lG"/>
                         <constraint firstAttribute="width" constant="4" id="g6O-Mb-yas"/>
                     </constraints>
                 </imageView>

+ 1 - 2
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotAlbum/HomeHotAlbumView.xib

@@ -68,10 +68,9 @@
                     </connections>
                 </button>
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_left" translatesAutoresizingMaskIntoConstraints="NO" id="yKI-ip-Z1l">
-                    <rect key="frame" x="19" y="12" width="4" height="18"/>
+                    <rect key="frame" x="19" y="15" width="4" height="12"/>
                     <constraints>
                         <constraint firstAttribute="width" constant="4" id="0n6-S5-hNN"/>
-                        <constraint firstAttribute="height" constant="18" id="DZG-as-IKL"/>
                     </constraints>
                 </imageView>
             </subviews>

+ 6 - 7
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotInformationHeadView.xib

@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
     <device id="retina6_1" orientation="portrait" appearance="light"/>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
@@ -14,7 +14,7 @@
             <autoresizingMask key="autoresizingMask"/>
             <subviews>
                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BHe-NQ-zoN">
-                    <rect key="frame" x="349" y="12" width="45" height="18"/>
+                    <rect key="frame" x="350" y="12" width="44" height="18"/>
                     <color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="18" id="tJx-OF-zeb"/>
@@ -26,7 +26,7 @@
                     </userDefinedRuntimeAttributes>
                 </view>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="精彩资讯" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="76G-7c-nEc">
-                    <rect key="frame" x="29" y="10" width="65.5" height="22"/>
+                    <rect key="frame" x="29" y="10" width="64" height="22"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="22" id="325-gq-Ep0"/>
                     </constraints>
@@ -35,7 +35,7 @@
                     <nil key="highlightedColor"/>
                 </label>
                 <button opaque="NO" tag="1008" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GKx-rJ-vq5">
-                    <rect key="frame" x="355" y="6" width="34" height="30"/>
+                    <rect key="frame" x="356" y="6" width="33" height="30"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="30" id="F8f-2f-Iih"/>
                     </constraints>
@@ -48,7 +48,7 @@
                     </connections>
                 </button>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="更多" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uoh-6D-nay">
-                    <rect key="frame" x="355" y="14" width="25" height="14.5"/>
+                    <rect key="frame" x="356" y="14" width="24" height="14.5"/>
                     <fontDescription key="fontDescription" type="system" pointSize="12"/>
                     <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
                     <nil key="highlightedColor"/>
@@ -64,7 +64,6 @@
                     <rect key="frame" x="19" y="15" width="4" height="12"/>
                     <constraints>
                         <constraint firstAttribute="width" constant="4" id="GnD-1F-rkO"/>
-                        <constraint firstAttribute="height" constant="12" id="QTh-LV-sbb"/>
                     </constraints>
                 </imageView>
             </subviews>

+ 7 - 8
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotLiveCourse/HomeHotLiveCourseView.xib

@@ -1,9 +1,9 @@
 <?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" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
     <device id="retina6_1" orientation="portrait" appearance="light"/>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21207"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
@@ -14,7 +14,7 @@
             <autoresizingMask key="autoresizingMask"/>
             <subviews>
                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CPc-xV-zzJ">
-                    <rect key="frame" x="641" y="33.5" width="45" height="18"/>
+                    <rect key="frame" x="642" y="33.5" width="44" height="18"/>
                     <color key="backgroundColor" red="0.1764705882" green="0.78039215689999997" blue="0.66666666669999997" alpha="0.10000000000000001" colorSpace="calibratedRGB"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="18" id="Zgm-n4-wxD"/>
@@ -26,7 +26,7 @@
                     </userDefinedRuntimeAttributes>
                 </view>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="精品直播课" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rgx-lE-LIf">
-                    <rect key="frame" x="24" y="30" width="92" height="25"/>
+                    <rect key="frame" x="24" y="30" width="89.5" height="25"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="25" id="Qv0-Dh-p2P"/>
                     </constraints>
@@ -49,13 +49,13 @@
                     </constraints>
                 </imageView>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="更多" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tJa-YC-kmI">
-                    <rect key="frame" x="647" y="35.5" width="25" height="14"/>
+                    <rect key="frame" x="648" y="35.5" width="24" height="14"/>
                     <fontDescription key="fontDescription" type="system" pointSize="12"/>
                     <color key="textColor" red="0.1764705882" green="0.78039215689999997" blue="0.66666666669999997" alpha="1" colorSpace="calibratedRGB"/>
                     <nil key="highlightedColor"/>
                 </label>
                 <button opaque="NO" tag="1008" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4W2-m4-Hi6">
-                    <rect key="frame" x="647" y="27.5" width="34" height="30"/>
+                    <rect key="frame" x="648" y="27.5" width="33" height="30"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="30" id="8l9-2D-Tp8"/>
                     </constraints>
@@ -68,9 +68,8 @@
                     </connections>
                 </button>
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_left" translatesAutoresizingMaskIntoConstraints="NO" id="MKo-QN-cJI">
-                    <rect key="frame" x="14" y="33.5" width="4" height="18"/>
+                    <rect key="frame" x="14" y="36.5" width="4" height="12"/>
                     <constraints>
-                        <constraint firstAttribute="height" constant="18" id="3Q5-cg-akT"/>
                         <constraint firstAttribute="width" constant="4" id="nJZ-TE-ZDC"/>
                     </constraints>
                 </imageView>

+ 1 - 2
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotMusic/HomeHotMusicView.xib

@@ -61,9 +61,8 @@
                     </constraints>
                 </imageView>
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_left" translatesAutoresizingMaskIntoConstraints="NO" id="DQd-nL-Wor">
-                    <rect key="frame" x="14" y="13" width="4" height="18"/>
+                    <rect key="frame" x="14" y="16" width="4" height="12"/>
                     <constraints>
-                        <constraint firstAttribute="height" constant="18" id="rlt-cd-KJy"/>
                         <constraint firstAttribute="width" constant="4" id="ysI-kO-iNt"/>
                     </constraints>
                 </imageView>

+ 1 - 2
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotTalent/HomeHotTalentView.xib

@@ -30,9 +30,8 @@
                     </constraints>
                 </view>
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_left" translatesAutoresizingMaskIntoConstraints="NO" id="yk3-O1-fKs">
-                    <rect key="frame" x="14" y="23" width="4" height="18"/>
+                    <rect key="frame" x="14" y="26" width="4" height="12"/>
                     <constraints>
-                        <constraint firstAttribute="height" constant="18" id="5GX-jt-Phz"/>
                         <constraint firstAttribute="width" constant="4" id="vXT-S1-5L3"/>
                     </constraints>
                 </imageView>

+ 4 - 1
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotVideoCourse/HomeHotVideoCell.m

@@ -15,6 +15,8 @@
 
 @property (weak, nonatomic) IBOutlet UILabel *teacherName;
 
+@property (weak, nonatomic) IBOutlet UIImageView *teacherAvatar;
+
 @property (weak, nonatomic) IBOutlet UILabel *countLabel;
 
 @property (weak, nonatomic) IBOutlet UILabel *subjectLabel;
@@ -37,7 +39,8 @@
     else {
         self.teacherName.text = [NSString stringWithFormat:@"%@",source.teacherName];
     }
-    self.countLabel.text = [NSString stringWithFormat:@"%zd人在学",source.buyCount];
+    [self.teacherAvatar sd_setImageWithURL:[NSURL URLWithString:[source.avatar getUrlEndcodeString]] placeholderImage:[UIImage imageNamed:TEACHER_AVATAR]];
+    self.countLabel.text = [NSString stringWithFormat:@"%zd人学习",source.buyCount];
     
     self.subjectLabel.text = [NSString returnNoNullStringWithString:source.subjectName];
 }

+ 3 - 1
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotVideoCourse/HomeHotVideoCell.xib

@@ -91,7 +91,7 @@
                                     </userDefinedRuntimeAttribute>
                                 </userDefinedRuntimeAttributes>
                             </view>
-                            <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="beY-9e-YS4">
+                            <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="teacher_avatar" translatesAutoresizingMaskIntoConstraints="NO" id="beY-9e-YS4">
                                 <rect key="frame" x="12" y="126" width="20" height="20"/>
                                 <constraints>
                                     <constraint firstAttribute="height" constant="20" id="XDf-1n-aB1"/>
@@ -142,12 +142,14 @@
                 <outlet property="courseName" destination="4KZ-pa-CpR" id="FF1-fh-P98"/>
                 <outlet property="coverImage" destination="wTC-8E-ugs" id="z93-t8-kqz"/>
                 <outlet property="subjectLabel" destination="t7Q-dI-DuS" id="g1q-ZG-oNa"/>
+                <outlet property="teacherAvatar" destination="beY-9e-YS4" id="8xl-Sa-Dm1"/>
                 <outlet property="teacherName" destination="4Ny-Ee-haR" id="KeA-wn-Vzl"/>
             </connections>
             <point key="canvasLocation" x="121.73913043478262" y="127.23214285714285"/>
         </collectionViewCell>
     </objects>
     <resources>
+        <image name="teacher_avatar" width="150" height="150"/>
         <systemColor name="systemBackgroundColor">
             <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
         </systemColor>

+ 1 - 0
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotVideoCourse/HomeHotVideoCourseView.m

@@ -29,6 +29,7 @@
 + (CGFloat)getViewHeight {
     return 214.0f;
 }
+
 - (IBAction)moreVideoCourse:(id)sender {
     if (self.callback) {
         self.callback();

+ 11 - 12
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HotVideoCourse/HomeHotVideoCourseView.xib

@@ -10,11 +10,11 @@
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
         <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="HomeHotVideoCourseView">
-            <rect key="frame" x="0.0" y="0.0" width="414" height="224"/>
+            <rect key="frame" x="0.0" y="0.0" width="414" height="214"/>
             <autoresizingMask key="autoresizingMask"/>
             <subviews>
                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ImZ-xL-12C">
-                    <rect key="frame" x="356" y="23.5" width="44" height="18"/>
+                    <rect key="frame" x="356" y="23" width="44" height="18"/>
                     <color key="backgroundColor" red="0.1764705882" green="0.78039215689999997" blue="0.66666666669999997" alpha="0.10000000000000001" colorSpace="calibratedRGB"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="18" id="AcK-bR-c3f"/>
@@ -26,36 +26,36 @@
                     </userDefinedRuntimeAttributes>
                 </view>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="视频课" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EIe-qp-TsO">
-                    <rect key="frame" x="24" y="20" width="51" height="25"/>
+                    <rect key="frame" x="24" y="20" width="51" height="24"/>
                     <constraints>
-                        <constraint firstAttribute="height" constant="25" id="uPk-du-hdF"/>
+                        <constraint firstAttribute="height" constant="24" id="uPk-du-hdF"/>
                     </constraints>
                     <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
                     <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                     <nil key="highlightedColor"/>
                 </label>
                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Kff-dl-GsO">
-                    <rect key="frame" x="0.0" y="57" width="414" height="157"/>
+                    <rect key="frame" x="0.0" y="56" width="414" height="158"/>
                     <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                     <constraints>
-                        <constraint firstAttribute="height" constant="157" id="drX-7K-Af3"/>
+                        <constraint firstAttribute="height" constant="158" id="drX-7K-Af3"/>
                     </constraints>
                 </view>
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_more_green" translatesAutoresizingMaskIntoConstraints="NO" id="QNi-gh-Evy">
-                    <rect key="frame" x="389" y="28.5" width="6" height="8"/>
+                    <rect key="frame" x="389" y="28" width="6" height="8"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="8" id="GlH-pA-QXZ"/>
                         <constraint firstAttribute="width" constant="6" id="Ukq-f5-bGl"/>
                     </constraints>
                 </imageView>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="更多" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Nbu-3T-s6e">
-                    <rect key="frame" x="362" y="25.5" width="24" height="14.5"/>
+                    <rect key="frame" x="362" y="25" width="24" height="14.5"/>
                     <fontDescription key="fontDescription" type="system" pointSize="12"/>
                     <color key="textColor" red="0.1764705882" green="0.78039215689999997" blue="0.66666666669999997" alpha="1" colorSpace="calibratedRGB"/>
                     <nil key="highlightedColor"/>
                 </label>
                 <button opaque="NO" tag="1008" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oQF-oZ-Pbs">
-                    <rect key="frame" x="362" y="17.5" width="33" height="30"/>
+                    <rect key="frame" x="362" y="17" width="33" height="30"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="30" id="EY9-fK-W16"/>
                     </constraints>
@@ -68,10 +68,9 @@
                     </connections>
                 </button>
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_left" translatesAutoresizingMaskIntoConstraints="NO" id="tFO-hR-fSY">
-                    <rect key="frame" x="14" y="23.5" width="4" height="18"/>
+                    <rect key="frame" x="14" y="26" width="4" height="12"/>
                     <constraints>
                         <constraint firstAttribute="width" constant="4" id="F2X-9W-Jbc"/>
-                        <constraint firstAttribute="height" constant="18" id="OWn-BU-LHJ"/>
                     </constraints>
                 </imageView>
             </subviews>
@@ -101,7 +100,7 @@
             <connections>
                 <outlet property="videoContentView" destination="Kff-dl-GsO" id="fB7-RQ-UlM"/>
             </connections>
-            <point key="canvasLocation" x="131.8840579710145" y="-155.02232142857142"/>
+            <point key="canvasLocation" x="131.8840579710145" y="-158.37053571428569"/>
         </view>
     </objects>
     <resources>