Steven 3 سال پیش
والد
کامیت
36f68c82be
16فایلهای تغییر یافته به همراه133 افزوده شده و 54 حذف شده
  1. BIN
      KulexiuForTeacher/KulexiuForTeacher.xcworkspace/xcuserdata/wangzhi.xcuserdatad/UserInterfaceState.xcuserstate
  2. 26 26
      KulexiuForTeacher/KulexiuForTeacher.xcworkspace/xcuserdata/wangzhi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
  3. 22 0
      KulexiuForTeacher/KulexiuForTeacher/Assets.xcassets/EmptyStatus/empty_course.imageset/Contents.json
  4. BIN
      KulexiuForTeacher/KulexiuForTeacher/Assets.xcassets/EmptyStatus/empty_course.imageset/empty_course@2x.png
  5. BIN
      KulexiuForTeacher/KulexiuForTeacher/Assets.xcassets/EmptyStatus/empty_course.imageset/empty_course@3x.png
  6. 1 0
      KulexiuForTeacher/KulexiuForTeacher/Module/Course/AccompanyCourse/Controller/AccompanyDetailViewController.m
  7. 6 0
      KulexiuForTeacher/KulexiuForTeacher/Module/Course/Controller/CourseViewController.m
  8. 36 0
      KulexiuForTeacher/KulexiuForTeacher/Module/Home/Controller/HomeViewController.m
  9. 18 5
      KulexiuForTeacher/KulexiuForTeacher/Module/Home/Income/Controller/IncomeCountViewController.m
  10. 1 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Home/Income/View/IncomeCountBottomView.h
  11. 9 9
      KulexiuForTeacher/KulexiuForTeacher/Module/Home/Income/View/IncomeCountBottomView.m
  12. 9 9
      KulexiuForTeacher/KulexiuForTeacher/Module/Home/Income/View/IncomeCountTopView.xib
  13. 1 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Home/MyCourse/View/MyLessonBodyView.m
  14. 1 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Home/MyCourse/View/MyVideoCourseBodyView.m
  15. 2 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Home/NotiferMessage/Controller/NotiferMessageViewController.m
  16. 1 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/View/MinePageCourseView.m

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


+ 26 - 26
KulexiuForTeacher/KulexiuForTeacher.xcworkspace/xcuserdata/wangzhi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -227,80 +227,80 @@
       <BreakpointProxy
          BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
          <BreakpointContent
-            uuid = "CF1A4725-469A-41BB-9C92-27FFFFCDEFFD"
-            shouldBeEnabled = "Yes"
+            uuid = "AF785028-EFA3-45BA-BAE0-3EA9820B3DFB"
+            shouldBeEnabled = "No"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "KulexiuForTeacher/Module/Home/Income/Controller/IncomeCountViewController.m"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "136"
-            endingLineNumber = "136"
-            landmarkName = "-requestData"
+            startingLineNumber = "249"
+            endingLineNumber = "249"
+            landmarkName = "-configMessage:headSource:"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
       <BreakpointProxy
          BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
          <BreakpointContent
-            uuid = "658BE31D-AF13-4821-8CA6-9654A5451024"
-            shouldBeEnabled = "No"
+            uuid = "F0003F49-A484-4565-AE50-C3F3374E00CA"
+            shouldBeEnabled = "Yes"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
-            filePath = "KulexiuForTeacher/Module/Home/Income/Controller/IncomeCountViewController.m"
+            filePath = "KulexiuForTeacher/Common/Base/KSBaseWKWebViewController.m"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "238"
-            endingLineNumber = "238"
-            landmarkName = "-configMessage:headSource:"
+            startingLineNumber = "1079"
+            endingLineNumber = "1079"
+            landmarkName = "-documentPicker:didPickDocumentAtURL:"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
       <BreakpointProxy
          BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
          <BreakpointContent
-            uuid = "AF785028-EFA3-45BA-BAE0-3EA9820B3DFB"
+            uuid = "71FA8FBF-57FD-4D5B-94AE-AB18D5ACCB52"
             shouldBeEnabled = "No"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
