This commit is contained in:
DDIsFriend
2023-09-01 11:35:47 +08:00
parent efb4113402
commit 24ca30ea90
15 changed files with 311 additions and 191 deletions

View File

@@ -48,11 +48,11 @@
79CECC242A8B16D400B95D8B /* VehicleMonitoringListController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79CECC232A8B16D400B95D8B /* VehicleMonitoringListController.swift */; }; 79CECC242A8B16D400B95D8B /* VehicleMonitoringListController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79CECC232A8B16D400B95D8B /* VehicleMonitoringListController.swift */; };
79CECC262A8C749B00B95D8B /* VehicleMonitorVideoController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79CECC252A8C749B00B95D8B /* VehicleMonitorVideoController.swift */; }; 79CECC262A8C749B00B95D8B /* VehicleMonitorVideoController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79CECC252A8C749B00B95D8B /* VehicleMonitorVideoController.swift */; };
79CECC282A8CADEA00B95D8B /* VehicleMonitoringVideoDetailController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79CECC272A8CADEA00B95D8B /* VehicleMonitoringVideoDetailController.swift */; }; 79CECC282A8CADEA00B95D8B /* VehicleMonitoringVideoDetailController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79CECC272A8CADEA00B95D8B /* VehicleMonitoringVideoDetailController.swift */; };
79DD0DA82A9480D000768FE7 /* NotificationAuthView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD0DA72A9480D000768FE7 /* NotificationAuthView.swift */; };
79DD0DAA2A9481BC00768FE7 /* NotificationAuthTool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD0DA92A9481BC00768FE7 /* NotificationAuthTool.swift */; }; 79DD0DAA2A9481BC00768FE7 /* NotificationAuthTool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD0DA92A9481BC00768FE7 /* NotificationAuthTool.swift */; };
79DD0DB12A94B3DB00768FE7 /* EmptyView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD0DB02A94B3DB00768FE7 /* EmptyView.swift */; }; 79DD0DB12A94B3DB00768FE7 /* EmptyView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD0DB02A94B3DB00768FE7 /* EmptyView.swift */; };
79DD0DB42A95F00B00768FE7 /* Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD0DB32A95F00B00768FE7 /* Extension.swift */; }; 79DD0DB42A95F00B00768FE7 /* Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD0DB32A95F00B00768FE7 /* Extension.swift */; };
79DD0DBB2A971EB300768FE7 /* ZDViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD0DBA2A971EB300768FE7 /* ZDViewController.swift */; }; 79DD0DBB2A971EB300768FE7 /* ZDViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DD0DBA2A971EB300768FE7 /* ZDViewController.swift */; };
79E434252AA1919400AEB16C /* CommonAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79E434242AA1919400AEB16C /* CommonAlertView.swift */; };
79EAD8142A7B86610036E093 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 79EAD8132A7B86610036E093 /* Assets.xcassets */; }; 79EAD8142A7B86610036E093 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 79EAD8132A7B86610036E093 /* Assets.xcassets */; };
79EAD8172A7B86610036E093 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 79EAD8152A7B86610036E093 /* LaunchScreen.storyboard */; }; 79EAD8172A7B86610036E093 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 79EAD8152A7B86610036E093 /* LaunchScreen.storyboard */; };
79FB75EC2A988EC000DB00A4 /* MessageCenterTool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79FB75EB2A988EC000DB00A4 /* MessageCenterTool.swift */; }; 79FB75EC2A988EC000DB00A4 /* MessageCenterTool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79FB75EB2A988EC000DB00A4 /* MessageCenterTool.swift */; };
@@ -160,11 +160,11 @@
79DD0DA12A94501500768FE7 /* OrderScheduling-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "OrderScheduling-Bridging-Header.h"; sourceTree = "<group>"; }; 79DD0DA12A94501500768FE7 /* OrderScheduling-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "OrderScheduling-Bridging-Header.h"; sourceTree = "<group>"; };
79DD0DA52A945D9E00768FE7 /* OrderSchedulingRelease.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = OrderSchedulingRelease.entitlements; sourceTree = "<group>"; }; 79DD0DA52A945D9E00768FE7 /* OrderSchedulingRelease.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = OrderSchedulingRelease.entitlements; sourceTree = "<group>"; };
79DD0DA62A946B2500768FE7 /* OrderSchedulingDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = OrderSchedulingDebug.entitlements; sourceTree = "<group>"; }; 79DD0DA62A946B2500768FE7 /* OrderSchedulingDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = OrderSchedulingDebug.entitlements; sourceTree = "<group>"; };
79DD0DA72A9480D000768FE7 /* NotificationAuthView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationAuthView.swift; sourceTree = "<group>"; };
79DD0DA92A9481BC00768FE7 /* NotificationAuthTool.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationAuthTool.swift; sourceTree = "<group>"; }; 79DD0DA92A9481BC00768FE7 /* NotificationAuthTool.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationAuthTool.swift; sourceTree = "<group>"; };
79DD0DB02A94B3DB00768FE7 /* EmptyView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyView.swift; sourceTree = "<group>"; }; 79DD0DB02A94B3DB00768FE7 /* EmptyView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyView.swift; sourceTree = "<group>"; };
79DD0DB32A95F00B00768FE7 /* Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Extension.swift; sourceTree = "<group>"; }; 79DD0DB32A95F00B00768FE7 /* Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Extension.swift; sourceTree = "<group>"; };
79DD0DBA2A971EB300768FE7 /* ZDViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZDViewController.swift; sourceTree = "<group>"; }; 79DD0DBA2A971EB300768FE7 /* ZDViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZDViewController.swift; sourceTree = "<group>"; };
79E434242AA1919400AEB16C /* CommonAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommonAlertView.swift; sourceTree = "<group>"; };
79EAD8072A7B86600036E093 /* OrderScheduling.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OrderScheduling.app; sourceTree = BUILT_PRODUCTS_DIR; }; 79EAD8072A7B86600036E093 /* OrderScheduling.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OrderScheduling.app; sourceTree = BUILT_PRODUCTS_DIR; };
79EAD8132A7B86610036E093 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; 79EAD8132A7B86610036E093 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
79EAD8162A7B86610036E093 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; 79EAD8162A7B86610036E093 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
@@ -486,9 +486,9 @@
794FBB182A8F4AF000D57BB8 /* MessageCount.swift */, 794FBB182A8F4AF000D57BB8 /* MessageCount.swift */,
794FBB202A934E0A00D57BB8 /* AppUpdateView.swift */, 794FBB202A934E0A00D57BB8 /* AppUpdateView.swift */,
794FBB222A93519800D57BB8 /* AppUpdateTool.swift */, 794FBB222A93519800D57BB8 /* AppUpdateTool.swift */,
79DD0DA72A9480D000768FE7 /* NotificationAuthView.swift */,
79DD0DA92A9481BC00768FE7 /* NotificationAuthTool.swift */, 79DD0DA92A9481BC00768FE7 /* NotificationAuthTool.swift */,
79DD0DB02A94B3DB00768FE7 /* EmptyView.swift */, 79DD0DB02A94B3DB00768FE7 /* EmptyView.swift */,
79E434242AA1919400AEB16C /* CommonAlertView.swift */,
); );
path = View; path = View;
sourceTree = "<group>"; sourceTree = "<group>";
@@ -932,13 +932,13 @@
7918877B2A7CDD1A007EA0C1 /* Initial.swift in Sources */, 7918877B2A7CDD1A007EA0C1 /* Initial.swift in Sources */,
791887C42A84BFDB007EA0C1 /* Tool.swift in Sources */, 791887C42A84BFDB007EA0C1 /* Tool.swift in Sources */,
794FBB162A8F1A3300D57BB8 /* RescuePhotoController.swift in Sources */, 794FBB162A8F1A3300D57BB8 /* RescuePhotoController.swift in Sources */,
79E434252AA1919400AEB16C /* CommonAlertView.swift in Sources */,
7918878F2A809E37007EA0C1 /* TimerStrings.swift in Sources */, 7918878F2A809E37007EA0C1 /* TimerStrings.swift in Sources */,
7918878B2A7CE9E0007EA0C1 /* main.swift in Sources */, 7918878B2A7CE9E0007EA0C1 /* main.swift in Sources */,
791887A02A80CA10007EA0C1 /* RequestList.swift in Sources */, 791887A02A80CA10007EA0C1 /* RequestList.swift in Sources */,
79FB761C2A9EEC3700DB00A4 /* GroupData.swift in Sources */, 79FB761C2A9EEC3700DB00A4 /* GroupData.swift in Sources */,
79FB76172A9DFC9600DB00A4 /* NotificationSetUpController.swift in Sources */, 79FB76172A9DFC9600DB00A4 /* NotificationSetUpController.swift in Sources */,
79CECC262A8C749B00B95D8B /* VehicleMonitorVideoController.swift in Sources */, 79CECC262A8C749B00B95D8B /* VehicleMonitorVideoController.swift in Sources */,
79DD0DA82A9480D000768FE7 /* NotificationAuthView.swift in Sources */,
794FBB212A934E0A00D57BB8 /* AppUpdateView.swift in Sources */, 794FBB212A934E0A00D57BB8 /* AppUpdateView.swift in Sources */,
79DD0DB42A95F00B00768FE7 /* Extension.swift in Sources */, 79DD0DB42A95F00B00768FE7 /* Extension.swift in Sources */,
791887802A7CE6F1007EA0C1 /* UserDefaultStrings.swift in Sources */, 791887802A7CE6F1007EA0C1 /* UserDefaultStrings.swift in Sources */,

