Browse Source

推送跳转收到的评价

Steven 4 months ago
parent
commit
d9e86d057b

+ 0 - 98
KulexiuForStudent/KulexiuForStudent.xcodeproj/xcshareddata/xcschemes/KulexiuForStudent.xcscheme

@@ -1,98 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   LastUpgradeVersion = "1610"
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "275E8AA427E18F8800DD3F6E"
-               BuildableName = "KulexiuForStudent.app"
-               BlueprintName = "KulexiuForStudent"
-               ReferencedContainer = "container:KulexiuForStudent.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      buildConfiguration = "Debug"
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      shouldUseLaunchSchemeArgsEnv = "YES">
-      <Testables>
-         <TestableReference
-            skipped = "NO">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "275E8ABF27E18F8C00DD3F6E"
-               BuildableName = "KulexiuForStudentTests.xctest"
-               BlueprintName = "KulexiuForStudentTests"
-               ReferencedContainer = "container:KulexiuForStudent.xcodeproj">
-            </BuildableReference>
-         </TestableReference>
-         <TestableReference
-            skipped = "NO">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "275E8AC927E18F8C00DD3F6E"
-               BuildableName = "KulexiuForStudentUITests.xctest"
-               BlueprintName = "KulexiuForStudentUITests"
-               ReferencedContainer = "container:KulexiuForStudent.xcodeproj">
-            </BuildableReference>
-         </TestableReference>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      buildConfiguration = "TEST"
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      ignoresPersistentStateOnLaunch = "NO"
-      debugDocumentVersioning = "YES"
-      debugServiceExtension = "internal"
-      allowLocationSimulation = "YES">
-      <BuildableProductRunnable
-         runnableDebuggingMode = "0">
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "275E8AA427E18F8800DD3F6E"
-            BuildableName = "KulexiuForStudent.app"
-            BlueprintName = "KulexiuForStudent"
-            ReferencedContainer = "container:KulexiuForStudent.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </LaunchAction>
-   <ProfileAction
-      buildConfiguration = "Debug"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      debugDocumentVersioning = "YES">
-      <BuildableProductRunnable
-         runnableDebuggingMode = "0">
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "275E8AA427E18F8800DD3F6E"
-            BuildableName = "KulexiuForStudent.app"
-            BlueprintName = "KulexiuForStudent"
-            ReferencedContainer = "container:KulexiuForStudent.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "TEST"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 0 - 32
KulexiuForStudent/KulexiuForStudent.xcodeproj/xcuserdata/wangzhi.xcuserdatad/xcschemes/xcschememanagement.plist

@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>SchemeUserState</key>
-	<dict>
-		<key>KulexiuForStudent.xcscheme_^#shared#^_</key>
-		<dict>
-			<key>orderHint</key>
-			<integer>0</integer>
-		</dict>
-	</dict>
-	<key>SuppressBuildableAutocreation</key>
-	<dict>
-		<key>275E8AA427E18F8800DD3F6E</key>
-		<dict>
-			<key>primary</key>
-			<true/>
-		</dict>
-		<key>275E8ABF27E18F8C00DD3F6E</key>
-		<dict>
-			<key>primary</key>
-			<true/>
-		</dict>
-		<key>275E8AC927E18F8C00DD3F6E</key>
-		<dict>
-			<key>primary</key>
-			<true/>
-		</dict>
-	</dict>
-</dict>
-</plist>

+ 0 - 8
KulexiuForStudent/KulexiuForStudent.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>IDEDidComputeMac32BitWarning</key>
-	<true/>
-</dict>
-</plist>

+ 0 - 5
KulexiuForStudent/KulexiuForStudent.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict/>
-</plist>

+ 27 - 0
KulexiuForStudent/KulexiuForStudent/AppDelegate.m

@@ -48,6 +48,8 @@
 #import "VIPCourseGroupViewController.h"
 #import "AccompanyCourseGroupViewController.h"
 #import "MusicRoomGroupViewController.h"
+#import "VipCouseDetailViewController.h"
+#import "AccompanyDetailViewController.h"
 
 @import TXLiteAVSDK_Professional;
 
