Browse Source

时间筛选

Steven 3 years ago
parent
commit
728cd7d6de

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


+ 4 - 15
KulexiuForTeacher/KulexiuForTeacher/Module/Home/MyCourse/View/MyLessonBodyView.m

@@ -217,6 +217,10 @@
         [_sortView sortAction:^(SORT_TYPE type) {
             [weakSelf sortWithType:type];
         }];
+        NSDateFormatter *dateFormatter = [NSObject getDateformatter];
+        [dateFormatter setDateFormat:@"yyyy年MM月"];
+        NSDate *currentDate = [NSDate date];
+        [self.sortView.firstButton setTitle:[dateFormatter stringFromDate:currentDate] forState:UIControlStateNormal];
         [self addSubview:self.sortView];
     }
     if (self.teaherAuth == NO) {
@@ -258,7 +262,6 @@
 }
 
 - (void)sortWithChooseIndex:(NSInteger)chooseIndex item:(NSInteger)item title:(NSString *)title {
-    [self resetSortViewWithTag:item];
     if (item == 0) { //
     }
     else if (item == 1) { // 课程状态
@@ -308,20 +311,6 @@
     [self requestData];
 }
 
-- (void)resetSortViewWithTag:(NSInteger)item  {
-    if (item == 0) {
-        [self.sortView.secondButton setTitle:@"上课方式" forState:UIControlStateNormal];
-        [self.sortView.thirdButton setTitle:@"到课情况" forState:UIControlStateNormal];
-    }
-    else if (item == 1) {
-        [self.sortView.firstButton setTitle:@"课程类型" forState:UIControlStateNormal];
-        [self.sortView.thirdButton setTitle:@"到课情况" forState:UIControlStateNormal];
-    }
-    else {
-        [self.sortView.firstButton setTitle:@"课程类型" forState:UIControlStateNormal];
-        [self.sortView.secondButton setTitle:@"上课方式" forState:UIControlStateNormal];
-    }
-}
 
 - (void)hiddenPopView {
     self.sortView.firstArrowUp = NO;

+ 3 - 3
KulexiuForTeacher/KulexiuForTeacher/Module/Home/MyCourse/View/MyLessonSearchView.xib

@@ -20,7 +20,7 @@
                             <rect key="frame" x="0.0" y="0.0" width="131.5" height="88"/>
                             <subviews>
                                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="sort_down" translatesAutoresizingMaskIntoConstraints="NO" id="vSU-NS-Qou">
-                                    <rect key="frame" x="103.5" y="41" width="8" height="6"/>
+                                    <rect key="frame" x="108.5" y="41" width="8" height="6"/>
                                     <constraints>
                                         <constraint firstAttribute="height" constant="6" id="L0G-Nt-hlU"/>
                                         <constraint firstAttribute="width" constant="8" id="nhm-Fv-ewC"/>
@@ -29,7 +29,7 @@
                                 <button opaque="NO" tag="1001" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CSP-VE-Q55">
                                     <rect key="frame" x="0.0" y="0.0" width="131.5" height="88"/>
                                     <fontDescription key="fontDescription" type="system" pointSize="14"/>
-                                    <state key="normal" title="2022年9月">
+                                    <state key="normal" title="2022年09月">
                                         <color key="titleColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
                                     </state>
                                     <connections>
@@ -41,7 +41,7 @@
                             <constraints>
                                 <constraint firstAttribute="trailing" secondItem="CSP-VE-Q55" secondAttribute="trailing" id="0bd-hm-rCy"/>
                                 <constraint firstAttribute="bottom" secondItem="CSP-VE-Q55" secondAttribute="bottom" id="5ye-zJ-qJd"/>
-                                <constraint firstAttribute="trailing" secondItem="vSU-NS-Qou" secondAttribute="trailing" constant="20" id="g2D-zv-qIp"/>
+                                <constraint firstAttribute="trailing" secondItem="vSU-NS-Qou" secondAttribute="trailing" constant="15" id="g2D-zv-qIp"/>
                                 <constraint firstItem="CSP-VE-Q55" firstAttribute="top" secondItem="sav-8B-TD3" secondAttribute="top" id="lqg-EV-zPD"/>
                                 <constraint firstItem="vSU-NS-Qou" firstAttribute="centerY" secondItem="sav-8B-TD3" secondAttribute="centerY" id="vSN-3Z-GaR"/>
                                 <constraint firstItem="CSP-VE-Q55" firstAttribute="leading" secondItem="sav-8B-TD3" secondAttribute="leading" id="zIY-Ko-K7m"/>

BIN
KulexiuForTeacher/build/Debug-iphonesimulator/KulexiuForTeacher.app/KulexiuForTeacher


+ 2 - 2
KulexiuForTeacher/build/Debug-iphonesimulator/KulexiuForTeacher.app/_CodeSignature/CodeResources

@@ -582,7 +582,7 @@
 		</data>
 		<key>MyLessonSearchView.nib</key>
 		<data>
-		2wz7n5ahsPFMFHJUBf5UnoCHxF8=
+		VQiWSHrZzIUxj7pAp6FJ1LLjQbQ=
 		</data>
 		<key>MyLiveCourseCell.nib</key>
 		<data>
@@ -4588,7 +4588,7 @@
 		<dict>
 			<key>hash2</key>
 			<data>
-			5G2rbWnIhgR5EmXL+8ecpHk5yVGzj4LMrLOvH8AWe1o=
+			QOoWHMO5BkNY+aZA0keTXbVQO/Pfb2P0ebGJV3FHkOQ=
 			</data>
 		</dict>
 		<key>MyLiveCourseCell.nib</key>

BIN
KulexiuForTeacher/build/XCBuildData/build.db