xiaoxi 5 年之前
父節點
當前提交
12f5d585f9

+ 8 - 0
PublicFund.xcodeproj/project.pbxproj

@@ -273,6 +273,7 @@
273 273
 		708EE81F215A2AA100069F8A /* PFActivityLaunchModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 708EE81E215A2AA100069F8A /* PFActivityLaunchModel.m */; };
274 274
 		7091413C214280F700FAEC39 /* PFInsuranceWaterDetailModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 7091413B214280F700FAEC39 /* PFInsuranceWaterDetailModel.m */; };
275 275
 		709BE58E20EB184400C59804 /* PFNewService1ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 709BE58D20EB184400C59804 /* PFNewService1ViewController.m */; };
276
+		709F0FC721706D68007F5E4B /* KXGetHeightTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 709F0FC521706D68007F5E4B /* KXGetHeightTool.m */; };
276 277
 		70A218E5211AC8C700DD124D /* PFDetailLoanView.m in Sources */ = {isa = PBXBuildFile; fileRef = 70A218E4211AC8C700DD124D /* PFDetailLoanView.m */; };
277 278
 		70A218E8211AD90300DD124D /* PFFundLoanViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 70A218E7211AD90300DD124D /* PFFundLoanViewController.m */; };
278 279
 		70A218EB211AF52400DD124D /* PFSettingCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 70A218EA211AF52400DD124D /* PFSettingCell.m */; };
@@ -908,6 +909,8 @@
908 909
 		7091413B214280F700FAEC39 /* PFInsuranceWaterDetailModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PFInsuranceWaterDetailModel.m; sourceTree = "<group>"; };
909 910
 		709BE58C20EB184400C59804 /* PFNewService1ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PFNewService1ViewController.h; sourceTree = "<group>"; };
910 911
 		709BE58D20EB184400C59804 /* PFNewService1ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PFNewService1ViewController.m; sourceTree = "<group>"; };
912
+		709F0FC521706D68007F5E4B /* KXGetHeightTool.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KXGetHeightTool.m; sourceTree = "<group>"; };
913
+		709F0FC621706D68007F5E4B /* KXGetHeightTool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KXGetHeightTool.h; sourceTree = "<group>"; };
911 914
 		70A218E3211AC8C700DD124D /* PFDetailLoanView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PFDetailLoanView.h; sourceTree = "<group>"; };
912 915
 		70A218E4211AC8C700DD124D /* PFDetailLoanView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PFDetailLoanView.m; sourceTree = "<group>"; };
913 916
 		70A218E6211AD90300DD124D /* PFFundLoanViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PFFundLoanViewController.h; sourceTree = "<group>"; };
@@ -2329,6 +2332,8 @@
2329 2332
 				7082C8752074C0CB00CE263F /* PFTime.m */,
2330 2333
 				7029C3FC20A96363005E9AAB /* KXTime.h */,
2331 2334
 				7029C3FB20A96363005E9AAB /* KXTime.m */,
2335
+				709F0FC621706D68007F5E4B /* KXGetHeightTool.h */,
2336
+				709F0FC521706D68007F5E4B /* KXGetHeightTool.m */,
2332 2337
 			);
2333 2338
 			path = Tools;
2334 2339
 			sourceTree = "<group>";
@@ -3028,6 +3033,7 @@
3028 3033
 				70CE762120E35CC200FA7926 /* PFAssetModel.m in Sources */,
3029 3034
 				7082C92C2074C0CC00CE263F /* PFCustomServiceViewController.m in Sources */,
3030 3035
 				700A254720D8FF650091B382 /* KXEventTopViewModel.m in Sources */,
3036
+				709F0FC721706D68007F5E4B /* KXGetHeightTool.m in Sources */,
3031 3037
 				70CDCD0F212EC60B00F5A0EA /* UICountingLabel.m in Sources */,
3032 3038
 				706777F021196D0000B4E6A5 /* KXKBTopPageControl.m in Sources */,
3033 3039
 				7015FA3E20F7356B005FEA58 /* KXLaunchAdConfiguration.m in Sources */,
@@ -3468,6 +3474,7 @@
3468 3474
 				LIBRARY_SEARCH_PATHS = (
3469 3475
 					"$(inherited)",
3470 3476
 					"$(PROJECT_DIR)/PublicFund/Third/SDK",
3477
+					"$(PROJECT_DIR)/PublicFund",
3471 3478
 				);
3472 3479
 				MiSDKRun = debug;
3473 3480
 				PRODUCT_BUNDLE_IDENTIFIER = com.gongji.scc;
@@ -3496,6 +3503,7 @@
3496 3503
 				LIBRARY_SEARCH_PATHS = (
3497 3504
 					"$(inherited)",
3498 3505
 					"$(PROJECT_DIR)/PublicFund/Third/SDK",
3506
+					"$(PROJECT_DIR)/PublicFund",
3499 3507
 				);
3500 3508
 				MiSDKRun = online;
3501 3509
 				PRODUCT_BUNDLE_IDENTIFIER = com.gongji.scc;

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

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

+ 3 - 0
PublicFund/Main/社保/PFInsuranceDetailViewController.m

@@ -113,6 +113,9 @@
113 113
 