-            filePath = "KulexiuForTeacher/Module/Home/Income/Controller/IncomeCountViewController.m"
+            filePath = "KulexiuForTeacher/Common/Base/KSBaseWKWebViewController.m"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "236"
-            endingLineNumber = "236"
-            landmarkName = "-configMessage:headSource:"
+            startingLineNumber = "1049"
+            endingLineNumber = "1049"
+            landmarkName = "-documentPicker:didPickDocumentAtURL:"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
       <BreakpointProxy
          BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
          <BreakpointContent
-            uuid = "F0003F49-A484-4565-AE50-C3F3374E00CA"
+            uuid = "EEE41DB8-78CB-4CD7-804B-9D0C86EEF376"
             shouldBeEnabled = "Yes"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
-            filePath = "KulexiuForTeacher/Common/Base/KSBaseWKWebViewController.m"
+            filePath = "KulexiuForTeacher/Module/Home/Income/Controller/IncomeCountViewController.m"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "1079"
-            endingLineNumber = "1079"
-            landmarkName = "-documentPicker:didPickDocumentAtURL:"
+            startingLineNumber = "293"
+            endingLineNumber = "293"
+            landmarkName = "-configMessage:headSource:"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
       <BreakpointProxy
          BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
          <BreakpointContent
-            uuid = "71FA8FBF-57FD-4D5B-94AE-AB18D5ACCB52"
+            uuid = "B51A7095-7E78-4224-9F20-BFF5B87D9602"
             shouldBeEnabled = "No"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
-            filePath = "KulexiuForTeacher/Common/Base/KSBaseWKWebViewController.m"
+            filePath = "KulexiuForTeacher/Module/Home/Income/Controller/IncomeCountViewController.m"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "1049"
-            endingLineNumber = "1049"
-            landmarkName = "-documentPicker:didPickDocumentAtURL:"
+            startingLineNumber = "336"
+            endingLineNumber = "336"
+            landmarkName = "-configMessage:headSource:"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>

+ 22 - 0
KulexiuForTeacher/KulexiuForTeacher/Assets.xcassets/EmptyStatus/empty_course.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "empty_course@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "empty_course@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
KulexiuForTeacher/KulexiuForTeacher/Assets.xcassets/EmptyStatus/empty_course.imageset/empty_course@2x.png


BIN
KulexiuForTeacher/KulexiuForTeacher/Assets.xcassets/EmptyStatus/empty_course.imageset/empty_course@3x.png


+ 1 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/Course/AccompanyCourse/Controller/AccompanyDetailViewController.m

@@ -64,6 +64,7 @@
     [self requestRoomConfig];
 }
 
+
 - (void)requestRoomConfig {
     [KSNetworkingManager selectRoomConfigRequest:KS_GET success:^(NSDictionary * _Nonnull dic) {
         if ([dic integerValueForKey:@"code"] == 200 && [dic boolValueForKey:@"status"]) {

+ 6 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/Course/Controller/CourseViewController.m

@@ -87,6 +87,10 @@
     }
 }
 
+- (void)configEmptyView {
+    [self setPromptString:@"暂无课程~" imageName:@"empty_course" inView:self.tableView];
+}
+
 - (void)configUI {
     [self.view addSubview:self.navHeadView];
     [self.navHeadView mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -159,6 +163,7 @@
         // Fallback on earlier versions
         self.automaticallyAdjustsScrollViewInsets = NO;
     }
+    [self configEmptyView];
 }
 
 - (void)endRefresh {
@@ -329,6 +334,7 @@
             [self MBPShow:MESSAGEKEY];
         }
         [self.tableView reloadData];
+        [self changePromptLabelState];
     } faliure:^(NSError * _Nonnull error) {
         [self removehub];
     }];

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

@@ -245,8 +245,43 @@
     [self requestCountMessage];
     [self requestNotice];
     [self requestRecentCourse];
+    [self requestUnreadCount];
 }
 