@@ -904,6 +906,31 @@ didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
             else if ([pageType isEqualToString:@"feedback"]) { //反馈
                 [self toFeedback];
             }
+            else if ([pageType isEqualToString:@"evaluate"]) { // 老师评价
+                NSString *parmString = [dict ks_stringValueForKey:@"params"];
+                NSData *parmData = [parmString mj_JSONData];
+                NSError *error;
+                NSDictionary *parm = [NSJSONSerialization JSONObjectWithData:parmData options:NSJSONReadingMutableContainers error:&error];
+                if (!error) {
+                    NSString *courseType = [parm ks_stringValueForKey:@"courseType"];
+                    NSString *courseId = [parm ks_stringValueForKey:@"courseId"];
+                    NSString *courseGroupId = [parm ks_stringValueForKey:@"courseGroupId"];
+                    if ([courseType isEqualToString:@"VIP"]) {
+                        VipCouseDetailViewController *ctrl = [[VipCouseDetailViewController alloc] init];
+                        ctrl.courseId = courseId;
+                        ctrl.courseGroupId = courseGroupId;
+                        CustomNavViewController *navCtrl = self.tabBarController.selectedViewController;
+                        [navCtrl pushViewController:ctrl animated:YES];
+                    }
+                    else if ([courseType isEqualToString:@"PRACTICE"]) {
+                        AccompanyDetailViewController *ctrl = [[AccompanyDetailViewController alloc] init];
+                        ctrl.courseId = courseId;
+                        ctrl.courseGroupId = courseGroupId;
+                        CustomNavViewController *navCtrl = self.tabBarController.selectedViewController;
+                        [navCtrl pushViewController:ctrl animated:YES];
+                    }
+                }
+            }
             else {  // 统一跳转消息列表
                 UIViewController *vc = [UIApplication sharedApplication].keyWindow.rootViewController;
                 if ([vc isKindOfClass:[UITabBarController class]]) {

+ 26 - 1
KulexiuForStudent/KulexiuForStudent/Module/Home/NoticeCenter/Controller/NotiferMessageViewController.m

@@ -20,6 +20,8 @@
 #import "VIPCourseGroupViewController.h"
 #import "AccompanyCourseGroupViewController.h"
 #import "MusicRoomGroupViewController.h"
+#import "VipCouseDetailViewController.h"
+#import "AccompanyDetailViewController.h"
 
 @interface NotiferMessageViewController ()<UITableViewDelegate, UITableViewDataSource>
 
@@ -313,7 +315,30 @@
                             [self.navigationController pushViewController:ctrl animated:YES];
                         }
                     }
-                }                
+                }
+                else if ([pageType isEqualToString:@"evaluate"]) { // 老师评价
+                    NSString *parmString = [dict ks_stringValueForKey:@"params"];
+                    NSData *parmData = [parmString mj_JSONData];
+                    NSError *error;
+                    NSDictionary *parm = [NSJSONSerialization JSONObjectWithData:parmData options:NSJSONReadingMutableContainers error:&error];
+                    if (!error) {
+                        NSString *courseType = [parm ks_stringValueForKey:@"courseType"];
+                        NSString *courseId = [parm ks_stringValueForKey:@"courseId"];
+                        NSString *courseGroupId = [parm ks_stringValueForKey:@"courseGroupId"];
+                        if ([courseType isEqualToString:@"VIP"]) {
+                            VipCouseDetailViewController *ctrl = [[VipCouseDetailViewController alloc] init];
+                            ctrl.courseId = courseId;
+                            ctrl.courseGroupId = courseGroupId;
+                            [self.navigationController pushViewController:ctrl animated:YES];
+                        }
+                        else if ([courseType isEqualToString:@"PRACTICE"]) {
+                            AccompanyDetailViewController *ctrl = [[AccompanyDetailViewController alloc] init];
+                            ctrl.courseId = courseId;
+                            ctrl.courseGroupId = courseGroupId;
+                            [self.navigationController pushViewController:ctrl animated:YES];
+                        }
+                    }
+                }
             }
             else {
                 NSString *webUrl = [dict ks_stringValueForKey:@"url"];