Browse Source

直播课程组样式 圆角等修改

Steven 3 months ago
parent
commit
c5455bfb0f

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Home/MyCourse/View/LiveCourseGroup/MyLiveCourseGroupListCell.xib

@@ -174,7 +174,7 @@
                         </constraints>
                         <userDefinedRuntimeAttributes>
                             <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
-                                <real key="value" value="6"/>
+                                <real key="value" value="10"/>
                             </userDefinedRuntimeAttribute>
                         </userDefinedRuntimeAttributes>
                     </view>

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Home/MyCourse/View/VideoCourseGroup/MyVideoGroupListCell.xib

@@ -158,7 +158,7 @@
                         </constraints>
                         <userDefinedRuntimeAttributes>
                             <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
-                                <real key="value" value="6"/>
+                                <real key="value" value="10"/>
                             </userDefinedRuntimeAttribute>
                         </userDefinedRuntimeAttributes>
                     </view>

+ 5 - 5
KulexiuForTeacher/KulexiuForTeacher/Module/Live/View/LiveSeatApplyCell.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" 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="20020"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
         <capability name="Safe area layout guides" minToolsVersion="9.0"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
@@ -17,7 +17,7 @@
                 <rect key="frame" x="0.0" y="0.0" width="360" height="90"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
-                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="user_default_avatal" translatesAutoresizingMaskIntoConstraints="NO" id="DZT-rd-ceH">
+                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="student_avatar" translatesAutoresizingMaskIntoConstraints="NO" id="DZT-rd-ceH">
                         <rect key="frame" x="14" y="21" width="48" height="48"/>
                         <constraints>
                             <constraint firstAttribute="height" constant="48" id="tal-Vf-fOZ"/>
@@ -39,7 +39,7 @@
                         <nil key="highlightedColor"/>
                     </label>
                     <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="申请连麦" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fN4-Tv-KI2">
-                        <rect key="frame" x="72" y="49" width="54" height="18"/>
+                        <rect key="frame" x="72" y="49" width="52" height="18"/>
                         <constraints>
                             <constraint firstAttribute="height" constant="18" id="9gP-7l-QMG"/>
                         </constraints>
@@ -113,6 +113,6 @@
         </tableViewCell>
     </objects>
     <resources>
-        <image name="user_default_avatal" width="52" height="52"/>
+        <image name="student_avatar" width="150" height="150"/>
     </resources>
 </document>

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/LiveCourse/Controller/MyLiveCourseViewController.m

@@ -13,7 +13,7 @@
 #import "TeacherInfo.h"
 #import "UserInfoManager.h"
 
-#define HEADER_HEIGHT (50)
+#define HEADER_HEIGHT (44)
 
 @interface MyLiveCourseViewController ()<JXPagerViewDelegate, JXPagerMainTableViewGestureDelegate,JXCategoryViewDelegate>
 

+ 10 - 7
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/View/MinePageLiveCourse/MineLiveCourseGroupCell.xib

@@ -139,7 +139,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="6cN-Qs-aEM">
-                                <rect key="frame" x="265" y="258" width="0.0" height="24"/>
+                                <rect key="frame" x="239" y="258" width="0.0" height="24"/>
                                 <constraints>
                                     <constraint firstAttribute="height" constant="24" id="dVD-1n-VbO"/>
                                 </constraints>
@@ -147,14 +147,17 @@
                                 <color key="textColor" red="0.95686274509803915" green="0.27058823529411763" blue="0.25490196078431371" 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="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Vjg-7W-RnJ">
-                                <rect key="frame" x="273" y="280" width="0.0" height="0.0"/>
-                                <fontDescription key="fontDescription" type="system" pointSize="14"/>
+                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="/1课时" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Vjg-7W-RnJ">
+                                <rect key="frame" x="241" y="263" width="32" height="17"/>
+                                <constraints>
+                                    <constraint firstAttribute="height" constant="17" id="DUZ-YW-1Iq"/>
+                                </constraints>
+                                <fontDescription key="fontDescription" type="system" pointSize="11"/>
                                 <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
                                 <nil key="highlightedColor"/>
                             </label>
                             <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gvo-Hj-3h0">
