2 Commits d074e4abbb ... ee8a6d0592

Auteur SHA1 Message Date
  chuangye jia ee8a6d0592 haha il y a 6 ans
  chuangye jia 6dec6ec35c haha il y a 6 ans

BIN
.DS_Store


+ 50 - 0
KXCardHelp.xcodeproj/project.pbxproj

@@ -156,6 +156,12 @@
156 156
 		11E85CF320F48CB8007B2B0E /* LVKBWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 11E85CF220F48CB8007B2B0E /* LVKBWebViewController.m */; };
157 157
 		11F2D1722106CF1300AF4336 /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 11F2D1712106CF1300AF4336 /* NetworkExtension.framework */; };
158 158
 		40304870215340C800E36940 /* LVKBNewHomeTableViewHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = 4030486F215340C800E36940 /* LVKBNewHomeTableViewHeader.m */; };
159
+		403048732153FC0C00E36940 /* LVKBAddAlarmClockView.m in Sources */ = {isa = PBXBuildFile; fileRef = 403048722153FC0C00E36940 /* LVKBAddAlarmClockView.m */; };
160
+		403048752153FC9B00E36940 /* LVKBAddAlarmClockView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 403048742153FC9B00E36940 /* LVKBAddAlarmClockView.xib */; };
161
+		4030487921540B8800E36940 /* LVKBCardManageViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4030487821540B8800E36940 /* LVKBCardManageViewController.m */; };
162
+		4030487E21540C1E00E36940 /* LVKBCardManageTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4030487C21540C1E00E36940 /* LVKBCardManageTableViewCell.m */; };
163
+		4030487F21540C1E00E36940 /* LVKBCardManageTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4030487D21540C1E00E36940 /* LVKBCardManageTableViewCell.xib */; };
164
+		403048822154113000E36940 /* LVKBAddCardManageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 403048812154113000E36940 /* LVKBAddCardManageView.m */; };
159 165
 		5B982B19B445B1CF86AEC93C /* libPods-KXCardHelp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E6ACD581411C8CD82F0EE3FF /* libPods-KXCardHelp.a */; };
160 166
 /* End PBXBuildFile section */
161 167
 
@@ -443,6 +449,17 @@
443 449
 		11F2D1732106CF1300AF4336 /* KXCardHelp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = KXCardHelp.entitlements; sourceTree = "<group>"; };
444 450
 		4030486E215340C800E36940 /* LVKBNewHomeTableViewHeader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LVKBNewHomeTableViewHeader.h; sourceTree = "<group>"; };
445 451
 		4030486F215340C800E36940 /* LVKBNewHomeTableViewHeader.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LVKBNewHomeTableViewHeader.m; sourceTree = "<group>"; };
452
+		403048712153FC0C00E36940 /* LVKBAddAlarmClockView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LVKBAddAlarmClockView.h; sourceTree = "<group>"; };
453
+		403048722153FC0C00E36940 /* LVKBAddAlarmClockView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LVKBAddAlarmClockView.m; sourceTree = "<group>"; };
454
+		403048742153FC9B00E36940 /* LVKBAddAlarmClockView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = LVKBAddAlarmClockView.xib; sourceTree = "<group>"; };
455
+		4030487721540B8800E36940 /* LVKBCardManageViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LVKBCardManageViewController.h; sourceTree = "<group>"; };
456
+		4030487821540B8800E36940 /* LVKBCardManageViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LVKBCardManageViewController.m; sourceTree = "<group>"; };
457
+		4030487B21540C1E00E36940 /* LVKBCardManageTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LVKBCardManageTableViewCell.h; sourceTree = "<group>"; };
458
+		4030487C21540C1E00E36940 /* LVKBCardManageTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LVKBCardManageTableViewCell.m; sourceTree = "<group>"; };
459
+		4030487D21540C1E00E36940 /* LVKBCardManageTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = LVKBCardManageTableViewCell.xib; sourceTree = "<group>"; };
460
+		403048802154113000E36940 /* LVKBAddCardManageView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LVKBAddCardManageView.h; sourceTree = "<group>"; };
461
+		403048812154113000E36940 /* LVKBAddCardManageView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LVKBAddCardManageView.m; sourceTree = "<group>"; };
462
+		403048832154114800E36940 /* LVKBAddCardManageView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = LVKBAddCardManageView.xib; path = /Users/chuangyejia/Desktop/companyProject/kabang/KXCardHelp/KXCardHelp/GS/NewHome/cardManage/View/LVKBAddCardManageView.xib; sourceTree = "<absolute>"; };
446 463
 		E6ACD581411C8CD82F0EE3FF /* libPods-KXCardHelp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-KXCardHelp.a"; sourceTree = BUILT_PRODUCTS_DIR; };
447 464
 /* End PBXFileReference section */
448 465
 
@@ -763,6 +780,7 @@
763 780
 		1175554D21525CC70090C1B8 /* NewHome */ = {
764 781
 			isa = PBXGroup;
765 782
 			children = (
783
+				4030487621540B3D00E36940 /* cardManage */,
766 784
 				113B8ADD2153883D00C00D96 /* Model */,
767 785
 				4030486D21533FF000E36940 /* View */,
768 786
 				1175554E21525D130090C1B8 /* VC */,
@@ -1667,6 +1685,32 @@
1667 1685
 				113B8AE12153B0E300C00D96 /* LVKBNewSignInView.h */,
1668 1686
 				113B8AE22153B0E300C00D96 /* LVKBNewSignInView.m */,
1669 1687
 				113B8AE42153B0F200C00D96 /* LVKBNewSignInView.xib */,
1688
+				403048712153FC0C00E36940 /* LVKBAddAlarmClockView.h */,
1689
+				403048722153FC0C00E36940 /* LVKBAddAlarmClockView.m */,
1690
+				403048742153FC9B00E36940 /* LVKBAddAlarmClockView.xib */,
1691
+			);
1692
+			path = View;
1693
+			sourceTree = "<group>";
1694
+		};
1695
+		4030487621540B3D00E36940 /* cardManage */ = {
1696
+			isa = PBXGroup;
1697
+			children = (
1698
+				4030487A21540BEF00E36940 /* View */,
1699
+				4030487721540B8800E36940 /* LVKBCardManageViewController.h */,
1700
+				4030487821540B8800E36940 /* LVKBCardManageViewController.m */,
1701
+			);
1702
+			path = cardManage;
1703
+			sourceTree = "<group>";
1704
+		};
1705
+		4030487A21540BEF00E36940 /* View */ = {
1706
+			isa = PBXGroup;
1707
+			children = (
1708
+				4030487B21540C1E00E36940 /* LVKBCardManageTableViewCell.h */,
1709
+				4030487C21540C1E00E36940 /* LVKBCardManageTableViewCell.m */,
1710
+				4030487D21540C1E00E36940 /* LVKBCardManageTableViewCell.xib */,
1711
+				403048802154113000E36940 /* LVKBAddCardManageView.h */,
1712
+				403048812154113000E36940 /* LVKBAddCardManageView.m */,
1713
+				403048832154114800E36940 /* LVKBAddCardManageView.xib */,
1670 1714
 			);
1671 1715
 			path = View;
1672 1716
 			sourceTree = "<group>";
@@ -1771,6 +1815,7 @@
1771 1815
 				1116945D20E0861D0017E4AA /* Assets.xcassets in Resources */,
1772 1816
 				119A9FE92138E0350020C78E /* LVKBHomeMessageTableViewCell.xib in Resources */,
1773 1817
 				119A9FF12138E0350020C78E /* LVKBHomeCreditCardTableViewCell.xib in Resources */,
1818
+				4030487F21540C1E00E36940 /* LVKBCardManageTableViewCell.xib in Resources */,
1774 1819
 				119A9FD12138E0350020C78E /* README.txt in Resources */,
1775 1820
 				119A9FCA2138E0350020C78E /* 2.png in Resources */,
1776 1821
 				119A9FCB2138E0350020C78E /* 3.png in Resources */,
@@ -1788,6 +1833,7 @@
1788 1833
 				119A9FC92138E0350020C78E /* 1.png in Resources */,
1789 1834
 				119AA00F2138E0350020C78E /* LVKBPersonDiscountCouponTableViewCell.xib in Resources */,
1790 1835
 				119A9FE52138E0350020C78E /* LVKBHomeCardsTableViewCell.xib in Resources */,
1836
+				403048752153FC9B00E36940 /* LVKBAddAlarmClockView.xib in Resources */,
1791 1837
 				119A9FF42138E0350020C78E /* LVKBHomeReceiptOKAlertView.xib in Resources */,
1792 1838
 			);