114 114
 - (void)requestDetail {
115 115
     [MBProgressHUD showLoadingAddedToView:self.headerView];
116
+    if (self.type == PFInsuranceDetailRequestTypeRequest) {
117
+        [NSThread sleepForTimeInterval:5];
118
+    }
116 119
     NSString *urlString = [NSString stringWithFormat:@"%@/security/getInsuranceCount",Url];
117 120
     NSDictionary *params = @{@"tid":self.tidString};
118 121
     [PFHTTP get:urlString params:params success:^(id json) {

+ 4 - 8
PublicFund/Mine/controller/PFWebLinkViewController.m

@@ -114,14 +114,10 @@
114 114
                             tid = [tidArray lastObject];
115 115
                         }
116 116
                     }
117
-                    [MBProgressHUD showLoadingAddedToView:webView];
118
-                    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
119
-                        [MBProgressHUD hideHUDForView:webView];
120
-                        PFInsuranceDetailViewController *detail = [[PFInsuranceDetailViewController alloc] init];
121
-                        detail.type = PFInsuranceDetailRequestTypeRequest;
122
-                        detail.tidString = tid;
123
-                        [self.navigationController pushViewController:detail animated:YES];
124
-                    });
117
+                    PFInsuranceDetailViewController *detail = [[PFInsuranceDetailViewController alloc] init];
118
+                    detail.type = PFInsuranceDetailRequestTypeRequest;
119
+                    detail.tidString = tid;
120
+                    [self.navigationController pushViewController:detail animated:YES];
125 121
                 }
126 122
                 else {
127 123
                     [self.navigationController popViewControllerAnimated:YES];

+ 3 - 3
PublicFund/PrefixHeader.pch

@@ -57,10 +57,10 @@
57 57
 //https://api.security.726p.com //old
58 58
 //https://apisearch.726p.com //new
59 59
 
60
-#define Url @"http://apisearch80.726p.com/api"
60
+#define Url @"https://apisearch.726p.com/api"
61 61
 
62
-#define CityUrl @"http://apisearch80.726p.com/gongjijin"
62
+#define CityUrl @"https://apisearch.726p.com/gongjijin"
63 63
 
64
-static NSString * const URL = @"http://apisearch80.726p.com/user";
64
+static NSString * const URL = @"https://apisearch.726p.com/user";
65 65
 
66 66
 #endif /* PrefixHeader_pch */

+ 46 - 0
PublicFund/Tools/KXGetHeightTool.h

@@ -0,0 +1,46 @@
1
+//
2
+//  KXGetHeightTool.h
3
+//  CAISHEN
4
+//
5
+//  Created by admin on 2018/10/11.
6
+//  Copyright © 2018 kuxuan. All rights reserved.
7
+//
8
+
9
+#import <Foundation/Foundation.h>
10
+
11
+NS_ASSUME_NONNULL_BEGIN
12
+
13
+@interface KXGetHeightTool : NSObject
14
+
15
+/**
16
+ *  安全区域
17
+ *
18
+ *  @return 0 或 34(iPhone X)
19
+ */
20
++ (CGFloat)getSafeBottom;
21
+
22
+/**
23
+ *  tabbar 高度
24
+ *
25
+ *  @return 49 + 安全区域
26
+ */
27
++ (CGFloat)gettabbarHeight;
28
+
29
+/**
30
+ *  statusBar 高度
31
+ *
32
+ *  @return 20 或 44(iPhone X)
33
+ */
34
++ (CGFloat)getStatusBarHeight;
35
+
36
+/**
37
+ *  navigationBar 高度
38
+ *
39
+ *  @return 64 或 88(iPhone X)
40
+ */
41
++ (CGFloat)getNavigationBarHeight;
42
+
43
+
44
+@end
45
+
46
+NS_ASSUME_NONNULL_END

+ 54 - 0
PublicFund/Tools/KXGetHeightTool.m

@@ -0,0 +1,54 @@
1
+//
2
+//  KXGetHeightTool.m
3
+//  CAISHEN
4
+//
5
+//  Created by admin on 2018/10/11.
6
+//  Copyright © 2018 kuxuan. All rights reserved.
7
+//
8
+
9
+#import "KXGetHeightTool.h"
10
+
11
+@implementation KXGetHeightTool
12
+
13
+/**
14
+ *  键盘安全区域
15
+ *
16
+ *  @return 34
17
+ */
18
++ (CGFloat)getSafeBottom{
19
+    if (@available(iOS 11.0, *)) {
20
+        return [UIApplication sharedApplication].keyWindow.safeAreaInsets.bottom;
21
+    } else {
22
+        return 0;
23
+    }
24
+}
25
+
26
+/**
27
+ *  tabbar 高度
28
+ *
29
+ *  @return 49 + 安全区域
30
+ */
31
++ (CGFloat)gettabbarHeight{
32
+    return 49 + [self getSafeBottom];
33
+}
34
+
35
+/**
36
+ *  statusBar 高度
37
+ *
38
+ *  @return 20 或 44(iPhone X)
39
+ */
40
++ (CGFloat)getStatusBarHeight{
41
+    return [[UIApplication sharedApplication] statusBarFrame].size.height;
42
+}
43
+
44
+/**
45
+ *  navigationBar 高度
46
+ *
47
+ *  @return 64 或 88(iPhone X)
48
+ */
49
++ (CGFloat)getNavigationBarHeight{
50
+    return 44 + [self getStatusBarHeight];
51
+}
52
+
53
+
54
+@end