-                                <rect key="frame" x="256" y="264" width="7" height="16"/>
+                                <rect key="frame" x="230" y="264" width="7" height="16"/>
                                 <constraints>
                                     <constraint firstAttribute="height" constant="16" id="y8t-9d-Ykz"/>
                                 </constraints>
@@ -171,7 +174,7 @@
                             <constraint firstItem="vAB-E9-FHQ" firstAttribute="leading" secondItem="oRV-eY-dq7" secondAttribute="leading" constant="12" id="4Sh-KB-wqN"/>
                             <constraint firstItem="yTY-zb-NMC" firstAttribute="top" secondItem="vAB-E9-FHQ" secondAttribute="top" constant="7" id="8OW-Xf-9H7"/>
                             <constraint firstAttribute="bottom" secondItem="Vjg-7W-RnJ" secondAttribute="bottom" constant="14" id="9SP-Sg-vZv"/>
-                            <constraint firstItem="Vjg-7W-RnJ" firstAttribute="leading" secondItem="6cN-Qs-aEM" secondAttribute="trailing" constant="8" id="9ak-Kw-gjF"/>
+                            <constraint firstItem="Vjg-7W-RnJ" firstAttribute="leading" secondItem="6cN-Qs-aEM" secondAttribute="trailing" constant="2" id="9ak-Kw-gjF"/>
                             <constraint firstItem="L2D-Md-biT" firstAttribute="top" relation="greaterThanOrEqual" secondItem="fVi-EI-HNi" secondAttribute="bottom" constant="8" id="CMG-Mi-kxN"/>
                             <constraint firstItem="0Gb-VJ-opm" firstAttribute="centerY" secondItem="xdA-OV-wj5" secondAttribute="centerY" id="CR4-UW-XoV"/>
                             <constraint firstItem="6cN-Qs-aEM" firstAttribute="leading" secondItem="gvo-Hj-3h0" secondAttribute="trailing" constant="2" id="CgL-pn-0nq"/>
@@ -199,7 +202,7 @@
                         </constraints>
                         <userDefinedRuntimeAttributes>
                             <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
-                                <real key="value" value="6"/>
+                                <real key="value" value="10"/>
                             </userDefinedRuntimeAttribute>
                         </userDefinedRuntimeAttributes>
                     </view>

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/View/MineVideoCourse/MinePageVideoGroupCell.xib

@@ -200,7 +200,7 @@
                         </constraints>
                         <userDefinedRuntimeAttributes>
                             <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
-                                <real key="value" value="6"/>
+                                <real key="value" value="10"/>
                             </userDefinedRuntimeAttribute>
                         </userDefinedRuntimeAttributes>
                     </view>

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/VideoCourse/Controller/VideoCourseViewController.m

@@ -14,7 +14,7 @@
 #import "UserInfoManager.h"
 
 
-#define HEADER_HEIGHT (50)
+#define HEADER_HEIGHT (44)
 
 @interface VideoCourseViewController ()<JXPagerViewDelegate, JXPagerMainTableViewGestureDelegate,JXCategoryViewDelegate>
 

+ 8 - 3
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/VideoCourse/View/VideoListBodyView.m

@@ -37,9 +37,9 @@
 - (instancetype)initWithFrame:(CGRect)frame {
     self = [super initWithFrame:frame];
     if (self) {
-        self.backgroundColor = HexRGB(0xf8f9fc);
+        self.backgroundColor = [UIColor clearColor];
         self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height) style:UITableViewStylePlain];
-        self.tableView.backgroundColor = HexRGB(0xf8f9fc);
+        self.tableView.backgroundColor = [UIColor clearColor];
         self.tableView.showsVerticalScrollIndicator = NO;
         self.tableView.dataSource = self;
         self.tableView.delegate = self;
@@ -50,8 +50,13 @@
         [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
             make.left.right.top.bottom.mas_equalTo(self);
         }];
+        
+        UIView *headView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 10)];
+        headView.backgroundColor = [UIColor clearColor];
+        self.tableView.tableFooterView = headView;
+        
         UIView *bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 10)];
-        bottomView.backgroundColor = HexRGB(0xf8f9fc);
+        bottomView.backgroundColor = [UIColor clearColor];
         self.tableView.tableFooterView = bottomView;
         
         MJWeakSelf;