View File

@@ -46,8 +46,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "240" startingLineNumber = "291"
endingLineNumber = "240" endingLineNumber = "291"
landmarkName = "textView(_:shouldInteractWith:in:interaction:)" landmarkName = "textView(_:shouldInteractWith:in:interaction:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -62,8 +62,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "244" startingLineNumber = "295"
endingLineNumber = "244" endingLineNumber = "295"
landmarkName = "textView(_:shouldInteractWith:in:interaction:)" landmarkName = "textView(_:shouldInteractWith:in:interaction:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -78,8 +78,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "121" startingLineNumber = "125"
endingLineNumber = "121" endingLineNumber = "125"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
<Locations> <Locations>
@@ -141,8 +141,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "107" startingLineNumber = "111"
endingLineNumber = "107" endingLineNumber = "111"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -157,54 +157,6 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "79"
endingLineNumber = "79"
landmarkName = "addActions()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "980964A8-1322-424C-AE3E-DF8C27A30C9C"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "87"
endingLineNumber = "87"
landmarkName = "addActions()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "19508AAD-AD4C-4BDF-81DE-F47DC21CD07D"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "94"
endingLineNumber = "94"
landmarkName = "addActions()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "75997BB3-3A8A-471B-AEBA-33634F502589"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "83" startingLineNumber = "83"
endingLineNumber = "83" endingLineNumber = "83"
landmarkName = "addActions()" landmarkName = "addActions()"
@@ -214,7 +166,23 @@
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "45AB1C2E-7406-4B5A-B0A1-13606A76B374" uuid = "980964A8-1322-424C-AE3E-DF8C27A30C9C"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "91"
endingLineNumber = "91"
landmarkName = "addActions()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "19508AAD-AD4C-4BDF-81DE-F47DC21CD07D"
shouldBeEnabled = "No" shouldBeEnabled = "No"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
@@ -227,6 +195,38 @@
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "75997BB3-3A8A-471B-AEBA-33634F502589"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "87"
endingLineNumber = "87"
landmarkName = "addActions()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "45AB1C2E-7406-4B5A-B0A1-13606A76B374"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "102"
endingLineNumber = "102"
landmarkName = "addActions()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
@@ -1226,8 +1226,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "151" startingLineNumber = "202"
endingLineNumber = "151" endingLineNumber = "202"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -1365,8 +1365,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "134" startingLineNumber = "138"
endingLineNumber = "134" endingLineNumber = "138"
landmarkName = "jpushNotificationAuthorization(_:withInfo:)" landmarkName = "jpushNotificationAuthorization(_:withInfo:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -1381,8 +1381,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "125" startingLineNumber = "129"
endingLineNumber = "125" endingLineNumber = "129"
landmarkName = "jpushNotificationCenter(_:didReceive:withCompletionHandler:)" landmarkName = "jpushNotificationCenter(_:didReceive:withCompletionHandler:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -1429,8 +1429,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "155" startingLineNumber = "206"
endingLineNumber = "155" endingLineNumber = "206"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -1445,8 +1445,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "159" startingLineNumber = "210"
endingLineNumber = "159" endingLineNumber = "210"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -1461,8 +1461,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "162" startingLineNumber = "213"
endingLineNumber = "162" endingLineNumber = "213"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -1477,8 +1477,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "174" startingLineNumber = "225"
endingLineNumber = "174" endingLineNumber = "225"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -1493,8 +1493,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "163" startingLineNumber = "214"
endingLineNumber = "163" endingLineNumber = "214"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
<Locations> <Locations>
@@ -1557,8 +1557,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "164" startingLineNumber = "215"
endingLineNumber = "164" endingLineNumber = "215"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -2032,8 +2032,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "127" startingLineNumber = "131"
endingLineNumber = "127" endingLineNumber = "131"
landmarkName = "jpushNotificationCenter(_:didReceive:withCompletionHandler:)" landmarkName = "jpushNotificationCenter(_:didReceive:withCompletionHandler:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -2253,8 +2253,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "123" startingLineNumber = "127"
endingLineNumber = "123" endingLineNumber = "127"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -2333,8 +2333,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "122" startingLineNumber = "126"
endingLineNumber = "122" endingLineNumber = "126"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
<Locations> <Locations>
@@ -2381,8 +2381,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "125" startingLineNumber = "129"
endingLineNumber = "125" endingLineNumber = "129"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -2397,8 +2397,8 @@
filePath = "OrderScheduling/Login/ViewController/LoginController.swift" filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "127" startingLineNumber = "131"
endingLineNumber = "127" endingLineNumber = "131"
landmarkName = "addActions()" landmarkName = "addActions()"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -2764,69 +2764,6 @@
</Locations> </Locations>
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "001AAA91-BE14-4D7E-AC36-BF8672C1976E"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Main/SceneDelegate.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "41"
endingLineNumber = "41"
landmarkName = "sceneDidBecomeActive(_:)"
landmarkType = "7">
<Locations>
<Location
uuid = "001AAA91-BE14-4D7E-AC36-BF8672C1976E - a7950a51e299efe1"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "OrderScheduling.SceneDelegate.sceneDidBecomeActive(__C.UIScene) -&gt; ()"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/Main/SceneDelegate.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "41"
endingLineNumber = "41"
offsetFromSymbolStart = "200">
</Location>
<Location
uuid = "001AAA91-BE14-4D7E-AC36-BF8672C1976E - a7950a51e299efe1"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "OrderScheduling.SceneDelegate.sceneDidBecomeActive(__C.UIScene) -&gt; ()"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/Main/SceneDelegate.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "41"
endingLineNumber = "41"
offsetFromSymbolStart = "148">
</Location>
<Location
uuid = "001AAA91-BE14-4D7E-AC36-BF8672C1976E - 214f71c4f991f354"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #1 (Swift.Dictionary&lt;Swift.AnyHashable, Any&gt;) -&gt; () in OrderScheduling.SceneDelegate.sceneDidBecomeActive(__C.UIScene) -&gt; ()"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/Main/SceneDelegate.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "42"
endingLineNumber = "42"
offsetFromSymbolStart = "28">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
@@ -3466,5 +3403,68 @@
</Locations> </Locations>
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "C0ADA5F4-D756-4B2F-A90E-8C943522F45B"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "154"
endingLineNumber = "154"
landmarkName = "addActions()"
landmarkType = "7">
<Locations>
<Location
uuid = "C0ADA5F4-D756-4B2F-A90E-8C943522F45B - 2b38374d4022c8ba"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #13 (Swift.Optional&lt;OrderScheduling.ResponseModel&lt;Swift.String&gt;&gt;) -&gt; () in OrderScheduling.LoginController.addActions() -&gt; ()"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "149"
endingLineNumber = "149"
offsetFromSymbolStart = "979">
</Location>
<Location
uuid = "C0ADA5F4-D756-4B2F-A90E-8C943522F45B - 325e0a7903a4d286"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #15 (Swift.Optional&lt;OrderScheduling.ResponseModel&lt;Swift.String&gt;&gt;) -&gt; () in OrderScheduling.LoginController.addActions() -&gt; ()"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "151"
endingLineNumber = "151"
offsetFromSymbolStart = "108">
</Location>
<Location
uuid = "C0ADA5F4-D756-4B2F-A90E-8C943522F45B - 325e0a7903a4d269"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #15 (Swift.Optional&lt;OrderScheduling.ResponseModel&lt;Swift.String&gt;&gt;) -&gt; () in OrderScheduling.LoginController.addActions() -&gt; ()"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/Login/ViewController/LoginController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "152"
endingLineNumber = "152"
offsetFromSymbolStart = "111">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
</Breakpoints> </Breakpoints>
</Bucket> </Bucket>