+- (void)requestUnreadCount {
+    [KSNetworkingManager queryCountOfUnreadRequest:KS_GET success:^(NSDictionary * _Nonnull dic) {
+        if ([dic integerValueForKey:@"code"] == 200 && [dic boolValueForKey:@"status"]) {
+            NSArray *countArray = [dic arrayValueForKey:@"data"];
+            NSInteger courseCount = 0;
+            NSInteger sysCount = 0;
+            NSInteger noticeCount = 0;
+            for (NSDictionary *parm in countArray) {
+                if ([[parm stringValueForKey:@"key"] isEqualToString:@"COURSE"]) {
+                    courseCount = [parm integerValueForKey:@"value"];
+                }
+                if ([[parm stringValueForKey:@"key"] isEqualToString:@"SYSTEM"]) {
+                    sysCount = [parm integerValueForKey:@"value"];
+                }
+                if ([[parm stringValueForKey:@"key"] isEqualToString:@"NOTICE"]) {
+                    noticeCount = [parm integerValueForKey:@"value"];
+                }
+            }
+            if (courseCount != 0 || sysCount != 0 || noticeCount != 0) {
+                self.navView.dotView.hidden = NO;
+            }
+            else {
+                self.navView.dotView.hidden = YES;
+            }
+        }
+        else {
+            [self MBPShow:MESSAGEKEY];
+        }
+    } faliure:^(NSError * _Nonnull error) {
+        
+    }];
+}
+
+
 #pragma mark ----- SDCycleScrollViewDelegate
 - (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index {
     NoticeSourceModel *bannerModel = self.bannerArray[index];
@@ -255,6 +290,7 @@
     [self.navigationController pushViewController:webCtrl animated:YES];
     
 }
+
 #pragma mark ----- lazying
 
 - (HomeNavView *)navView {

+ 18 - 5
KulexiuForTeacher/KulexiuForTeacher/Module/Home/Income/Controller/IncomeCountViewController.m

@@ -164,28 +164,41 @@
     // 顶部数据
     NSMutableArray *descArray = [NSMutableArray array];
     NSMutableArray *amountArray = [NSMutableArray array];
+    NSMutableArray *rateArray = [NSMutableArray array];
     float practiceAmount = [parmDic floatValueForKey:@"practiceAmount"];
     NSString *practiceDescString = @"陪练课";
     [descArray addObject:practiceDescString];
-    [amountArray addObject:@(practiceAmount)];
+    [amountArray addObject:[NSString stringWithFormat:@"%.2f",practiceAmount]];
     
     float liveAmount = [parmDic floatValueForKey:@"liveAmount"];
     NSString *liveDesc = @"直播课";
     [descArray addObject:liveDesc];
-    [amountArray addObject:@(liveAmount)];
+    [amountArray addObject:[NSString stringWithFormat:@"%.2f",liveAmount]];
     
     float videoAmount = [parmDic floatValueForKey:@"videoAmount"];
     NSString *videoDesc = @"视频课";
     [descArray addObject:videoDesc];
-    [amountArray addObject:@(videoAmount)];
+    [amountArray addObject:[NSString stringWithFormat:@"%.2f",videoAmount]];
     
     float musicAmount = [parmDic floatValueForKey:@"musicAmount"];
     NSString *musicDesc = @"乐谱";
     [descArray addObject:musicDesc];
-    [amountArray addObject:@(musicAmount)];
+    [amountArray addObject:[NSString stringWithFormat:@"%.2f",musicAmount]];
     
     [self.topView configSource:descArray amountArray:amountArray];
     
+    float practiceRate = [parmDic floatValueForKey:@"practiceRate"];
+    [rateArray addObject:[NSString stringWithFormat:@"%.2f",practiceRate]];
+    
+    float liveRate = [parmDic floatValueForKey:@"liveRate"];
+    [rateArray addObject:[NSString stringWithFormat:@"%.2f",liveRate]];
+    
+    float videoRate = [parmDic floatValueForKey:@"videoRate"];
+    [rateArray addObject:[NSString stringWithFormat:@"%.2f",videoRate]];
+    
+    float musicRate = [parmDic floatValueForKey:@"practiceRate"];
+    [rateArray addObject:[NSString stringWithFormat:@"%.2f",musicRate]];
+    
     NSArray *colorArray = @[@"#5B8FF9",
                             @"#2DC7AA",
                             @"#91DD1C",
@@ -331,7 +344,7 @@
                              @"data" :dataArray}]
                   forKey:@"series"];
     [self postMessage:secondParm inWebView:self.bottomWebView];