1793 1839
 			runOnlyForDeploymentPostprocessing = 0;
@@ -1875,6 +1921,7 @@
1875 1921
 				119A9FFC2138E0350020C78E /* LVKBHomeTableView.m in Sources */,
1876 1922
 				119AA0252138E0350020C78E /* NineLockView.m in Sources */,
1877 1923
 				11239E7820F870A2004CFA0E /* LVKBAlertController.m in Sources */,
1924
+				403048822154113000E36940 /* LVKBAddCardManageView.m in Sources */,
1878 1925
 				113B8ADB21537A7300C00D96 /* LVKBNewHomeTableViewCell.m in Sources */,
1879 1926
 				119A9FCF2138E0350020C78E /* KXAdAlertView.m in Sources */,
1880 1927
 				119AA0142138E0350020C78E /* LVKBPersonModel.m in Sources */,
@@ -1883,6 +1930,7 @@
1883 1930
 				119A9FEB2138E0350020C78E /* KXNewsModel.m in Sources */,
1884 1931
 				119A9FDB2138E0350020C78E /* LVKBBankSelectViewController.m in Sources */,
1885 1932
 				119A9FFB2138E0350020C78E /* LVKBHomeADView.m in Sources */,
1933
+				4030487E21540C1E00E36940 /* LVKBCardManageTableViewCell.m in Sources */,
1886 1934
 				119A9FEE2138E0350020C78E /* LVKBHomeCreditCardViewChild2Controller.m in Sources */,
1887 1935
 				117555592152609A0090C1B8 /* LVKBNewCardViewController.m in Sources */,
1888 1936
 				11A5475420E4FEC1008884B8 /* UIView+EasyFrame.m in Sources */,
@@ -1911,6 +1959,7 @@
1911 1959
 				119A9FD32138E0350020C78E /* LVKBHandleCardHeaderBankModel.m in Sources */,
1912 1960
 				119AA01E2138E0350020C78E /* LVKBNinePwdViewController.m in Sources */,
1913 1961
 				119AA0202138E0350020C78E /* LVKBUserViewController.m in Sources */,
1962
+				4030487921540B8800E36940 /* LVKBCardManageViewController.m in Sources */,
1914 1963
 				119A9FED2138E0350020C78E /* LVKBHomeCreditCardViewChild1Controller.m in Sources */,
1915 1964
 				119A9FDA2138E0350020C78E /* LVKBBankSelectModel.m in Sources */,
1916 1965
 				119A9FD62138E0350020C78E /* LVKBHandleCardHeaderHotBank.m in Sources */,
@@ -1942,6 +1991,7 @@
1942 1991
 				1114D60E20EB56B20094AC81 /* PublicFunction.m in Sources */,
1943 1992
 				119AA0232138E0350020C78E /* LVKBPersonTableViewCell.m in Sources */,
1944 1993
 				113B8AE32153B0E300C00D96 /* LVKBNewSignInView.m in Sources */,
1994
+				403048732153FC0C00E36940 /* LVKBAddAlarmClockView.m in Sources */,
1945 1995
 				119A9FE22138E0350020C78E /* LVKBHomeCardsChildViewController.m in Sources */,
1946 1996
 				119A9FF92138E0350020C78E /* KXNewsTableViewCell.m in Sources */,
1947 1997
 				1114D62020ECCF290094AC81 /* UIImage+Handle.m in Sources */,

+ 3 - 0
KXCardHelp.xcworkspace/contents.xcworkspacedata

@@ -2,6 +2,9 @@
2 2
 <Workspace
3 3
    version = "1.0">
4 4
    <FileRef
5
+      location = "group:/Users/chuangyejia/Desktop/companyProject/kabang/KXCardHelp/KXCardHelp/GS/NewHome/cardManage/View/LVKBAddCardManageView.xib">
6
+   </FileRef>
7
+   <FileRef
5 8
       location = "group:KXCardHelp.xcodeproj">
6 9
    </FileRef>
7 10
    <FileRef

BIN
KXCardHelp.xcworkspace/xcuserdata/chuangyejia.xcuserdatad/UserInterfaceState.xcuserstate


+ 5 - 0
KXCardHelp.xcworkspace/xcuserdata/chuangyejia.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Bucket
3
+   type = "0"
4
+   version = "2.0">
5
+</Bucket>

+ 58 - 2
KXCardHelp/GS/NewHome/VC/LVKBNewHomeViewController.m

@@ -9,8 +9,11 @@
9 9
 #import "LVKBNewHomeViewController.h"
10 10
 #import "LVKBNewHomeTableViewHeader.h"
11 11
 #import "LVKBNewHomeTableViewCell.h"
12
-
12
+#import "LVKBNewSignInView.h"
13 13
 #import "LVKBNewHomeModel.h"
14
+#import "LVKBAddAlarmClockView.h"
15
+#import "LVKBCardManageViewController.h"
16
+//
14 17
 @interface LVKBNewHomeViewController ()
15 18
 <
16 19
 UITableViewDelegate,
@@ -25,6 +28,8 @@ LVKBNewHomeTableViewHeaderDelegate
25 28
 @property(nonatomic,strong)UIImageView                *centerView;
26 29
 @property(nonatomic,strong)LVKBNewHomeTableViewHeader *tableViewHeader;
27 30
 @property(nonatomic,strong)NSMutableArray     *dataArray;
31
+@property(nonatomic,strong)LVKBNewSignInView *siginInView;
32
+@property(nonatomic,strong)LVKBAddAlarmClockView* alarmView;
28 33
 @end
29 34
 
30 35
 @implementation LVKBNewHomeViewController
@@ -41,7 +46,8 @@ LVKBNewHomeTableViewHeaderDelegate
41 46
     [self.view addSubview:self.tableView];