Binary file not shown.

Binary file not shown.

View File

@@ -1,25 +1,23 @@
// //
// NotificationAuthView.swift // CommonAlertView.swift
// OrderScheduling // OrderScheduling
// //
// Created by on 2023/8/22. // Created by on 2023/9/1.
// //
import Foundation import Foundation
import DDControlsKit_Private import DDControlsKit_Private
import DDAutoUIKit_Private import DDAutoUIKit_Private
import DDColorKit_Private
import DDFontKit_Private
open class NotificationAuthView : DDView{ open class CommonAlertView : DDView{
private let radiusView : DDView private let radiusView : DDView
private let scrollView : DDScrollView private let scrollView : DDScrollView
private let scrollContentView : DDView private let scrollContentView : DDView
public let contentLabel : DDLabel public let contentLabel : DDLabel
public let horizontalLine : DDView public let horizontalLine : DDView
public let verticalLine : DDView public let verticalLine : DDView
public let ignoreButton : DDButton public let cancelButton : DDButton
public let setButton : DDButton public let sureButton : DDButton
public override init(frame: CGRect) { public override init(frame: CGRect) {
radiusView = DDView.init() radiusView = DDView.init()
scrollView = DDScrollView() scrollView = DDScrollView()
@@ -27,8 +25,8 @@ open class NotificationAuthView : DDView{
contentLabel = DDLabel.dd_init(withText: "", font: .mediumFont(auto(17)), textColor: .black.alpha(0.5)) contentLabel = DDLabel.dd_init(withText: "", font: .mediumFont(auto(17)), textColor: .black.alpha(0.5))
horizontalLine = DDView() horizontalLine = DDView()
verticalLine = DDView() verticalLine = DDView()
ignoreButton = DDButton.dd_initCustom() cancelButton = DDButton.dd_initCustom()
setButton = DDButton.dd_initCustom() sureButton = DDButton.dd_initCustom()
super.init(frame: frame) super.init(frame: frame)
radiusView.layer.cornerRadius = auto(10) radiusView.layer.cornerRadius = auto(10)
radiusView.layer.masksToBounds = true radiusView.layer.masksToBounds = true
@@ -37,23 +35,23 @@ open class NotificationAuthView : DDView{
scrollView.addSubview(scrollContentView) scrollView.addSubview(scrollContentView)
contentLabel.numberOfLines = 0 contentLabel.numberOfLines = 0
contentLabel.textAlignment = .center contentLabel.textAlignment = .center
contentLabel.text = "当前应用未开启通知,建议开启" contentLabel.text = ""
scrollContentView.addSubview(contentLabel) scrollContentView.addSubview(contentLabel)
horizontalLine.backgroundColor = .hex("979797").alpha(0.35) horizontalLine.backgroundColor = .hex("979797").alpha(0.35)
radiusView.addSubview(horizontalLine) radiusView.addSubview(horizontalLine)
verticalLine.backgroundColor = .hex("979797").alpha(0.35) verticalLine.backgroundColor = .hex("979797").alpha(0.35)
verticalLine.isHidden = true verticalLine.isHidden = true
radiusView.addSubview(verticalLine) radiusView.addSubview(verticalLine)
ignoreButton.setTitle("取消", for: .normal) cancelButton.setTitle("取消", for: .normal)
ignoreButton.titleLabel?.font = .mediumFont(auto(14)) cancelButton.titleLabel?.font = .mediumFont(auto(14))
ignoreButton.backgroundColor = .white cancelButton.backgroundColor = .white
ignoreButton.setTitleColor(.black.alpha(0.3), for: .normal) cancelButton.setTitleColor(.black.alpha(0.3), for: .normal)
radiusView.addSubview(ignoreButton) radiusView.addSubview(cancelButton)
setButton.setTitle("去设置", for: .normal) sureButton.setTitle("确定", for: .normal)
setButton.setTitleColor(.white, for: .normal) sureButton.setTitleColor(.white, for: .normal)
setButton.titleLabel?.font = .mediumFont(auto(14)) sureButton.titleLabel?.font = .mediumFont(auto(14))
setButton.backgroundColor = .hex("1C62D9") sureButton.backgroundColor = .hex("1C62D9")
radiusView.addSubview(setButton) radiusView.addSubview(sureButton)
radiusView.snp.makeConstraints { make in radiusView.snp.makeConstraints { make in
make.edges.equalToSuperview() make.edges.equalToSuperview()
@@ -61,19 +59,20 @@ open class NotificationAuthView : DDView{
scrollView.snp.makeConstraints { make in scrollView.snp.makeConstraints { make in
make.top.left.right.equalToSuperview() make.top.left.right.equalToSuperview()
make.bottom.equalToSuperview().offset(-auto(70)) make.bottom.equalTo(horizontalLine.snp.top)
} }
scrollContentView.snp.makeConstraints { make in scrollContentView.snp.makeConstraints { make in
make.edges.equalToSuperview() make.edges.equalToSuperview()
make.width.equalToSuperview() make.width.equalToSuperview()
make.height.greaterThanOrEqualToSuperview()
} }
contentLabel.snp.makeConstraints { make in contentLabel.snp.makeConstraints { make in
make.left.equalToSuperview().offset(auto(20)) make.left.equalToSuperview().offset(auto(20))
make.top.equalToSuperview().offset(auto(20)) make.top.equalToSuperview().offset(auto(20))
make.right.equalTo(-auto(20)) make.right.equalTo(-auto(20))
make.bottom.equalTo(scrollContentView) make.bottom.equalTo(scrollContentView).offset(-auto(20))
} }
horizontalLine.snp.makeConstraints { make in horizontalLine.snp.makeConstraints { make in
@@ -89,14 +88,14 @@ open class NotificationAuthView : DDView{
make.width.equalTo(1) make.width.equalTo(1)
} }
ignoreButton.snp.makeConstraints { make in cancelButton.snp.makeConstraints { make in
make.left.equalToSuperview() make.left.equalToSuperview()
make.right.equalTo(verticalLine.snp.left) make.right.equalTo(verticalLine.snp.left)
make.top.equalTo(horizontalLine.snp.bottom) make.top.equalTo(horizontalLine.snp.bottom)
make.bottom.equalToSuperview() make.bottom.equalToSuperview()
} }
setButton.snp.makeConstraints { make in sureButton.snp.makeConstraints { make in
make.bottom.equalToSuperview() make.bottom.equalToSuperview()
make.right.equalToSuperview() make.right.equalToSuperview()
make.top.equalTo(horizontalLine.snp.top) make.top.equalTo(horizontalLine.snp.top)

View File

@@ -17,11 +17,14 @@ open class NotificationAuthTool : NSObject {
public let requestNotiAuthRelay = ReplayRelay<Any?>.create(bufferSize: 1) public let requestNotiAuthRelay = ReplayRelay<Any?>.create(bufferSize: 1)
public let cancelNotiAuthRelay = ReplayRelay<Any?>.create(bufferSize: 1) public let cancelNotiAuthRelay = ReplayRelay<Any?>.create(bufferSize: 1)
private let disposeBag = DisposeBag() private let disposeBag = DisposeBag()
public let notificationAuthView = NotificationAuthView() public let notificationAuthView = CommonAlertView()
public override init() { public override init() {
super.init() super.init()
notificationAuthView.sureButton.setTitle("去设置", for: .normal)
notificationAuthView.contentLabel.text = "当前应用未开启通知,建议开启"
requestNotiAuthRelay requestNotiAuthRelay
.subscribe(onNext: {[weak self] _ in .subscribe(onNext: {[weak self] _ in
if let notificationAuthView = self?.notificationAuthView { if let notificationAuthView = self?.notificationAuthView {
@@ -36,13 +39,13 @@ open class NotificationAuthTool : NSObject {
}) })
.disposed(by: disposeBag) .disposed(by: disposeBag)
notificationAuthView.setButton.rx.tap notificationAuthView.sureButton.rx.tap
.subscribe(onNext: {[weak self] _ in .subscribe(onNext: {[weak self] _ in
self?.openSetting() self?.openSetting()
}) })
.disposed(by: disposeBag) .disposed(by: disposeBag)
notificationAuthView.ignoreButton.rx.tap notificationAuthView.cancelButton.rx.tap
.subscribe(onNext: { _ in .subscribe(onNext: { _ in
ENTRY.dismiss(name: notificationAuthViewEntry) ENTRY.dismiss(name: notificationAuthViewEntry)
}) })

View File

@@ -14,6 +14,50 @@ public let ENTRY = Entry.default
open class Entry { open class Entry {
public static let `default` = Entry() public static let `default` = Entry()
func showLoginNoticeEntry(view:UIView,name:String? = nil) {
var attributes = EKAttributes()
attributes = .centerFloat
attributes.name = name
attributes.precedence = .override(priority: .min, dropEnqueuedEntries: false)
attributes.displayMode = .inferred
attributes.displayDuration = .infinity
attributes.screenBackground = .color(color: .clear)
attributes.entryBackground = .color(color: .white)
attributes.screenInteraction = .absorbTouches
attributes.entryInteraction = .absorbTouches
attributes.scroll = .disabled
attributes.entranceAnimation = .init(
translate: .init(
duration: 0.25,
spring: .init(damping: 1, initialVelocity: 0)
)
)
attributes.exitAnimation = .init(
translate: .init(duration: 0.25)
)
attributes.popBehavior = .animated(
animation: .init(
translate: .init(duration: 0.25)
)
)
attributes.shadow = .active(
with: .init(
color: .black,
opacity: 0.3,
radius: 6
)
)
attributes.positionConstraints.size = .init(
width: .constant(value: auto(280)),
height: .constant(value: auto(130))
)
attributes.positionConstraints.verticalOffset = 0
attributes.positionConstraints.safeArea = .overridden
attributes.positionConstraints.rotation.isEnabled = false
attributes.statusBar = .light
SwiftEntryKit.display(entry: view, using: attributes)
}
public func showRefuseOrderConfirmEntry(view:UIView,name:String? = nil){ public func showRefuseOrderConfirmEntry(view:UIView,name:String? = nil){
var attributes = EKAttributes() var attributes = EKAttributes()
attributes = .centerFloat attributes = .centerFloat

View File

@@ -51,4 +51,6 @@ open class ApiList {
public let messageReminderList = "/supplierAppV2/dispatchApp/toDoMessage/messageReminderList" public let messageReminderList = "/supplierAppV2/dispatchApp/toDoMessage/messageReminderList"
public let readMessageReminder = "/supplierAppV2/dispatchApp/toDoMessage/readMessageReminder" public let readMessageReminder = "/supplierAppV2/dispatchApp/toDoMessage/readMessageReminder"
public let checkLogin = "/supplierAppV2/open/checkLogin"
} }

View File

@@ -21,6 +21,14 @@ public struct LoginCodeParameters : Encodable {
var phone : String var phone : String
} }
public struct CheckLoginParameters : Encodable {
var supplierLoginCode : String
var phone : String
var code : String
var clientType : String = "rescueApp"
var deviceId : String
}
public struct LoginParameters : Encodable { public struct LoginParameters : Encodable {
var app_login_json : String var app_login_json : String
var client_id : Bool var client_id : Bool

View File

@@ -24,6 +24,10 @@ open class RequestList {
return DDAF.post(urlString: HOST+API.verifyCode,parameters: parameters,encoding: JSONParameterEncoder.default,responseType: ResponseModel<String>.self) return DDAF.post(urlString: HOST+API.verifyCode,parameters: parameters,encoding: JSONParameterEncoder.default,responseType: ResponseModel<String>.self)
} }
func checkLogin(parameters:Encodable) -> Single<ResponseModel<String>?> {
return DDAF.post(urlString: HOST+API.checkLogin,parameters: parameters,encoding: JSONParameterEncoder.default,headers: [],responseType: ResponseModel<String>.self)
}
func login(parameters:Encodable) -> Single<ResponseModel<LoginDataModel>?> { func login(parameters:Encodable) -> Single<ResponseModel<LoginDataModel>?> {
return DDAF.post(urlString: HOST+API.login,parameters: parameters,headers: ["Authorization":"Basic c3VwcGxpZXItYXBwOiQyYSQxMCRXZ1pIdzVSamoxcGpIYnJucG00YlYuTWlTZ0o2aWpzYWlNeHN2OUhwZWlYR094UWtWRWVaNg=="],responseType: ResponseModel<LoginDataModel>.self) return DDAF.post(urlString: HOST+API.login,parameters: parameters,headers: ["Authorization":"Basic c3VwcGxpZXItYXBwOiQyYSQxMCRXZ1pIdzVSamoxcGpIYnJucG00YlYuTWlTZ0o2aWpzYWlNeHN2OUhwZWlYR094UWtWRWVaNg=="],responseType: ResponseModel<LoginDataModel>.self)
} }

View File

@@ -19,7 +19,9 @@ import CocoaDebug
class LoginController : ZDViewController { class LoginController : ZDViewController {
private let disposeBag = DisposeBag() private let disposeBag = DisposeBag()
private let loginView = LoginView.init() private let loginView = LoginView.init()
private let loginNoticeView = CommonAlertView()
private let agreeSub = ReplaySubject<Bool>.create(bufferSize: 1) private let agreeSub = ReplaySubject<Bool>.create(bufferSize: 1)
private let loginSub = ReplaySubject<Bool>.create(bufferSize: 1)
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
@@ -66,6 +68,8 @@ extension LoginController {
loginView.loginButton.backgroundColor = .hex("1C6CCE").alpha(0.4) loginView.loginButton.backgroundColor = .hex("1C6CCE").alpha(0.4)
loginView.loginButton.setTitle("登录", for: .normal) loginView.loginButton.setTitle("登录", for: .normal)
loginNoticeView.sureButton.setTitle("登录", for: .normal)
} }
} }
extension LoginController { extension LoginController {
@@ -131,6 +135,53 @@ extension LoginController {
.disposed(by: disposeBag) .disposed(by: disposeBag)
loginView.loginButton.rx.tap loginView.loginButton.rx.tap
.observe(on: MainScheduler.instance)
.do(onNext: {[weak self] _ in
self?.view.dd_showHUD()
})
.map({[weak self] _ in
CheckLoginParameters(supplierLoginCode: self?.loginView.serviceProviderView.textfield.text ?? "", phone: self?.loginView.phoneView.textfield.text ?? "", code: self?.loginView.codeView.textfield.text ?? "", deviceId: USER.deviceToken ?? "")
})
.flatMapLatest({ checkLoginParameters in
return RQ.checkLogin(parameters: checkLoginParameters)
})
.observe(on: MainScheduler.instance)
.do(onNext: {[weak self] _ in
self?.view.dd_hideHUD()
})
.observe(on: MainScheduler.instance)
.subscribe(onNext: {[weak self] response in
if response?.code == 200 {
self?.loginSub.onNext(true)
}else if response?.code == 500 {
if let loginNoticeView = self?.loginNoticeView {
loginNoticeView.contentLabel.text = response?.msg
ENTRY.showLoginNoticeEntry(view: loginNoticeView,name: loginNoticeEntry)
}
}else{
self?.view.dd_makeToast(response?.msg)
}
})
.disposed(by: disposeBag)
loginNoticeView.sureButton.rx.tap
.observe(on: MainScheduler.instance)
.subscribe(onNext: {[weak self] in
ENTRY.dismiss(name: loginNoticeEntry) {[weak self] in
self?.loginSub.onNext(true)
}
})
.disposed(by: disposeBag)
loginNoticeView.cancelButton.rx.tap
.observe(on: MainScheduler.instance)
.subscribe(onNext: {
ENTRY.dismiss(name: loginNoticeEntry) {
}
})
.disposed(by: disposeBag)
loginSub
.observe(on: MainScheduler.instance) .observe(on: MainScheduler.instance)
.do(onNext: {[weak self] _ in .do(onNext: {[weak self] _ in
self?.view.dd_showHUD() self?.view.dd_showHUD()

View File

@@ -105,16 +105,20 @@ extension AppDelegate : JPUSHRegisterDelegate {
JPUSHService.handleRemoteNotification(userInfo) JPUSHService.handleRemoteNotification(userInfo)
if GROUP.isOrderPushNotification(userInfo: userInfo) == true { if GROUP.isOrderPushNotification(userInfo: userInfo) == true {
if USER.isLogin == true {
// //
TOOL.dealWithOrderPushNotification { userInfo in TOOL.dealWithOrderPushNotification { userInfo in
TOOL.playAlertWith(userInfo: userInfo) TOOL.playAlertWith(userInfo: userInfo)
TOOL.playVoiceWith(userInfo: userInfo) TOOL.playVoiceWith(userInfo: userInfo)
} }
}
}else{ }else{
if USER.isLogin == true {
MCOUNT.newestMessage() MCOUNT.newestMessage()
completionHandler(1 << 1 | 1 << 2) completionHandler(1 << 1 | 1 << 2)
} }
} }
}
completionHandler(0) completionHandler(0)
} }

View File

@@ -37,6 +37,8 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// appbadge // appbadge
JPUSHService.resetBadge() JPUSHService.resetBadge()
UIApplication.shared.applicationIconBadgeNumber = 0 UIApplication.shared.applicationIconBadgeNumber = 0
if USER.isLogin == true {
// //
TOOL.dealWithOrderPushNotification { userInfo in TOOL.dealWithOrderPushNotification { userInfo in
TOOL.playAlertWith(userInfo: userInfo) TOOL.playAlertWith(userInfo: userInfo)
@@ -44,6 +46,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// app // app
MCOUNT.newestMessage() MCOUNT.newestMessage()
} }
}
func sceneWillResignActive(_ scene: UIScene) { func sceneWillResignActive(_ scene: UIScene) {
// Called when the scene will move from an active state to an inactive state. // Called when the scene will move from an active state to an inactive state.

View File

@@ -7,6 +7,8 @@
import Foundation import Foundation
public let loginNoticeEntry = "loginNoticeEntry"
public let refuseOrderEntry = "refuseOrderEntry" public let refuseOrderEntry = "refuseOrderEntry"
public let refuseOrderConfirmEntry = "refuseOrderConfirmEntry" public let refuseOrderConfirmEntry = "refuseOrderConfirmEntry"