-    [self.roundView configSource:descArray amountArray:amountArray totalAmount:self.totalAmount];
+    [self.roundView configSource:descArray amountArray:rateArray];
 }
 
 - (void)postMessage:(NSDictionary *)parm inWebView:(WKWebView *)webView {

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Home/Income/View/IncomeCountBottomView.h

@@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
 
 + (instancetype)shareInstance;
 
-- (void)configSource:(NSArray *)titleArray amountArray:(NSArray *)amountArray totalAmount:(CGFloat)totalAmount;
+- (void)configSource:(NSArray *)titleArray amountArray:(NSArray *)amountArray;
 
 @end
 

+ 9 - 9
KulexiuForTeacher/KulexiuForTeacher/Module/Home/Income/View/IncomeCountBottomView.m

@@ -35,7 +35,7 @@
     return view;
 }
 
-- (void)configSource:(NSArray *)titleArray amountArray:(NSArray *)amountArray totalAmount:(CGFloat)totalAmount {
+- (void)configSource:(NSArray *)titleArray amountArray:(NSArray *)amountArray {
     if (titleArray.count >= 4) {
         self.firstView.hidden = NO;
         self.secondView.hidden = NO;
@@ -68,24 +68,24 @@
     }
     for (int i = 0; i < titleArray.count; i++) {
         if (i == 0) {
-            CGFloat rate = totalAmount == 0 ? 0 : [amountArray[0] doubleValue] / totalAmount * 100;
+            NSString *rate = amountArray[0];
             self.firstTitle.text = [NSString stringWithFormat:@"%@", titleArray[0]];
-            self.firstSalary.text = [NSString stringWithFormat:@"|  %.0f%%",rate];
+            self.firstSalary.text = [NSString stringWithFormat:@"|  %@%%",rate];
         }
         else if (i == 1) {
-            CGFloat rate = totalAmount == 0 ? 0 : [amountArray[1] doubleValue] / totalAmount * 100;
+            NSString *rate = amountArray[1];
             self.secondTitle.text = [NSString stringWithFormat:@"%@", titleArray[1]];
-            self.secondSalary.text = [NSString stringWithFormat:@"|  %.0f%%",rate];
+            self.secondSalary.text = [NSString stringWithFormat:@"|  %@%%",rate];
         }
         else if (i == 2) {
-            CGFloat rate = totalAmount == 0 ? 0 : [amountArray[2] doubleValue] / totalAmount * 100;
+            NSString *rate = amountArray[2];
             self.thirdTitle.text = [NSString stringWithFormat:@"%@", titleArray[2]];
-            self.thirdSalary.text = [NSString stringWithFormat:@"|  %.0f%%",rate];
+            self.thirdSalary.text = [NSString stringWithFormat:@"|  %@%%",rate];
         }
         else if (i == 3) {
-            CGFloat rate = totalAmount == 0 ? 0 : [amountArray[3] doubleValue] / totalAmount * 100;
+            NSString *rate = amountArray[3];
             self.fourViewTitle.text = [NSString stringWithFormat:@"%@", titleArray[3]];
-            self.fourSalary.text = [NSString stringWithFormat:@"|  %.0f%%",rate];
+            self.fourSalary.text = [NSString stringWithFormat:@"|  %@%%",rate];
         }
     }
 }

+ 9 - 9
KulexiuForTeacher/KulexiuForTeacher/Module/Home/Income/View/IncomeCountTopView.xib

@@ -43,7 +43,7 @@
                             </constraints>
                         </view>
                         <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="UmP-RR-Inh">
-                            <rect key="frame" x="12" y="93" width="90" height="87"/>
+                            <rect key="frame" x="12" y="93" width="91.5" height="87"/>
                             <subviews>
                                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GgP-t5-aKS">
                                     <rect key="frame" x="0.0" y="22.5" width="2" height="42"/>
@@ -71,7 +71,7 @@
                                     <nil key="highlightedColor"/>
                                 </label>
                                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nVs-pX-zDR">
-                                    <rect key="frame" x="82" y="22.5" width="1" height="42"/>
+                                    <rect key="frame" x="83.5" y="22.5" width="1" height="42"/>
                                     <color key="backgroundColor" red="0.94117647058823528" green="0.94117647058823528" blue="0.94117647058823528" alpha="1" colorSpace="calibratedRGB"/>
                                     <constraints>
                                         <constraint firstAttribute="height" constant="42" id="0BF-0B-lUU"/>
@@ -92,7 +92,7 @@
                             </constraints>
                         </view>
                         <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="LUg-Pa-arv">
-                            <rect key="frame" x="102" y="93" width="89.5" height="87"/>
+                            <rect key="frame" x="103.5" y="93" width="91.5" height="87"/>
                             <subviews>
                                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7k0-1w-6hI">
                                     <rect key="frame" x="8" y="22.5" width="0.0" height="0.0"/>
@@ -120,7 +120,7 @@
                                     </userDefinedRuntimeAttributes>
                                 </view>
                                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8XV-Ny-tzS">
-                                    <rect key="frame" x="88.5" y="22.5" width="1" height="42"/>
+                                    <rect key="frame" x="90.5" y="22.5" width="1" height="42"/>
                                     <color key="backgroundColor" red="0.94117647059999998" green="0.94117647059999998" blue="0.94117647059999998" alpha="1" colorSpace="calibratedRGB"/>
                                     <constraints>
                                         <constraint firstAttribute="height" constant="42" id="YbB-CW-69O"/>
@@ -141,7 +141,7 @@
                             </constraints>
                         </view>
                         <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BRE-yt-shx">
-                            <rect key="frame" x="191.5" y="93" width="90" height="87"/>
+                            <rect key="frame" x="195" y="93" width="91.5" height="87"/>
                             <subviews>
                                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ayc-HX-TC5">
                                     <rect key="frame" x="7" y="22.5" width="2" height="42"/>
@@ -169,7 +169,7 @@
                                     <nil key="highlightedColor"/>
                                 </label>
                                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="lh1-i0-ujz">
-                                    <rect key="frame" x="82" y="22.5" width="1" height="42"/>
+                                    <rect key="frame" x="90.5" y="22.5" width="1" height="42"/>
                                     <color key="backgroundColor" red="0.94117647059999998" green="0.94117647059999998" blue="0.94117647059999998" alpha="1" colorSpace="calibratedRGB"/>
                                     <constraints>
                                         <constraint firstAttribute="width" constant="1" id="fUr-zR-JEB"/>
@@ -182,7 +182,7 @@
                                 <constraint firstItem="lh1-i0-ujz" firstAttribute="centerY" secondItem="BRE-yt-shx" secondAttribute="centerY" id="9H8-bz-SDY"/>
                                 <constraint firstItem="uR6-Ku-io5" firstAttribute="top" secondItem="Ayc-HX-TC5" secondAttribute="top" id="JFV-Kd-UEL"/>
                                 <constraint firstItem="MMc-mK-pXO" firstAttribute="bottom" secondItem="Ayc-HX-TC5" secondAttribute="bottom" id="bid-LC-3MT"/>
-                                <constraint firstAttribute="trailing" secondItem="lh1-i0-ujz" secondAttribute="trailing" constant="7" id="bpL-ka-D5W"/>
+                                <constraint firstAttribute="trailing" secondItem="lh1-i0-ujz" secondAttribute="trailing" id="bpL-ka-D5W"/>
                                 <constraint firstItem="MMc-mK-pXO" firstAttribute="leading" secondItem="uR6-Ku-io5" secondAttribute="leading" id="fLQ-Ja-yc5"/>
                                 <constraint firstItem="Ayc-HX-TC5" firstAttribute="centerY" secondItem="BRE-yt-shx" secondAttribute="centerY" id="oVr-s2-z6r"/>
                                 <constraint firstItem="uR6-Ku-io5" firstAttribute="leading" secondItem="Ayc-HX-TC5" secondAttribute="trailing" constant="6" id="uLu-CE-cpS"/>
@@ -215,7 +215,7 @@
                             </connections>
                         </button>
                         <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7UE-PM-MFf">
-                            <rect key="frame" x="288.5" y="93" width="89.5" height="87"/>
+                            <rect key="frame" x="286.5" y="93" width="91.5" height="87"/>
                             <subviews>
                                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="B43-IV-aRW">
                                     <rect key="frame" x="7" y="22.5" width="2" height="42"/>
@@ -278,7 +278,7 @@
                         <constraint firstItem="LUg-Pa-arv" firstAttribute="bottom" secondItem="UmP-RR-Inh" secondAttribute="bottom" id="alq-BZ-eOS"/>
                         <constraint firstItem="BRE-yt-shx" firstAttribute="height" secondItem="UmP-RR-Inh" secondAttribute="height" id="bSD-3r-81I"/>
                         <constraint firstItem="UmP-RR-Inh" firstAttribute="leading" secondItem="swP-Ge-Ub2" secondAttribute="leading" constant="12" id="c8w-aK-CqY"/>
-                        <constraint firstItem="7UE-PM-MFf" firstAttribute="leading" secondItem="BRE-yt-shx" secondAttribute="trailing" constant="7" id="cZA-5N-t4R"/>
+                        <constraint firstItem="7UE-PM-MFf" firstAttribute="leading" secondItem="BRE-yt-shx" secondAttribute="trailing" id="cZA-5N-t4R"/>
                         <constraint firstAttribute="trailing" secondItem="PDC-MZ-2mJ" secondAttribute="trailing" constant="10" id="cvY-a7-Xop"/>
                         <constraint firstItem="LUg-Pa-arv" firstAttribute="height" secondItem="UmP-RR-Inh" secondAttribute="height" id="d4f-P7-jav"/>
                         <constraint firstItem="3ll-L4-iNd" firstAttribute="centerY" secondItem="cEz-D3-A6K" secondAttribute="centerY" id="mh6-70-duE"/>

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Home/MyCourse/View/MyLessonBodyView.m

@@ -123,7 +123,7 @@
     
     self.dataArray = [NSMutableArray array];
     [self.tableView.mj_footer resetNoMoreData];
-    [self setPromptString:@"暂无课程" imageName:@"wd_img_zwsj" inView:self.tableView];
+    [self setPromptString:@"暂无课程~" imageName:@"empty_course" inView:self.tableView];
     [self.tableView reloadData];
 }
 

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Home/MyCourse/View/MyVideoCourseBodyView.m