42 47
     [self.view addSubview:self.centerView];
43 48
     [self.view addSubview:self.signInBtn];
44
-    
49
+    [[UIApplication sharedApplication].keyWindow addSubview:self.siginInView];
50
+    [[UIApplication sharedApplication].keyWindow addSubview:self.alarmView];
45 51
 }
46 52
 
47 53
 -(void)adjustUI{
@@ -129,14 +135,42 @@ LVKBNewHomeTableViewHeaderDelegate
129 135
 
130 136
 -(void)didSelectItemByIndex:(NSInteger)index{
131 137
     NSLog(@"didSelectItemByIndex--%@",@(index));
138
+    switch (index) {
139
+        case 0:
140
+        {
141
+            
142
+        }
143
+            break;
144
+        case 1:
145
+        {
146
+            
147
+        }
148
+            break;
149
+        case 2:
150
+        {
151
+            LVKBCardManageViewController *vc=[[LVKBCardManageViewController alloc]init];
152
+            [self.navigationController pushViewController:vc animated:YES];
153
+        }
154
+            break;
155
+            
156
+        default:
157
+            break;
158
+    }
132 159
 }
133 160
 -(void)didSelectBtn{
134 161
     NSLog(@"didSelectBtn");
162
+    
163
+    [UIView  animateWithDuration:0.5f animations:^{
164
+        self.alarmView.y=0;
165
+    }];
166
+    
135 167
 }
136 168
 
137 169
 
138 170
 
139 171
 
172
+
173
+
140 174
 - (UIImageView *)topImageView{
141 175
     if (!_topImageView) {
142 176
         _topImageView=[[UIImageView alloc]init];
@@ -201,8 +235,30 @@ LVKBNewHomeTableViewHeaderDelegate
201 235
     if (!_signInBtn) {
202 236
         _signInBtn=[UIButton buttonWithType:UIButtonTypeCustom];
203 237
         [_signInBtn setImage:[UIImage imageNamed:@"gs_signIn"] forState:UIControlStateNormal];
238
+        [[_signInBtn rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(id x) {
239
+            [UIView  animateWithDuration:0.5f animations:^{
240
+                self.siginInView.y=0;
241
+            }];
242
+        }];
204 243
     }
205 244
     return _signInBtn;
206 245
 }
207 246
 
247
+-(LVKBNewSignInView *)siginInView{
248
+    if (!_siginInView) {
249
+        _siginInView=[[[NSBundle mainBundle] loadNibNamed:@"LVKBNewSignInView" owner:self options:nil] lastObject];
250
+        _siginInView.frame=CGRectMake(0, SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT);
251
+    }
252
+    return _siginInView;
253
+}
254
+
255
+-(LVKBAddAlarmClockView *)alarmView{
256
+    if (!_alarmView) {
257
+        _alarmView=[[[NSBundle mainBundle] loadNibNamed:@"LVKBAddAlarmClockView" owner:self options:nil] lastObject];
258
+        _alarmView.frame=CGRectMake(0, SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT);
259
+        _alarmView.backgroundColor=[[UIColor blackColor]colorWithAlphaComponent:0.7];
260
+    }
261
+    return _alarmView;
262
+}
263
+
208 264
 @end

+ 17 - 0
KXCardHelp/GS/NewHome/View/LVKBAddAlarmClockView.h

@@ -0,0 +1,17 @@
1
+//
2
+//  LVKBAddAlarmClockView.h
3
+//  KXCardHelp
4
+//
5
+//  Created by chuangye jia on 2018/9/21.
6
+//  Copyright © 2018年 jcymac. All rights reserved.
7
+//
8
+
9
+#import <UIKit/UIKit.h>
10
+
11
+NS_ASSUME_NONNULL_BEGIN
12
+
13
+@interface LVKBAddAlarmClockView : UIView
14
+
15
+@end
16
+
17
+NS_ASSUME_NONNULL_END

+ 131 - 0
KXCardHelp/GS/NewHome/View/LVKBAddAlarmClockView.m

@@ -0,0 +1,131 @@
1
+//
2
+//  LVKBAddAlarmClockView.m
3
+//  KXCardHelp
4
+//
5
+//  Created by chuangye jia on 2018/9/21.
6
+//  Copyright © 2018年 jcymac. All rights reserved.
7
+//
8
+
9
+#import "LVKBAddAlarmClockView.h"
10
+@interface LVKBAddAlarmClockView()
11
+<
12
+UITableViewDelegate,
13
+UITableViewDataSource
14
+>
15
+@property (weak, nonatomic) IBOutlet UIView *centerView;
16
+@property(nonatomic,strong)UITableView *tableView;
17
+
18
+@end
19
+
20
+
21
+@implementation LVKBAddAlarmClockView
22
+
23
+
24
+-(void)awakeFromNib{
25
+    [super awakeFromNib];
26
+    [self.centerView addSubview:self.tableView];
27
+}
28
+
29
+- (IBAction)closeAction:(UIButton *)sender {
30
+    [UIView animateWithDuration:0.5 animations:^{
31
+        self.y=SCREEN_HEIGHT;
32
+    }];
33
+    
34
+}
35
+
36
+- (IBAction)rightCloseAction:(UIButton *)sender {
37
+    [UIView animateWithDuration:0.5 animations:^{
38
+        self.y=SCREEN_HEIGHT;
39
+    }];
40
+}
41
+
42
+
43
+
44
+
45
+
46
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
47
+    return 3;
48
+}
49
+-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
50
+    return self.centerView.height/3;
51
+}
52
+
53
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
54
+    UITableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:@"cell"];
55
+    if (!cell) {
56
+        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"cell"];
57
+    }
58
+    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
59
+    switch (indexPath.row) {
60
+        case 0:
61
+        {
62
+            cell.textLabel.text = @"请选择每月提醒日";
63
+            
64
+        }
65
+            break;
66
+        case 1:
67
+        {
68
+           cell.textLabel.text = @"提醒时间";
69
+        }
70
+            break;
71
+        case 2:
72
+        {
73
+            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"cell1"];
74
+            cell.textLabel.text=@"提醒文字";
75
+            cell.detailTextLabel.text=@"该还款了";
76
+            cell.accessoryType = UITableViewCellAccessoryNone;
77
+        }
78
+            break;
79
+        default:
80
+            break;
81
+    }
82
+    cell.textLabel.font=[UIFont systemFontOfSize:16];
83
+    cell.textLabel.textColor=[UIColor CHColorWithHex:0x666666];
84
+    cell.selectionStyle=UITableViewCellSelectionStyleNone;
85
+    return cell;
86
+}
87
+
88
+-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
89
+    switch (indexPath.row) {
90
+        case 0:
91
+        {
92
+            
93
+        }
94
+            break;
95
+        case 1:
96
+        {
97
+            
98
+        }
99
+            break;
100
+        case 2:
101
+        {
102
+            
103
+        }
104
+            break;
105
+            
106
+        default:
107
+            break;
108
+    }
109
+    NSLog(@"didSelectRowAtIndexPath");
110
+    
111
+}
112
+
113
+
114
+-(UITableView *)tableView{
115
+    if (!_tableView) {
116
+        self.centerView.backgroundColor=[UIColor clearColor];
117
+        _tableView=[[UITableView alloc]initWithFrame:self.centerView.bounds style:UITableViewStyleGrouped];
118
+        _tableView.y=-1;
119
+        _tableView.backgroundColor=[UIColor CHColorWithHex:0xF6F7F9];
120
+        _tableView.delegate=self;
121
+        _tableView.dataSource=self;
122
+        _tableView.sectionHeaderHeight = 0;
123
+        _tableView.sectionFooterHeight = 0;
124
+        _tableView.tableHeaderView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, 0, 0.1f)];
125
+        _tableView.showsVerticalScrollIndicator = NO;
126
+        self.centerView.layer.masksToBounds=YES;
127
+    }
128
+    return _tableView;
129
+}
130
+
131
+@end

