소스 검색

无直播课权限的占位图

Steven 3 달 전
부모
커밋
e7b4ab6366

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

@@ -221,9 +221,16 @@
     if (model) {
         [self.courseView configCourseMessage:model];
         self.courseView.hidden = NO;
+        CGFloat height = [HomeRecentCourseView getViewHeight];
+        [self.courseView mas_updateConstraints:^(MASConstraintMaker *make) {
+            make.height.mas_equalTo(height);
+        }];
     }
     else {
         self.courseView.hidden = YES;
+        [self.courseView mas_updateConstraints:^(MASConstraintMaker *make) {
+            make.height.mas_equalTo(CGFLOAT_MIN);
+        }];
     }
 }
 

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/View/MineMusic/MinePageMusicView.m

@@ -304,7 +304,7 @@
 - (void)settingCourseAction {
     // 上传乐谱
     KSBaseWKWebViewController *webCtrl = [[KSBaseWKWebViewController alloc] init];
-    webCtrl.url = [NSString stringWithFormat:@"%@%@", WEBHOST, @"/#/videoCreate"];
+    webCtrl.url = [NSString stringWithFormat:@"%@%@", WEBHOST, @"/#/music-upload"];
     [self.naviController pushViewController:webCtrl animated:YES];
 }
 

+ 11 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/View/MinePageLiveCourse/MinePageLiveCourseView.m

@@ -194,6 +194,14 @@
         make.left.right.bottom.mas_equalTo(self);
         make.top.mas_equalTo(self.headView.mas_bottom);
     }];
+    
+    // 曲谱 sort
+    if (self.liveFlag == NO) {
+        [self showAuthView];
+    }
+    else {
+        [self hideAuthView];
+    }
 }
 
 - (void)evaluateHeadView {
@@ -410,8 +418,10 @@
     }
     else {
         [self addSubview:self.authView];
+        CGFloat settingHeight = [MineCourseSettingView getViewHeight];
         [self.authView mas_makeConstraints:^(MASConstraintMaker *make) {
-            make.left.top.bottom.right.mas_equalTo(self);
+            make.left.bottom.right.mas_equalTo(self.collectionView);
+            make.top.mas_equalTo(self.collectionView.mas_top).offset(-settingHeight-12);
         }];
     }
 }