浏览代码

最近课程进入VIP

Steven 8 月之前
父节点
当前提交
fb6354ca21

+ 8 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/Home/Controller/HomeViewController.m

@@ -20,6 +20,7 @@
 #import "NoticeSourceModel.h"
 #import "HomeRecentCourseView.h"
 #import "AccompanyDetailViewController.h"
+#import "VipCouseDetailViewController.h"
 #import "RecentCourseModel.h"
 #import "AppDelegate.h"
 #import "MusicRoomViewController.h"
@@ -1152,6 +1153,13 @@
         ctrl.courseGroupId = courseModel.courseGroupId;
         [self.navigationController pushViewController:ctrl animated:YES];
     }
+    else if (type == RECENTCOURSE_TYPE_VIP) { //VIP 定制课
+        VipCouseDetailViewController *detailVC = [[VipCouseDetailViewController alloc] init];
+        detailVC.courseId = courseModel.courseId;
+        detailVC.courseGroupId = courseModel.courseGroupId;
+        detailVC.studentId = courseModel.studentId;
+        [self.navigationController pushViewController:detailVC animated:YES];
+    }
     else {
         KSBaseWKWebViewController *ctrl = [[KSBaseWKWebViewController alloc] init];
         ctrl.url = [NSString stringWithFormat:@"%@/#/liveDetail?joinRoom=1&groupId=%@&classId=%@", WEBHOST, courseModel.courseGroupId,courseModel.courseId];

+ 1 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/Home/View/HomeRecentCourseView.h

@@ -12,6 +12,7 @@ typedef NS_ENUM(NSInteger, RECENTCOURSE_TYPE) {
     RECENTCOURSE_TYPE_LIVE,
     RECENTCOURSE_TYPE_ACCOMPANY,
     RECENTCOURSE_TYPE_MUSICCLASS, // 琴房
+    RECENTCOURSE_TYPE_VIP,
 };
 
 typedef void(^RecentCourseAction)(RECENTCOURSE_TYPE type, RecentCourseModel * _Nonnull courseModel);

+ 7 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/Home/View/HomeRecentCourseView.m

@@ -62,6 +62,9 @@
     else if ([self.courseModel.courseType isEqualToString:@"PIANO_ROOM_CLASS"]) {
         jsonString = @"musicRoom_animation";
     }
+    else if ([self.courseModel.courseType isEqualToString:@"VIP"]) {
+        jsonString = @"accomapny_animation.json";
+    }
     else {
         jsonString = @"accomapny_animation";
     }
@@ -92,9 +95,13 @@
         else if ([self.courseModel.courseType isEqualToString:@"PIANO_ROOM_CLASS"]) {
             type = RECENTCOURSE_TYPE_MUSICCLASS;
         }
+        else if ([self.courseModel.courseType isEqualToString:@"VIP"]) {
+            type = RECENTCOURSE_TYPE_VIP;
+        }
         else /*if ([self.courseModel.courseType isEqualToString:@"PRACTICE"])*/ {
             type = RECENTCOURSE_TYPE_ACCOMPANY;
         }
+        
         self.callback(type, self.courseModel);
     }
 }

+ 1 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/Controller/MinePageViewController.m

@@ -101,6 +101,7 @@
     self.categoryView.titleSelectedColor = HexRGB(0x333333);
     self.categoryView.titleColor = HexRGB(0x666666);
     self.categoryView.titleColorGradientEnabled = YES;
+    self.categoryView.cellSpacing = 10.0f;
     
     JXCategoryIndicatorGradientLineView *lineView = [[JXCategoryIndicatorGradientLineView alloc] init];
     lineView.indicatorColor = [UIColor clearColor];

+ 1 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/View/HeadView/MinePageHeadView.xib

@@ -21,6 +21,7 @@
                     <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" id="OBV-oJ-nhS">
                         <rect key="frame" x="0.0" y="0.0" width="414" height="216"/>
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                     </view>
                     <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                     <blurEffect style="dark"/>