+ 89 - 0
KXCardHelp/GS/NewHome/View/LVKBAddAlarmClockView.xib

@@ -0,0 +1,89 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
3
+    <device id="retina4_7" orientation="portrait">
4
+        <adaptation id="fullscreen"/>
5
+    </device>
6
+    <dependencies>
7
+        <deployment identifier="iOS"/>
8
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
9
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10
+    </dependencies>
11
+    <objects>
12
+        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
13
+        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
14
+        <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="LVKBAddAlarmClockView">
15
+            <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
16
+            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
17
+            <subviews>
18
+                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4Me-Wp-lh2">
19
+                    <rect key="frame" x="49.5" y="144.5" width="276" height="378"/>
20
+                    <subviews>
21
+                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="添加闹钟提醒" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CWJ-3o-iNf">
22
+                            <rect key="frame" x="77" y="31" width="122.5" height="24"/>
23
+                            <fontDescription key="fontDescription" type="system" pointSize="20"/>
24
+                            <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
25
+                            <nil key="highlightedColor"/>
26
+                        </label>
27
+                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5oD-hs-CFx">
28
+                            <rect key="frame" x="18" y="85" width="240" height="173"/>
29
+                            <color key="backgroundColor" cocoaTouchSystemColor="scrollViewTexturedBackgroundColor"/>
30
+                        </view>
31
+                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3yu-nl-Xbt">
32
+                            <rect key="frame" x="33" y="303" width="210" height="50"/>
33
+                            <color key="backgroundColor" red="0.42854352680000002" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
34
+                            <constraints>
35
+                                <constraint firstAttribute="height" constant="50" id="wks-2D-rqc"/>
36
+                            </constraints>
37
+                            <state key="normal" title="保存">
38
+                                <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
39
+                            </state>
40
+                            <connections>
41
+                                <action selector="closeAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="aAL-yC-j8Y"/>
42
+                            </connections>
43
+                        </button>
44
+                    </subviews>
45
+                    <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
46
+                    <constraints>
47
+                        <constraint firstItem="3yu-nl-Xbt" firstAttribute="centerX" secondItem="4Me-Wp-lh2" secondAttribute="centerX" id="DFF-Yo-Olo"/>
48
+                        <constraint firstAttribute="height" constant="378" id="HVl-gC-VKB"/>
49
+                        <constraint firstAttribute="bottom" secondItem="5oD-hs-CFx" secondAttribute="bottom" constant="120" id="ICD-CH-zKq"/>
50
+                        <constraint firstItem="5oD-hs-CFx" firstAttribute="leading" secondItem="4Me-Wp-lh2" secondAttribute="leading" constant="18" id="M8T-fh-mZ7"/>
51
+                        <constraint firstAttribute="trailing" secondItem="5oD-hs-CFx" secondAttribute="trailing" constant="18" id="USf-4h-tYW"/>
52
+                        <constraint firstAttribute="width" constant="276" id="brx-ux-09r"/>
53
+                        <constraint firstItem="3yu-nl-Xbt" firstAttribute="leading" secondItem="4Me-Wp-lh2" secondAttribute="leading" constant="33" id="e60-s7-azp"/>
54
+                        <constraint firstItem="3yu-nl-Xbt" firstAttribute="top" secondItem="5oD-hs-CFx" secondAttribute="bottom" constant="45" id="l1S-FA-v6I"/>
55
+                        <constraint firstItem="5oD-hs-CFx" firstAttribute="top" secondItem="CWJ-3o-iNf" secondAttribute="bottom" constant="30" id="nGX-IG-co8"/>
56
+                        <constraint firstAttribute="trailing" secondItem="3yu-nl-Xbt" secondAttribute="trailing" constant="33" id="tUv-ea-ZCI"/>
57
+                        <constraint firstItem="CWJ-3o-iNf" firstAttribute="top" secondItem="4Me-Wp-lh2" secondAttribute="top" constant="31" id="viV-Jp-bya"/>
58
+                        <constraint firstItem="CWJ-3o-iNf" firstAttribute="centerX" secondItem="4Me-Wp-lh2" secondAttribute="centerX" id="yDN-Cd-Bai"/>
59
+                    </constraints>
60
+                    <userDefinedRuntimeAttributes>
61
+                        <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
62
+                            <integer key="value" value="41"/>
63
+                        </userDefinedRuntimeAttribute>
64
+                    </userDefinedRuntimeAttributes>
65
+                </view>
66
+                <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kKB-t6-aIt">
67
+                    <rect key="frame" x="325.5" y="114.5" width="30" height="30"/>
68
+                    <state key="normal" image="gs_black_close"/>
69
+                    <connections>
70
+                        <action selector="rightCloseAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="cfc-lK-14D"/>
71
+                    </connections>
72
+                </button>
73
+            </subviews>
74
+            <color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
75
+            <constraints>
76
+                <constraint firstItem="4Me-Wp-lh2" firstAttribute="top" secondItem="kKB-t6-aIt" secondAttribute="bottom" id="3SL-R2-NuG"/>
77
+                <constraint firstItem="4Me-Wp-lh2" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="4DK-Ig-gFw"/>
78
+                <constraint firstItem="kKB-t6-aIt" firstAttribute="leading" secondItem="4Me-Wp-lh2" secondAttribute="leading" constant="276" id="GJJ-me-76G"/>
79
+                <constraint firstItem="4Me-Wp-lh2" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="I9A-QD-nL6"/>
80
+            </constraints>
81
+            <connections>
82
+                <outlet property="centerView" destination="5oD-hs-CFx" id="FNy-tT-KgP"/>
83
+            </connections>
84
+        </view>
85
+    </objects>
86
+    <resources>
87
+        <image name="gs_black_close" width="30" height="30"/>
88
+    </resources>
89
+</document>

+ 1 - 1
KXCardHelp/GS/NewHome/View/LVKBNewHomeTableViewHeader.m

@@ -88,6 +88,7 @@
88 88
 -(UIButton *)addCardAlertBtn{
89 89
     if (!_addCardAlertBtn) {
90 90
         _addCardAlertBtn=[[UIButton alloc]init];
91
+        _addCardAlertBtn.layer.cornerRadius=10;
91 92
         [_addCardAlertBtn setTitle:@"+添加还款提醒" forState:UIControlStateNormal];
92 93
         _addCardAlertBtn.layer.cornerRadius=8;
93 94
         _addCardAlertBtn.layer.masksToBounds=YES;
@@ -104,7 +105,6 @@
104 105
         [_addCardAlertBtn.layer addSublayer:gradientLayer];
105 106
     }
106 107
     return _addCardAlertBtn;
107
-    
108 108
 }
