Browse Source

首页不显示时长

Steven 2 years ago
parent
commit
a7df1e1c72

BIN
KulexiuForStudent/KulexiuForStudent.xcworkspace/xcuserdata/wangzhi.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 1
KulexiuForStudent/KulexiuForStudent/AppDelegate.m

@@ -89,7 +89,7 @@
     // Override point for customization after application launch.
     [self networkEnableCheck];
     [self registerSDK];
-    [Bugly startWithAppId:@"9c0fc0b6b7"];
+    [Bugly startWithAppId:@"adfcb3bc3d"];
     
     if (@available(iOS 13.0, *)) {
         [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDarkContent;

+ 1 - 6
KulexiuForStudent/KulexiuForStudent/Module/Chat/Controller/KSChatConversationViewController.m

@@ -87,11 +87,6 @@
                               title:@"文件"
                             atIndex:3
                                 tag:PLUGIN_BOARD_ITEM_FILE_TAG];
-        
-        
-        
-        UIImage *homeworkEnter = [UIImage imageNamed:@"share_music"];
-//        [pluginBoardView insertItem:homeworkEnter highlightedImage:homeworkEnter title:@"曲谱" atIndex:4 tag:SHARE_MUSIC_TAG];
     }
     
     // 注册自定义消息
@@ -101,7 +96,7 @@
     [self leftRightButton];
     [self refreshUserInfoOrGroupInfo];
     self.isFirstLoad = YES;
-    [self.chatSessionInputBarControl.pluginBoardView removeItemAtIndex:2];
+//    [self.chatSessionInputBarControl.pluginBoardView removeItemAtIndex:2];
 }
 
 - (void)viewWillAppear:(BOOL)animated {

+ 11 - 11
KulexiuForStudent/KulexiuForStudent/Module/Course/Controller/CourseViewController.m

@@ -173,15 +173,16 @@
 }
 
 - (void)configEmptyView {
-    MJWeakSelf;
-    self.actionStatusView = [self setActionPromptString:@"暂无预约课程" buttonTitlle:@"发现课程" imageName:@"no_course" inView:self.tableView actionBlock:^{
-        [weakSelf findCourse];
-    }];
-    [self.actionStatusView mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.right.mas_equalTo(self.view);
-        make.top.mas_equalTo(self.calendarBottom.mas_bottom);
-        make.bottom.mas_equalTo(self.view);
-    }];
+    [self setPromptString:@"暂无课程~" imageName:@"empty_course" inView:self.tableView];
+//    MJWeakSelf;
+//    self.actionStatusView = [self setActionPromptString:@"暂无预约课程" buttonTitlle:@"发现课程" imageName:@"no_course" inView:self.tableView actionBlock:^{
+//        [weakSelf findCourse];
+//    }];
+//    [self.actionStatusView mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.right.mas_equalTo(self.view);
+//        make.top.mas_equalTo(self.calendarBottom.mas_bottom);
+//        make.bottom.mas_equalTo(self.view);
+//    }];
 }
 
 - (void)findCourse {
@@ -360,7 +361,7 @@
             [self MBPShow:MESSAGEKEY];
         }
         [self.tableView reloadData];
-        [self changeActionPromptLabelState];
+        [self changePromptLabelState];
     } faliure:^(NSError * _Nonnull error) {
         [self removehub];
     }];
@@ -595,7 +596,6 @@
         _tableView.backgroundColor = [UIColor clearColor];
         _tableView.showsVerticalScrollIndicator = NO;
         _tableView.showsHorizontalScrollIndicator = NO;
-//        _tableView.rowHeight = UITableViewAutomaticDimension;
         _tableView.rowHeight = 127.0f;
         [_tableView registerNib:[UINib nibWithNibName:@"AccompanyCourseCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"AccompanyCourseCell"];
         [_tableView registerNib:[UINib nibWithNibName:@"CourseForLiveCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"CourseForLiveCell"];

+ 4 - 1
KulexiuForStudent/KulexiuForStudent/Module/Home/View/TeacherShowCell.m

@@ -31,6 +31,7 @@
 
 @property (weak, nonatomic) IBOutlet UIView *liveingView;
 
+@property (weak, nonatomic) IBOutlet UIView *durationView;
 
 
 @end
@@ -41,6 +42,8 @@
     [super awakeFromNib];
     // Initialization code
     [self.playButton setEnlargeEdgeWithTop:10 right:5 bottom:10 left:10];
+    self.durationView.hidden = YES;
+    self.playButton.userInteractionEnabled = NO;
 }
 
 - (void)configWithStyleModel:(TeacherStyleModel *)sourceModel callback:(TeacherStylePlay)callback {
@@ -53,7 +56,7 @@
     [self.teacherAvatar sd_setImageWithURL:[NSURL URLWithString:[sourceModel.avatar getUrlEndcodeString]] placeholderImage:[UIImage imageNamed:USERDEFAULT_LOGO]];
     self.teacherNameLabel.text = [NSString returnNoNullStringWithString:sourceModel.username];
     self.watchCount.text = [NSString stringWithFormat:@"%@人观看",sourceModel.browse];
-    [KSVideoHelper getVideoDuration:sourceModel.videoUrl displayInLabel:self.durationLabel];
+//    [KSVideoHelper getVideoDuration:sourceModel.videoUrl displayInLabel:self.durationLabel];
     
     if (sourceModel.liveing) {
         self.liveingView.hidden = NO;

+ 1 - 0
KulexiuForStudent/KulexiuForStudent/Module/Home/View/TeacherShowCell.xib

@@ -171,6 +171,7 @@
             <size key="customSize" width="188" height="167"/>
             <connections>
                 <outlet property="durationLabel" destination="ueX-N8-LMM" id="Xuo-oM-2BR"/>
+                <outlet property="durationView" destination="hhc-kx-51J" id="ebf-bf-Fm9"/>
                 <outlet property="liveingView" destination="sep-lG-ycl" id="hhD-hF-abo"/>
                 <outlet property="playButton" destination="KQK-OM-u6P" id="243-5b-pYg"/>
                 <outlet property="teacherAvatar" destination="9jq-kZ-bi9" id="LVa-r3-Ogc"/>

+ 2 - 2
KulexiuForStudent/KulexiuForStudent/Module/Mine/Scan/Controller/KSScanViewController.m

@@ -94,7 +94,7 @@
 
 - (void)dealWithCheckSource:(NSString *)result {
     if (result) {
-        if ([result containsString:@"http://"] || [result containsString:@"https://"]) {
+        if ([result containsString:hostURL]) {
             KSBaseWKWebViewController *webCtrl = [[KSBaseWKWebViewController alloc] init];
             webCtrl.url = result;
             [self.navigationController pushViewController:webCtrl animated:YES];
@@ -107,7 +107,7 @@
 
 - (void)backPreView {
     MJWeakSelf;
-    [self KSShowMsg:@"无法识别" promptCompletion:^{
+    [self KSShowMsg:@"请扫描酷乐秀二维码" promptCompletion:^{
         [weakSelf.navigationController popViewControllerAnimated:YES];
     }];
 }

+ 3 - 0
README.md

@@ -0,0 +1,3 @@
+#  Bugly 执行
+
+java -jar buglyqq-upload-symbol.jar -appid adfcb3bc3d -appkey efbf9aa7-d32c-4f6a-ad92-7275a0485897 -bundleid com.Colexiu.KulexiuForStudent -version 1.0.0 -platform IOS -inputSymbol /Users/wangzhi/Desktop/管乐迷教师端.app.dSYM