@@ -95,7 +95,7 @@
     self.audioStatus = @"PASS";
     self.dataArray = [NSMutableArray array];
     [self.collectionView.mj_footer resetNoMoreData];
-    [self setPromptString:@"暂无内容" imageName:@"wd_img_zwsj" inView:self.collectionView];
+    [self setPromptString:@"暂无课程~" imageName:@"empty_course" inView:self.collectionView];
     [self.collectionView reloadData];
 }
 

+ 2 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Home/NotiferMessage/Controller/NotiferMessageViewController.m

@@ -103,6 +103,7 @@
 - (void)resetSourceAndRequest {
     [self resetParamenter];
     [self requestData];
+    [self queryUnReadCount];
 }
 
 - (void)queryUnReadCount {
@@ -124,7 +125,7 @@
                 }
             }
             
-            [self.headView configUnreadCountCourse:0 sysMessage:0 noticeCount:0];
+            [self.headView configUnreadCountCourse:courseCount sysMessage:sysCount noticeCount:noticeCount];
         }
         else {
             [self MBPShow:MESSAGEKEY];

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/View/MinePageCourseView.m

@@ -105,7 +105,7 @@
     
     self.dataArray = [NSMutableArray array];
     [self.tableView.mj_footer resetNoMoreData];
-    [self setPromptString:@"暂无内容" imageName:@"wd_img_zwsj" inView:self.tableView];
+    [self setPromptString:@"暂无课程~" imageName:@"empty_course" inView:self.tableView];
     [self.tableView reloadData];
 }