109 109
 
110 110
 -(NSArray *)btnArray{

+ 13 - 0
KXCardHelp/GS/NewHome/View/LVKBNewSignInView.m

@@ -18,4 +18,17 @@
18 18
 }
19 19
 */
20 20
 
21
+-(void)awakeFromNib{
22
+    [super awakeFromNib];
23
+    self.backgroundColor=[[UIColor blackColor]colorWithAlphaComponent:0.2];
24
+}
25
+
26
+
27
+- (IBAction)closeAction:(UIButton *)sender {
28
+    [UIView animateWithDuration:0.5 animations:^{
29
+        self.y=SCREEN_HEIGHT;
30
+    }];
31
+    
32
+}
33
+
21 34
 @end

+ 36 - 2
KXCardHelp/GS/NewHome/View/LVKBNewSignInView.xib

@@ -11,20 +11,26 @@
11 11
     <objects>
12 12
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
13 13
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
14
-        <view contentMode="scaleToFill" id="iN0-l3-epB">
14
+        <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="LVKBNewSignInView">
15 15
             <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
16 16
             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
17 17
             <subviews>
18 18
                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="pRs-tL-PYs">
19 19
                     <rect key="frame" x="49.5" y="247" width="276" height="173"/>
20 20
                     <subviews>
21
-                        <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="jvw-eA-Bzj">
21
+                        <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gs_signIn_top" translatesAutoresizingMaskIntoConstraints="NO" id="jvw-eA-Bzj">
22 22
                             <rect key="frame" x="47.5" y="-108" width="181" height="140"/>
23 23
                             <constraints>
24 24
                                 <constraint firstAttribute="height" constant="140" id="ZHL-aV-BIb"/>
25 25
                                 <constraint firstAttribute="width" constant="181" id="yCr-tX-LGV"/>
26 26
                             </constraints>
27 27
                         </imageView>
28
+                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="12" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p8u-sV-TrR">
29
+                            <rect key="frame" x="152.5" y="59.5" width="31.5" height="36"/>
30
+                            <fontDescription key="fontDescription" type="system" pointSize="30"/>
31
+                            <nil key="textColor"/>
32
+                            <nil key="highlightedColor"/>
33
+                        </label>
28 34
                     </subviews>
29 35
                     <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
30 36
                     <constraints>
@@ -33,13 +39,41 @@
33 39
                         <constraint firstItem="jvw-eA-Bzj" firstAttribute="top" secondItem="pRs-tL-PYs" secondAttribute="top" constant="-108" id="WBf-9W-1ea"/>
34 40
                         <constraint firstAttribute="width" constant="276" id="h3W-8U-RMt"/>
35 41
                     </constraints>
42
+                    <userDefinedRuntimeAttributes>
43
+                        <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
44
+                            <integer key="value" value="41"/>
45
+                        </userDefinedRuntimeAttribute>
46
+                    </userDefinedRuntimeAttributes>
36 47
                 </view>
48
+                <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="KVO-7N-fVc">
49
+                    <rect key="frame" x="172.5" y="460" width="30" height="30"/>
50
+                    <state key="normal" image="gs_black_close"/>
51
+                    <connections>
52
+                        <action selector="closeAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="7E8-zM-qsJ"/>
53
+                    </connections>
54
+                </button>
55
+                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="已连续签到          天" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="st7-8f-jqG">
56
+                    <rect key="frame" x="121.5" y="324.5" width="132" height="18"/>
57
+                    <fontDescription key="fontDescription" type="system" pointSize="15"/>
58
+                    <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
59
+                    <nil key="highlightedColor"/>
60
+                </label>
37 61
             </subviews>
38 62
             <color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
39 63
             <constraints>
64
+                <constraint firstItem="p8u-sV-TrR" firstAttribute="bottom" secondItem="st7-8f-jqG" secondAttribute="bottom" id="0PO-Np-9ID"/>
65
+                <constraint firstItem="KVO-7N-fVc" firstAttribute="top" secondItem="pRs-tL-PYs" secondAttribute="bottom" constant="40" id="7Zy-2e-80R"/>
66
+                <constraint firstItem="p8u-sV-TrR" firstAttribute="trailing" secondItem="st7-8f-jqG" secondAttribute="trailing" constant="-20" id="Bfr-xP-8Bd"/>
67
+                <constraint firstItem="KVO-7N-fVc" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="Kvc-rq-eTW"/>
68
+                <constraint firstItem="st7-8f-jqG" firstAttribute="centerX" secondItem="pRs-tL-PYs" secondAttribute="centerX" id="LtY-Eh-lSZ"/>
40 69
                 <constraint firstItem="pRs-tL-PYs" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="Nsy-Se-MXi"/>
41 70
                 <constraint firstItem="pRs-tL-PYs" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="QkI-DF-HME"/>
71
+                <constraint firstItem="st7-8f-jqG" firstAttribute="centerY" secondItem="pRs-tL-PYs" secondAttribute="centerY" id="aQG-64-nXh"/>
42 72
             </constraints>
43 73
         </view>
44 74
     </objects>
75
+    <resources>
76
+        <image name="gs_black_close" width="30" height="30"/>
77
+        <image name="gs_signIn_top" width="181" height="141"/>
78
+    </resources>
45 79
 </document>

+ 17 - 0
KXCardHelp/GS/NewHome/cardManage/LVKBCardManageViewController.h

@@ -0,0 +1,17 @@
1
+//
2
+//  LVKBCardManageViewController.h
3
+//  KXCardHelp
4
+//
5
+//  Created by chuangye jia on 2018/9/21.
6
+//  Copyright © 2018年 jcymac. All rights reserved.
7
+//
8
+
9
+#import "LVKBBaseViewController.h"
10
+
11
+NS_ASSUME_NONNULL_BEGIN
12
+
13
+@interface LVKBCardManageViewController : LVKBBaseViewController
14
+
15
+@end
16
+
17
+NS_ASSUME_NONNULL_END

+ 123 - 0
KXCardHelp/GS/NewHome/cardManage/LVKBCardManageViewController.m

@@ -0,0 +1,123 @@
1
+//
2
+//  LVKBCardManageViewController.m
3
+//  KXCardHelp
4
+//
5
+//  Created by chuangye jia on 2018/9/21.
6
+//  Copyright © 2018年 jcymac. All rights reserved.
7
+//
8
+
9
+#import "LVKBCardManageViewController.h"
10
+#import "LVKBCardManageTableViewCell.h"
11
+
12
+#import "LVKBAddCardManageView.h"
13
+@interface LVKBCardManageViewController ()
14
+<
15
+UITableViewDelegate,
16
+UITableViewDataSource
17
+>
18
+@property(nonatomic,strong) UIButton       *createCard;
19
+@property(nonatomic,strong) UITableView    *tableView;
20
+@property(nonatomic,strong) NSMutableArray *dataArray;
21
+@property(nonatomic,strong) LVKBAddCardManageView *addView;
22
+@end
23
+
24
+@implementation LVKBCardManageViewController
25
+
26
+- (void)viewDidLoad {
27
+    [super viewDidLoad];
28
+    [self.navigationBar setNavTitle:@"信用卡管理"];
29
+    self.navigationBar.showNavigationBarBottomLine=YES;
30
+    [self backBtnShow];
31
+    [self initUI];
32
+    [self adjustUI];
33
+}
34
+
35
+-(void)initUI{
36
+    [self.view addSubview:self.createCard];
37
+    [self.view addSubview:self.tableView];
38
+    [[UIApplication sharedApplication].keyWindow addSubview:self.addView];
39
+    
40
+}
41
+
42
+-(void)adjustUI{
43
+    [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
44
+        make.left.right.mas_equalTo(0);
45
+        make.bottom.mas_equalTo(0);
46
+        make.top.equalTo(self.createCard.mas_bottom).offset(10);
47
+    }];
48
+}
49
+
50
+
51
+
52
+#pragma mark -代理
53
+
54
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
55
+    return self.dataArray.count+1;
56
+}
57
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
58
+    LVKBCardManageTableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:@"cell"];
59
+    cell.backgroundColor=self.view.backgroundColor;
60
+    return cell;
61
+}
62
+- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
63
+    return 65;
64
+}
65
+
66
+
67
+
68
+
69
+
70
+#pragma mark -懒加载
71
+-(UIButton *)createCard{
72
+    if (!_createCard) {
73
+        _createCard=[UIButton buttonWithType:UIButtonTypeCustom];
74
+        [_createCard setTitle:@"+添加还款记录" forState:UIControlStateNormal];
75
+        [_createCard setTitleColor:[UIColor baseColor] forState:UIControlStateNormal];
76
+        _createCard.titleLabel.font=[UIFont systemFontOfSize:15];
77
+        _createCard.backgroundColor=[UIColor whiteColor];
78
+        _createCard.layer.cornerRadius=8;
79
+        _createCard.layer.masksToBounds=YES;
80
+        [[_createCard rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(id x) {
81
+            //            [self requestCheckIdentityStatus];
82
+            [UIView animateWithDuration:0.5 animations:^{
83
+               self.addView.y=0;
84
+            }];
85
+            
86
+            
87
+        }];
88
+        _createCard.frame=CGRectMake(FITSIZE(12), NavBarHeight+10, SCREEN_WIDTH-2*FITSIZE(12), 46);
89
+    }
90
+    return _createCard;
91
+}
92
+
93
+
94
+-(UITableView *)tableView{
95
+    if (!_tableView) {
96
+        _tableView=[[UITableView alloc]init];
97
+        _tableView.delegate=self;
98
+        _tableView.dataSource=self;
99
+        _tableView.backgroundColor=self.view.backgroundColor;
100
+        _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
101
+        [_tableView registerNib:[UINib nibWithNibName:@"LVKBCardManageTableViewCell" bundle:nil] forCellReuseIdentifier:@"cell"];
102
+    }
103
+    return _tableView;
104
+}
105
+
106
+-(NSMutableArray *)dataArray{
107
+    if (!_dataArray) {
108
+        _dataArray=[NSMutableArray array];
109
+    }
110
+    return _dataArray;
111
+}
112
+
113
+
114
+-(LVKBAddCardManageView *)addView{
115
+    if (!_addView) {
116
+        _addView=[[[NSBundle mainBundle] loadNibNamed:@"LVKBAddCardManageView" owner:self options:nil] lastObject];
117
+        _addView.frame=CGRectMake(0, SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT);
118
+        _addView.backgroundColor=[[UIColor blackColor]colorWithAlphaComponent:0.7];
119
+    }
120
+    return _addView;
121
+}
122
+
123
+@end

+ 17 - 0
KXCardHelp/GS/NewHome/cardManage/View/LVKBAddCardManageView.h

@@ -0,0 +1,17 @@
1
+//
2
+//  LVKBAddCardManageView.h
3
+//  KXCardHelp
4
+//
5
+//  Created by chuangye jia on 2018/9/21.
6
+//  Copyright © 2018年 jcymac. All rights reserved.
7
+//
8
+
9
+#import <UIKit/UIKit.h>
10
+
11
+NS_ASSUME_NONNULL_BEGIN
12
+
13
+@interface LVKBAddCardManageView : UIView
14
+
15
+@end
16
+
17
+NS_ASSUME_NONNULL_END

+ 26 - 0
KXCardHelp/GS/NewHome/cardManage/View/LVKBAddCardManageView.m

@@ -0,0 +1,26 @@
1
+//
2
+//  LVKBAddCardManageView.m
3
+//  KXCardHelp
4
+//
5
+//  Created by chuangye jia on 2018/9/21.
6
+//  Copyright © 2018年 jcymac. All rights reserved.
7
+//
8
+
9
+#import "LVKBAddCardManageView.h"
10
+
11
+@implementation LVKBAddCardManageView
12
+
13
+/*
14
+// Only override drawRect: if you perform custom drawing.
15
+// An empty implementation adversely affects performance during animation.
16
+- (void)drawRect:(CGRect)rect {
17
+    // Drawing code
18
+}
19
+*/
20
+- (IBAction)rightCloseAction:(UIButton *)sender {
21
+    [UIView animateWithDuration:0.5 animations:^{
22
+        self.y=SCREEN_HEIGHT;
23
+    }];
24
+}
25
+
26
+@end

+ 128 - 0
KXCardHelp/GS/NewHome/cardManage/View/LVKBAddCardManageView.xib

@@ -0,0 +1,128 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
+    <device id="retina4_7" orientation="portrait">
4
+        <adaptation id="fullscreen"/>
5
+    </device>
6
+    <dependencies>
7
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
8
+        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
9
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10
+    </dependencies>
11
+    <objects>
12
+        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
13
+        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
14
+        <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="LVKBAddCardManageView">
15
+            <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
16
+            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
17
+            <subviews>
18
+                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="EqW-7Y-RdW">
19
+                    <rect key="frame" x="49.5" y="187" width="276" height="313"/>
20
+                    <subviews>
21
+                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="添加银行卡" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DYQ-RC-Z23">
22
+                            <rect key="frame" x="87" y="31" width="102" height="24"/>
23
+                            <fontDescription key="fontDescription" type="system" pointSize="20"/>
24
+                            <nil key="textColor"/>
25
+                            <nil key="highlightedColor"/>
26
+                        </label>
27
+                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="添加银行卡" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xbz-Jj-V0h">
28
+                            <rect key="frame" x="23" y="84" width="82" height="22"/>
29
+                            <fontDescription key="fontDescription" type="system" pointSize="16"/>
30
+                            <color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
31
+                            <nil key="highlightedColor"/>
32
+                        </label>
33
+                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fKL-XO-YZX">
34
+                            <rect key="frame" x="23" y="126" width="230" height="1"/>
35
+                            <color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
36
+                            <constraints>
37
+                                <constraint firstAttribute="height" constant="1" id="PSx-1h-4yU"/>
38
+                            </constraints>
39
+                        </view>
40
+                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kBE-aT-jjK">
41
+                            <rect key="frame" x="107" y="84" width="146" height="22"/>
42
+                            <state key="normal" image="right_gray"/>
43
+                        </button>
44
+                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="是否按期还款" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0In-GA-Igw">
45
+                            <rect key="frame" x="23" y="147" width="98" height="20"/>
46
+                            <fontDescription key="fontDescription" type="system" pointSize="16"/>
47
+                            <color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
48
+                            <nil key="highlightedColor"/>
49
+                        </label>
50
+                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eZU-HJ-DQI">
51
+                            <rect key="frame" x="23" y="187" width="230" height="1"/>
52
+                            <color key="backgroundColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
53
+                            <constraints>
54
+                                <constraint firstAttribute="height" constant="1" id="Mdv-vl-X2w"/>
55
+                            </constraints>
56
+                        </view>
57
+                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IuU-ob-ezZ">
58
+                            <rect key="frame" x="213" y="146" width="40" height="22"/>
59
+                            <state key="normal" image="gs_addCard_no"/>
60
+                        </button>
61
+                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Dml-dX-0d0">
62
+                            <rect key="frame" x="33" y="220" width="210" height="50"/>
63
+                            <color key="backgroundColor" red="0.5568627451" green="0.50196078430000002" blue="0.97647058819999999" alpha="1" colorSpace="calibratedRGB"/>
64
+                            <constraints>
65
+                                <constraint firstAttribute="height" constant="50" id="hmA-Xl-Ant"/>
66
+                            </constraints>
67
+                            <state key="normal" title="保存">
68
+                                <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
69
+                            </state>
70
+                        </button>
71
+                    </subviews>
72
+                    <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
73
+                    <constraints>
74
+                        <constraint firstItem="eZU-HJ-DQI" firstAttribute="leading" secondItem="fKL-XO-YZX" secondAttribute="leading" id="5M4-4b-yEV"/>
75
+                        <constraint firstItem="kBE-aT-jjK" firstAttribute="centerY" secondItem="xbz-Jj-V0h" secondAttribute="centerY" id="Bow-gG-2H5"/>
76
+                        <constraint firstItem="DYQ-RC-Z23" firstAttribute="top" secondItem="EqW-7Y-RdW" secondAttribute="top" constant="31" id="Drd-eC-aPB"/>
77
+                        <constraint firstItem="xbz-Jj-V0h" firstAttribute="leading" secondItem="EqW-7Y-RdW" secondAttribute="leading" constant="23" id="FBr-QF-ch8"/>
78
+                        <constraint firstAttribute="height" constant="313" id="Gv6-oF-yhj"/>
79
+                        <constraint firstItem="0In-GA-Igw" firstAttribute="top" secondItem="fKL-XO-YZX" secondAttribute="bottom" constant="20" id="MGN-km-id8"/>
80
+                        <constraint firstItem="eZU-HJ-DQI" firstAttribute="top" secondItem="0In-GA-Igw" secondAttribute="bottom" constant="20" id="ObI-iP-lsL"/>
81
+                        <constraint firstItem="kBE-aT-jjK" firstAttribute="leading" secondItem="xbz-Jj-V0h" secondAttribute="trailing" constant="2" id="Sc7-cF-jpg"/>
82
+                        <constraint firstAttribute="bottom" secondItem="Dml-dX-0d0" secondAttribute="bottom" constant="43" id="Uqf-Ec-bDP"/>
83
+                        <constraint firstItem="eZU-HJ-DQI" firstAttribute="trailing" secondItem="fKL-XO-YZX" secondAttribute="trailing" id="Vrs-sx-ZV4"/>
84
+                        <constraint firstItem="0In-GA-Igw" firstAttribute="leading" secondItem="EqW-7Y-RdW" secondAttribute="leading" constant="23" id="W4q-Xu-1MT"/>
85
+                        <constraint firstItem="fKL-XO-YZX" firstAttribute="top" secondItem="xbz-Jj-V0h" secondAttribute="bottom" constant="20" id="WaU-7r-fAK"/>
86
+                        <constraint firstAttribute="width" constant="276" id="Xe3-5x-Vdy"/>
87
+                        <constraint firstItem="DYQ-RC-Z23" firstAttribute="centerX" secondItem="EqW-7Y-RdW" secondAttribute="centerX" id="YSz-d4-vUA"/>
88
+                        <constraint firstAttribute="trailing" secondItem="Dml-dX-0d0" secondAttribute="trailing" constant="33" id="Yqq-6y-R9I"/>
89
+                        <constraint firstItem="IuU-ob-ezZ" firstAttribute="centerY" secondItem="0In-GA-Igw" secondAttribute="centerY" id="bEg-SO-hqT"/>
90
+                        <constraint firstAttribute="trailing" secondItem="fKL-XO-YZX" secondAttribute="trailing" constant="23" id="cuy-bg-Bro"/>
91
+                        <constraint firstItem="xbz-Jj-V0h" firstAttribute="top" secondItem="EqW-7Y-RdW" secondAttribute="top" constant="84" id="gnA-HT-9JA"/>
92
+                        <constraint firstItem="Dml-dX-0d0" firstAttribute="leading" secondItem="EqW-7Y-RdW" secondAttribute="leading" constant="33" id="hq7-SC-e87"/>
93
+                        <constraint firstItem="IuU-ob-ezZ" firstAttribute="trailing" secondItem="eZU-HJ-DQI" secondAttribute="trailing" id="k9X-Eo-XEP"/>
94
+                        <constraint firstItem="fKL-XO-YZX" firstAttribute="leading" secondItem="xbz-Jj-V0h" secondAttribute="leading" id="mzt-Mw-trJ"/>
95
+                        <constraint firstItem="kBE-aT-jjK" firstAttribute="height" secondItem="xbz-Jj-V0h" secondAttribute="height" id="ton-VO-7Gs"/>
96
+                        <constraint firstItem="kBE-aT-jjK" firstAttribute="trailing" secondItem="fKL-XO-YZX" secondAttribute="trailing" id="w2b-rD-IKh"/>
97
+                    </constraints>
98
+                    <userDefinedRuntimeAttributes>
99
+                        <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
100
+                            <integer key="value" value="41"/>
101
+                        </userDefinedRuntimeAttribute>
102
+                    </userDefinedRuntimeAttributes>
103
+                </view>
104
+                <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YJI-7E-BGu">
105
+                    <rect key="frame" x="325.5" y="157" width="30" height="30"/>
106
+                    <state key="normal" image="gs_black_close"/>
107
+                    <connections>
108
+                        <action selector="rightCloseAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="gzJ-q1-Zv8"/>
109
+                    </connections>
110
+                </button>
111
+            </subviews>
112
+            <color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
113
+            <constraints>
114
+                <constraint firstItem="YJI-7E-BGu" firstAttribute="leading" secondItem="EqW-7Y-RdW" secondAttribute="leading" constant="276" id="6Sn-iQ-2Ry"/>
115
+                <constraint firstItem="EqW-7Y-RdW" firstAttribute="centerY" secondItem="vUN-kp-3ea" secondAttribute="centerY" id="d52-Ib-zT9"/>
116
+                <constraint firstItem="EqW-7Y-RdW" firstAttribute="top" secondItem="YJI-7E-BGu" secondAttribute="bottom" id="f3D-Vc-s4o"/>
117
+                <constraint firstItem="EqW-7Y-RdW" firstAttribute="centerX" secondItem="vUN-kp-3ea" secondAttribute="centerX" id="rKq-kE-hIr"/>
118
+            </constraints>
119
+            <viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
120
+            <point key="canvasLocation" x="138.40000000000001" y="152.47376311844079"/>
121
+        </view>
122
+    </objects>
123
+    <resources>
124
+        <image name="gs_addCard_no" width="40" height="22"/>
125
+        <image name="gs_black_close" width="30" height="30"/>
126
+        <image name="right_gray" width="20" height="20"/>
127
+    </resources>
128
+</document>

+ 17 - 0
KXCardHelp/GS/NewHome/cardManage/View/LVKBCardManageTableViewCell.h

@@ -0,0 +1,17 @@
1
+//
2
+//  LVKBCardManageTableViewCell.h
3
+//  KXCardHelp
4
+//
5
+//  Created by chuangye jia on 2018/9/21.
6
+//  Copyright © 2018年 jcymac. All rights reserved.
7
+//
8
+
9
+#import <UIKit/UIKit.h>
10
+
11
+NS_ASSUME_NONNULL_BEGIN
12
+
13
+@interface LVKBCardManageTableViewCell : UITableViewCell
14
+
15
+@end
16
+
17
+NS_ASSUME_NONNULL_END

+ 24 - 0
KXCardHelp/GS/NewHome/cardManage/View/LVKBCardManageTableViewCell.m

@@ -0,0 +1,24 @@
1
+//
2
+//  LVKBCardManageTableViewCell.m
3
+//  KXCardHelp
4
+//
5
+//  Created by chuangye jia on 2018/9/21.
6
+//  Copyright © 2018年 jcymac. All rights reserved.
7
+//
8
+
9
+#import "LVKBCardManageTableViewCell.h"
10
+
11
+@implementation LVKBCardManageTableViewCell
12
+
13
+- (void)awakeFromNib {
14
+    [super awakeFromNib];
15
+    // Initialization code
16
+}
17
+
18
+- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
19
+    [super setSelected:selected animated:animated];
20
+
21
+    // Configure the view for the selected state
22
+}
23
+
24
+@end

+ 76 - 0
KXCardHelp/GS/NewHome/cardManage/View/LVKBCardManageTableViewCell.xib

@@ -0,0 +1,76 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
3
+    <device id="retina4_7" orientation="portrait">
4
+        <adaptation id="fullscreen"/>
5
+    </device>
6
+    <dependencies>
7
+        <deployment identifier="iOS"/>
8
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
9
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10
+    </dependencies>
11
+    <objects>
12
+        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
13
+        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
14
+        <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="LVKBCardManageTableViewCell">
15
+            <rect key="frame" x="0.0" y="0.0" width="320" height="65"/>
16
+            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
17
+            <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
18
+                <rect key="frame" x="0.0" y="0.0" width="320" height="64.5"/>
19
+                <autoresizingMask key="autoresizingMask"/>
20
+                <subviews>
21
+                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-月--日" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Dnd-2Q-hue">
22
+                        <rect key="frame" x="12" y="45" width="54.5" height="19.5"/>
23
+                        <fontDescription key="fontDescription" type="system" pointSize="16"/>
24
+                        <color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
25
+                        <nil key="highlightedColor"/>
26
+                    </label>
27
+                    <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="by1-QY-uDk">
28
+                        <rect key="frame" x="93" y="48" width="14" height="14"/>
29
+                        <color key="backgroundColor" red="0.55686274509803924" green="0.50196078431372548" blue="0.97647058823529409" alpha="1" colorSpace="calibratedRGB"/>
30
+                        <constraints>
31
+                            <constraint firstAttribute="height" constant="14" id="SN1-eZ-ft9"/>
32
+                            <constraint firstAttribute="width" constant="14" id="ZWa-sv-z3N"/>
33
+                        </constraints>
34
+                        <userDefinedRuntimeAttributes>
35
+                            <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
36
+                                <integer key="value" value="7"/>
37
+                            </userDefinedRuntimeAttribute>
38
+                        </userDefinedRuntimeAttributes>
39
+                    </view>
40
+                    <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="C3K-io-hel">
41
+                        <rect key="frame" x="99.5" y="0.0" width="1" height="64.5"/>
42
+                        <constraints>
43
+                            <constraint firstAttribute="width" constant="1" id="ysD-Of-BZb"/>
44
+                        </constraints>
45
+                    </imageView>
46
+                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="已逾期" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bLn-fG-TZl">
47
+                        <rect key="frame" x="127" y="45" width="49" height="19.5"/>
48
+                        <fontDescription key="fontDescription" type="system" pointSize="16"/>
49
+                        <color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
50
+                        <nil key="highlightedColor"/>
51
+                    </label>
52
+                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="(已超出您设定的还款日期)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="W4B-Cf-Jqp">
53
+                        <rect key="frame" x="183" y="47.5" width="144" height="14.5"/>
54
+                        <fontDescription key="fontDescription" type="system" pointSize="12"/>
55
+                        <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
56
+                        <nil key="highlightedColor"/>
57
+                    </label>
58
+                </subviews>
59
+                <constraints>
60
+                    <constraint firstItem="W4B-Cf-Jqp" firstAttribute="leading" secondItem="bLn-fG-TZl" secondAttribute="trailing" constant="7" id="26d-TW-9Qv"/>
61
+                    <constraint firstItem="bLn-fG-TZl" firstAttribute="centerY" secondItem="Dnd-2Q-hue" secondAttribute="centerY" id="95z-Xh-xEc"/>
62
+                    <constraint firstItem="by1-QY-uDk" firstAttribute="centerY" secondItem="Dnd-2Q-hue" secondAttribute="centerY" id="9D4-2s-Amk"/>
63
+                    <constraint firstItem="C3K-io-hel" firstAttribute="centerX" secondItem="by1-QY-uDk" secondAttribute="centerX" id="HhO-75-rOP"/>
64
+                    <constraint firstItem="by1-QY-uDk" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="93" id="MnQ-Nr-bVz"/>
65
+                    <constraint firstItem="W4B-Cf-Jqp" firstAttribute="centerY" secondItem="bLn-fG-TZl" secondAttribute="centerY" id="RRe-tJ-AxX"/>
66
+                    <constraint firstAttribute="bottom" secondItem="Dnd-2Q-hue" secondAttribute="bottom" id="gVI-6M-HaD"/>
67
+                    <constraint firstItem="Dnd-2Q-hue" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="12" id="jhN-7C-2Sl"/>
68
+                    <constraint firstAttribute="bottom" secondItem="C3K-io-hel" secondAttribute="bottom" id="odl-8n-MVO"/>
69
+                    <constraint firstItem="bLn-fG-TZl" firstAttribute="leading" secondItem="by1-QY-uDk" secondAttribute="trailing" constant="20" id="qIu-2T-ugQ"/>
70
+                    <constraint firstItem="C3K-io-hel" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="rrW-qn-NRW"/>
71
+                </constraints>
72
+            </tableViewCellContentView>
73
+            <point key="canvasLocation" x="52.799999999999997" y="48.125937031484263"/>
74
+        </tableViewCell>
75
+    </objects>
76
+</document>