jikaipeng преди 4 години
родител
ревизия
1532df6485
променени са 39 файла, в които са добавени 700 реда и са изтрити 21 реда
  1. BIN
      .DS_Store
  2. 25 0
      MMProject.xcodeproj/project.pbxproj
  3. 1 1
      MMProject.xcodeproj/xcuserdata/liuxueli.xcuserdatad/xcschemes/xcschememanagement.plist
  4. BIN
      MMProject.xcworkspace/xcuserdata/liuxueli.xcuserdatad/UserInterfaceState.xcuserstate
  5. 1 1
      MMProject/Code/Mine/Controller/MMMineHeadView.h
  6. 16 4
      MMProject/Code/Mine/Controller/MMMineHeadView.m
  7. 29 5
      MMProject/Code/Mine/Controller/MMMineViewController.m
  8. 19 0
      MMProject/Code/Mine/Controller/MMSearchListCell.h
  9. 44 0
      MMProject/Code/Mine/Controller/MMSearchListCell.m
  10. 17 0
      MMProject/Code/Mine/Controller/MMShareViewController.h
  11. 150 0
      MMProject/Code/Mine/Controller/MMShareViewController.m
  12. 25 0
      MMProject/Code/Mine/Controller/MMYearAccountVC.m
  13. 19 0
      MMProject/Code/Mine/View/MMDatePickView.h
  14. 135 0
      MMProject/Code/Mine/View/MMDatePickView.m
  15. 80 9
      MMProject/Code/Search/Controller/MMSearchViewController.m
  16. 2 0
      MMProject/pch&&Header/PrefixHeader.pch
  17. 23 0
      MMProject/resource/Assets.xcassets/mine/head_nologin.imageset/Contents.json
  18. BIN
      MMProject/resource/Assets.xcassets/mine/head_nologin.imageset/头像.png
  19. BIN
      MMProject/resource/Assets.xcassets/mine/head_nologin.imageset/头像@2x.png
  20. BIN
      MMProject/resource/Assets.xcassets/mine/head_nologin.imageset/头像@3x.png
  21. BIN
      MMProject/resource/Assets.xcassets/mine/integor_QR_code.imageset/9891565334668_.pic.jpg
  22. 21 0
      MMProject/resource/Assets.xcassets/mine/integor_QR_code.imageset/Contents.json
  23. 23 0
      MMProject/resource/Assets.xcassets/mine/integor_download_image.imageset/Contents.json
  24. BIN
      MMProject/resource/Assets.xcassets/mine/integor_download_image.imageset/下载 .png
  25. BIN
      MMProject/resource/Assets.xcassets/mine/integor_download_image.imageset/下载 @2x.png
  26. BIN
      MMProject/resource/Assets.xcassets/mine/integor_download_image.imageset/下载 @3x.png
  27. BIN
      MMProject/resource/Assets.xcassets/mine/integral_share_back.imageset/871eac81a56a824a31223343b90e0494 + u=2537627520,3119182571&fm=27&gp=0 copy + 你长得可真吓人啊 + Group 3 Copy + Group 5 + 未标题-1 copy 2 + 金牛记账 copy Mask Copy.png
  28. BIN
      MMProject/resource/Assets.xcassets/mine/integral_share_back.imageset/871eac81a56a824a31223343b90e0494 + u=2537627520,3119182571&fm=27&gp=0 copy + 你长得可真吓人啊 + Group 3 Copy + Group 5 + 未标题-1 copy 2 + 金牛记账 copy Mask Copy@2x.png
  29. BIN
      MMProject/resource/Assets.xcassets/mine/integral_share_back.imageset/871eac81a56a824a31223343b90e0494 + u=2537627520,3119182571&fm=27&gp=0 copy + 你长得可真吓人啊 + Group 3 Copy + Group 5 + 未标题-1 copy 2 + 金牛记账 copy Mask Copy@3x.png
  30. 23 0
      MMProject/resource/Assets.xcassets/mine/integral_share_back.imageset/Contents.json
  31. 23 0
      MMProject/resource/Assets.xcassets/mine/integral_weixin.imageset/Contents.json
  32. BIN
      MMProject/resource/Assets.xcassets/mine/integral_weixin.imageset/微信.png
  33. BIN
      MMProject/resource/Assets.xcassets/mine/integral_weixin.imageset/微信@2x.png
  34. BIN
      MMProject/resource/Assets.xcassets/mine/integral_weixin.imageset/微信@3x.png
  35. 23 0
      MMProject/resource/Assets.xcassets/mine/integral_weixin_timeLine.imageset/Contents.json
  36. BIN
      MMProject/resource/Assets.xcassets/mine/integral_weixin_timeLine.imageset/朋友圈 .png
  37. BIN
      MMProject/resource/Assets.xcassets/mine/integral_weixin_timeLine.imageset/朋友圈 @2x.png
  38. BIN
      MMProject/resource/Assets.xcassets/mine/integral_weixin_timeLine.imageset/朋友圈 @3x.png
  39. 1 1
      Pods/Pods.xcodeproj/xcuserdata/liuxueli.xcuserdatad/xcschemes/xcschememanagement.plist

BIN
.DS_Store


+ 25 - 0
MMProject.xcodeproj/project.pbxproj

@@ -42,6 +42,10 @@
42 42
 		762442F3238D2FA400BD1709 /* MMBillSearchViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 762442F2238D2FA400BD1709 /* MMBillSearchViewController.m */; };
43 43
 		762442F6238D33DC00BD1709 /* MMSearchTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 762442F5238D33DC00BD1709 /* MMSearchTopView.m */; };
44 44
 		762442F9238D377B00BD1709 /* MMBillSearchTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 762442F8238D377B00BD1709 /* MMBillSearchTableViewCell.m */; };
45
+		1AC8A178238CC3060055C01F /* MMDatePickView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AC8A177238CC3060055C01F /* MMDatePickView.m */; };
46
+		1AC8A17B238CD7620055C01F /* MMShareViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AC8A17A238CD7620055C01F /* MMShareViewController.m */; };
47
+		1AC8A17C238CF6410055C01F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 768EE07B23865FD100591F71 /* Assets.xcassets */; };
48
+		1AC8A17F238D08EE0055C01F /* MMSearchListCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AC8A17E238D08EE0055C01F /* MMSearchListCell.m */; };
45 49
 		767177732386921000817ECC /* UIViewController+MMExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 767177722386921000817ECC /* UIViewController+MMExtension.m */; };
46 50
 		76717776238695A200817ECC /* MMFMDBHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 76717775238695A200817ECC /* MMFMDBHelper.m */; };
47 51
 		767177832386A0F100817ECC /* YDFMDB.m in Sources */ = {isa = PBXBuildFile; fileRef = 767177782386A0F100817ECC /* YDFMDB.m */; };
@@ -177,6 +181,12 @@
177 181
 		1AA6AE7D2387C799000A3ABA /* MMAboutViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MMAboutViewController.m; sourceTree = "<group>"; };
178 182
 		1AA6AE7F2387CA75000A3ABA /* MMFeedBackVC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MMFeedBackVC.h; sourceTree = "<group>"; };
179 183
 		1AA6AE802387CA75000A3ABA /* MMFeedBackVC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MMFeedBackVC.m; sourceTree = "<group>"; };
184
+		1AC8A176238CC3060055C01F /* MMDatePickView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MMDatePickView.h; sourceTree = "<group>"; };
185
+		1AC8A177238CC3060055C01F /* MMDatePickView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MMDatePickView.m; sourceTree = "<group>"; };
186
+		1AC8A179238CD7620055C01F /* MMShareViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MMShareViewController.h; sourceTree = "<group>"; };
187
+		1AC8A17A238CD7620055C01F /* MMShareViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MMShareViewController.m; sourceTree = "<group>"; };
188
+		1AC8A17D238D08EE0055C01F /* MMSearchListCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MMSearchListCell.h; path = MMProject/Code/Mine/Controller/MMSearchListCell.h; sourceTree = SOURCE_ROOT; };
189
+		1AC8A17E238D08EE0055C01F /* MMSearchListCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MMSearchListCell.m; path = MMProject/Code/Mine/Controller/MMSearchListCell.m; sourceTree = SOURCE_ROOT; };
180 190
 		1B1822B680603CD66050454B /* Pods-MMProject.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MMProject.release.xcconfig"; path = "Target Support Files/Pods-MMProject/Pods-MMProject.release.xcconfig"; sourceTree = "<group>"; };
181 191
 		25475C13AC0E0DE8D0C5E1E7 /* libPods-MMProject.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-MMProject.a"; sourceTree = BUILT_PRODUCTS_DIR; };
182 192
 		65B77D8791BB22529AD7918D /* Pods-MMProject.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MMProject.debug.xcconfig"; path = "Target Support Files/Pods-MMProject/Pods-MMProject.debug.xcconfig"; sourceTree = "<group>"; };
@@ -897,6 +907,8 @@
897 907
 		768EE11E238687F000591F71 /* View */ = {
898 908
 			isa = PBXGroup;
899 909
 			children = (
910
+				1AC8A17D238D08EE0055C01F /* MMSearchListCell.h */,
911
+				1AC8A17E238D08EE0055C01F /* MMSearchListCell.m */,
900 912
 			);
901 913
 			path = View;
902 914
 			sourceTree = "<group>";
@@ -934,6 +946,8 @@
934 946
 				1A97712A238BD47B00A23B06 /* MMExportViewController.m */,
935 947
 				1A97712C238BD48900A23B06 /* MMYearAccountVC.h */,
936 948
 				1A97712D238BD48900A23B06 /* MMYearAccountVC.m */,
949
+				1AC8A179238CD7620055C01F /* MMShareViewController.h */,
950
+				1AC8A17A238CD7620055C01F /* MMShareViewController.m */,
937 951
 			);
938 952
 			path = Controller;
939 953
 			sourceTree = "<group>";
@@ -953,6 +967,8 @@
953 967
 				1AA6AE7423877D13000A3ABA /* MMMineHeadView.m */,
954 968
 				1A97712F238BDB6000A23B06 /* MMAccountListCell.h */,
955 969
 				1A977130238BDB6000A23B06 /* MMAccountListCell.m */,
970
+				1AC8A176238CC3060055C01F /* MMDatePickView.h */,
971
+				1AC8A177238CC3060055C01F /* MMDatePickView.m */,
956 972
 			);
957 973
 			path = View;
958 974
 			sourceTree = "<group>";
@@ -1107,6 +1123,7 @@
1107 1123
 			isa = PBXResourcesBuildPhase;
1108 1124
 			buildActionMask = 2147483647;
1109 1125
 			files = (
1126
+				1AC8A17C238CF6410055C01F /* Assets.xcassets in Resources */,
1110 1127
 			);
1111 1128
 			runOnlyForDeploymentPostprocessing = 0;
1112 1129
 		};
@@ -1187,6 +1204,7 @@
1187 1204
 				767177882386A0F100817ECC /* SQLiteManager.m in Sources */,
1188 1205
 				76A4FFE3238E5D120001F49E /* MMHomeDetailViewController.m in Sources */,
1189 1206
 				1A977128238BC98D00A23B06 /* MMCategoryListCell.m in Sources */,
1207
+				1AC8A17F238D08EE0055C01F /* MMSearchListCell.m in Sources */,
1190 1208
 				768EE0ED23867E0B00591F71 /* UIButton+WSLTitleImage.m in Sources */,
1191 1209
 				1A977121238BAB7B00A23B06 /* MMCycleListCell.m in Sources */,
1192 1210
 				1A97710D238B6F3000A23B06 /* MMRemindViewController.m in Sources */,
@@ -1239,14 +1257,21 @@
1239 1257
 				762442F9238D377B00BD1709 /* MMBillSearchTableViewCell.m in Sources */,
1240 1258
 				1AA6AE812387CA75000A3ABA /* MMFeedBackVC.m in Sources */,
1241 1259
 				768EE10E2386870400591F71 /* UIImage+JZExtension.m in Sources */,
1260
+				1AC8A178238CC3060055C01F /* MMDatePickView.m in Sources */,
1261
+
1242 1262
 				76E1EC48238B80B5005D76BB /* MMPlusModel.m in Sources */,
1243 1263
 				762442F6238D33DC00BD1709 /* MMSearchTopView.m in Sources */,
1244 1264
 				767177952387832600817ECC /* MMLoginManager.m in Sources */,
1265
+
1245 1266
 				768EE0CE23867BBC00591F71 /* MMTabBarViewController.m in Sources */,
1246 1267
 				76E1EC5C238BD130005D76BB /* DAYNavigationBar.m in Sources */,
1247 1268
 				76717776238695A200817ECC /* MMFMDBHelper.m in Sources */,
1248 1269
 				768EE0EE23867E0B00591F71 /* UITableViewCell+Extension.m in Sources */,
1270
+
1271
+				1AC8A17B238CD7620055C01F /* MMShareViewController.m in Sources */,
1272
+
1249 1273
 				761BCDCD2387CB1900AAA855 /* UISegmentedControl+MMSegControl.m in Sources */,
1274
+
1250 1275
 				1A97710A238B6F2100A23B06 /* MMCategoryViewController.m in Sources */,
1251 1276
 				768EE1172386879F00591F71 /* MMChartViewController.m in Sources */,
1252 1277
 				767177832386A0F100817ECC /* YDFMDB.m in Sources */,

+ 1 - 1
MMProject.xcodeproj/xcuserdata/liuxueli.xcuserdatad/xcschemes/xcschememanagement.plist

@@ -7,7 +7,7 @@
7 7
 		<key>MMProject.xcscheme_^#shared#^_</key>
8 8
 		<dict>
9 9
 			<key>orderHint</key>
10
-			<integer>1</integer>
10
+			<integer>0</integer>
11 11
 		</dict>
12 12
 	</dict>
13 13
 </dict>

BIN
MMProject.xcworkspace/xcuserdata/liuxueli.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 1
MMProject/Code/Mine/Controller/MMMineHeadView.h

@@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
18 18
 @property(nonatomic,strong)UILabel *todayNumbers;
19 19
 @property(nonatomic,strong)UILabel *alldayNumbers;
20 20
 @property(nonatomic,strong)UILabel *totalCounts;
21
-
21
+@property(nonatomic,copy)void (^shareAccountBlock)(void);
22 22
 @property(nonatomic,copy)void (^userLoginSelectorBlock)(void);
23 23
 @end
24 24
 

+ 16 - 4
MMProject/Code/Mine/Controller/MMMineHeadView.m

@@ -15,7 +15,7 @@
15 15
     self =[super initWithFrame:frame];
16 16
     if (self) {
17 17
         [self addSubview:self.backimgView];
18
-        [self.backimgView addSubview:self.headButton];
18
+        [self addSubview:self.headButton];
19 19
         [self addSubview:self.whitebackView];
20 20
         [self setcontentView];
21 21
     }
@@ -36,7 +36,7 @@
36 36
 }
37 37
 -(UIButton *)headButton{
38 38
     if (!_headButton) {
39
-        _headButton=[[UIButton alloc]initWithFrame:CGRectMake(50, StatusBarHeight+40, self.backimgView.width-100, 100)];
39
+        _headButton=[[UIButton alloc]initWithFrame:CGRectMake(50, StatusBarHeight+40, kScreenWidth-100, 100)];
40 40
         [_headButton setImage:[UIImage imageNamed:@"mine_unlog_icon"] forState:UIControlStateNormal];
41 41
         [_headButton setTitle:@"未登录" forState:UIControlStateNormal];
42 42
         _headButton.titleLabel.font=[UIFont systemFontOfSize:18];
@@ -49,10 +49,12 @@
49 49
 -(UIView *)whitebackView
50 50
 {
51 51
     if (!_whitebackView) {
52
-        _whitebackView =[[UIView alloc]initWithFrame:CGRectMake(15, self.backimgView.bottom-80, self.width-30, 100)];
52
+        _whitebackView =[[UIView alloc]initWithFrame:CGRectMake(15, 149+StatusBarHeight, self.width-30, 100)];
53 53
         _whitebackView.layer.cornerRadius=10;
54 54
         _whitebackView.layer.masksToBounds=YES;
55
+        _whitebackView.userInteractionEnabled=YES;
55 56
         _whitebackView.backgroundColor=[UIColor whiteColor];
57
+        [_whitebackView addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(clickshareSelector)]];
56 58
         
57 59
     }
58 60
     return _whitebackView;
@@ -62,6 +64,11 @@
62 64
     NSArray *array = @[@"今日记账总数",@"记账总天数",@"记账总笔数"];
63 65
     CGFloat labelwidht =self.whitebackView.width/array.count;
64 66
     for (NSInteger i=0; i<array.count; i++) {
67
+//        UIButton *button =[[UIButton alloc]initWithFrame:CGRectMake(i*labelwidht, 65, labelwidht, 65)];
68
+//        [self.whitebackView addSubview:button];
69
+//        [button addTarget:self action:@selector(clickshareSelector) forControlEvents:UIControlEventTouchUpInside];
70
+        
71
+        
65 72
         UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(labelwidht*i, 65, labelwidht, 15)];
66 73
         label.textColor = [UIColor middleTitleColor];
67 74
         label.font = FONT_SYS(14);
@@ -93,7 +100,12 @@
93 100
     [self.whitebackView addSubview:self.totalCounts];
94 101
     
95 102
 }
96
-
103
+-(void)clickshareSelector
104
+{
105
+    if (self.shareAccountBlock) {
106
+        self.shareAccountBlock();
107
+    }
108
+}
97 109
 
98 110
 
99 111
 -(void)userClickButton

+ 29 - 5
MMProject/Code/Mine/Controller/MMMineViewController.m

@@ -8,10 +8,12 @@
8 8
 
9 9
 #import "MMMineViewController.h"
10 10
 #import "MMExportViewController.h"
11
+#define kHeardH  229+StatusBarHeight
11 12
 @interface MMMineViewController ()<UITableViewDelegate,UITableViewDataSource>
12 13
 @property(nonatomic,strong)MMMineHeadView *headView;
13 14
 @property(nonatomic,strong)UITableView *mineView;
14 15
 @property(nonatomic,strong)NSArray *listArray;
16
+@property(nonatomic,assign)CGFloat lastOffsetY;
15 17
 @end
16 18
 
17 19
 @implementation MMMineViewController
@@ -19,9 +21,13 @@
19 21
 - (void)viewDidLoad {
20 22
     [super viewDidLoad];
21 23
     self.navigationController.navigationBar.hidden=YES;
22
-    self.listArray=@[@[@{@"img":@"mine_budget",@"title":@"年度账单"}],@[@{@"img":@"mine_category",@"title":@"记账设置"}],@[@{@"img":@"mine_output",@"title":@"账单导出"},@{@"img":@"mine_share",@"title":@"分享APP"},@{@"img":@"mine_qq",@"title":@"一键加入QQ群:864160366"}],@[@{@"img":@"mine_adviceback",@"title":@"意见反馈"},@{@"img":@"mine_help",@"title":@"关于我们"}]];
24
+    self.lastOffsetY = -kHeardH + 35; self.listArray=@[@[@{@"img":@"mine_budget",@"title":@"年度账单"}],@[@{@"img":@"mine_category",@"title":@"记账设置"}],@[@{@"img":@"mine_output",@"title":@"账单导出"},@{@"img":@"mine_share",@"title":@"分享APP"},@{@"img":@"mine_qq",@"title":@"一键加入QQ群:864160366"}],@[@{@"img":@"mine_adviceback",@"title":@"意见反馈"},@{@"img":@"mine_help",@"title":@"关于我们"}]];
23 25
     [self.view addSubview:self.mineView];
24
-    
26
+    [self.mineView mas_makeConstraints:^(MASConstraintMaker *make) {
27
+        make.left.top.mas_equalTo(0);
28
+        make.width.mas_equalTo(kScreenWidth);
29
+        make.height.mas_equalTo(kScreenHeight-TabbarHeight);
30
+    }];
25 31
     [self addheadView];
26 32
 }
27 33
 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
@@ -99,9 +105,10 @@
99 105
 -(UITableView *)mineView
100 106
 {
101 107
     if (!_mineView) {
102
-        _mineView=[[UITableView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight-TabbarHeight)];
108
+        _mineView=[[UITableView alloc]init];
103 109
         _mineView.delegate=self;
104 110
         _mineView.dataSource=self;
111
+//        _mineView.contentInset = UIEdgeInsetsMake(kHeardH-35, 0, 0, 0);
105 112
         _mineView.backgroundColor=[UIColor backColor];
106 113
         _mineView.separatorStyle=UITableViewCellSeparatorStyleNone;
107 114
         if (@available(iOS 11.0, *)) {
@@ -115,15 +122,32 @@
115 122
     return _mineView;
116 123
     
117 124
 }
125
+#pragma mark - UIScrollViewDelegate
126
+- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
127
+    CGFloat width = self.view.frame.size.width;// 图片的宽度
128
+       CGFloat yOffset = scrollView.contentOffset.y;// 偏移的y值
129
+       if (yOffset < 0) {
130
+           CGFloat totalOffset = 229+StatusBarHeight + ABS(yOffset);
131
+           CGFloat f = totalOffset / 229+StatusBarHeight;
132
+           self.headView.backimgView.frame = CGRectMake(- (width * f - width) / 2, yOffset, width * f, totalOffset);// 拉伸后的图片的frame应该是同比例缩放
133
+       }
134
+}
118 135
 
119 136
 -(void)addheadView
120 137
 {
121
-    self.headView =[[MMMineHeadView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, StatusBarHeight+260)];
138
+    self.headView =[[MMMineHeadView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, 260+StatusBarHeight)];
139
+    __weak typeof(self) mmself = self;
122 140
     self.headView.userLoginSelectorBlock = ^{
123 141
         MMUserInfoViewController *loginV=[[MMUserInfoViewController alloc]init];
124
-        [self.navigationController pushViewController:loginV animated:YES];
142
+        [mmself.navigationController pushViewController:loginV animated:YES];
143
+    };
144
+    
145
+    self.headView.shareAccountBlock = ^{
146
+        MMShareViewController *loginV=[[MMShareViewController alloc]init];
147
+       [mmself.navigationController pushViewController:loginV animated:YES];
125 148
     };
126 149
     self.mineView.tableHeaderView=self.headView;
150
+   
127 151
 }
128 152
 
129 153
 -(void)viewWillAppear:(BOOL)animated

+ 19 - 0
MMProject/Code/Mine/Controller/MMSearchListCell.h

@@ -0,0 +1,19 @@
1
+//
2
+//  MMSearchListCell.h
3
+//  MMProject
4
+//
5
+//  Created by 刘学丽 on 2019/11/26.
6
+//  Copyright © 2019 kuxuan. All rights reserved.
7
+//
8
+
9
+#import <UIKit/UIKit.h>
10
+
11
+NS_ASSUME_NONNULL_BEGIN
12
+
13
+@interface MMSearchListCell : UITableViewCell
14
+@property(nonatomic,strong)UIImageView *typeImgV;
15
+@property(nonatomic,strong)UILabel *typeLabel;
16
+@property(nonatomic,strong)UILabel *startLabel;
17
+@end
18
+
19
+NS_ASSUME_NONNULL_END

+ 44 - 0
MMProject/Code/Mine/Controller/MMSearchListCell.m

@@ -0,0 +1,44 @@
1
+//
2
+//  MMSearchListCell.m
3
+//  MMProject
4
+//
5
+//  Created by 刘学丽 on 2019/11/26.
6
+//  Copyright © 2019 kuxuan. All rights reserved.
7
+//
8
+
9
+#import "MMSearchListCell.h"
10
+
11
+@implementation MMSearchListCell
12
+
13
+-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
14
+{
15
+    self =[super initWithStyle:style reuseIdentifier:reuseIdentifier];
16
+    if (self) {
17
+        self.typeImgV =[[UIImageView alloc]initWithFrame:CGRectMake(10, 20, 40, 40)];
18
+        self.typeImgV.layer.cornerRadius=20;
19
+        self.typeImgV.layer.masksToBounds=YES;
20
+        self.typeImgV.image=[UIImage imageNamed:@"Category_ selected_615"];
21
+        [self addSubview:self.typeImgV];
22
+        
23
+        self.typeLabel =[[UILabel alloc]initWithFrame:CGRectMake(self.typeImgV.right+10, 0, 150, 80)];
24
+        self.typeLabel.font=FONT_SYS(16);
25
+        self.typeLabel.textColor=[UIColor titleColor];
26
+        [self addSubview:self.typeLabel];
27
+        self.typeLabel.text=@"--";
28
+        
29
+        self.startLabel =[[UILabel alloc]initWithFrame:CGRectMake(kScreenWidth-120, 27.5, 80, 25)];
30
+        self.startLabel.font=FONT_SYS(14);
31
+        self.startLabel.textColor=[UIColor whiteColor];
32
+        self.startLabel.backgroundColor=[UIColor baseColor];
33
+        self.startLabel.layer.cornerRadius=12.5;
34
+        self.startLabel.layer.masksToBounds=YES;
35
+        self.startLabel.textAlignment=NSTextAlignmentCenter;
36
+        [self addSubview:self.startLabel];
37
+        self.startLabel.text=@"立即测算";
38
+        
39
+        
40
+    }
41
+    return self;
42
+}
43
+
44
+@end

+ 17 - 0
MMProject/Code/Mine/Controller/MMShareViewController.h

@@ -0,0 +1,17 @@
1
+//
2
+//  MMShareViewController.h
3
+//  MMProject
4
+//
5
+//  Created by 刘学丽 on 2019/11/26.
6
+//  Copyright © 2019 kuxuan. All rights reserved.
7
+//
8
+
9
+#import "MMBaseViewController.h"
10
+
11
+NS_ASSUME_NONNULL_BEGIN
12
+
13
+@interface MMShareViewController : MMBaseViewController
14
+
15
+@end
16
+
17
+NS_ASSUME_NONNULL_END

+ 150 - 0
MMProject/Code/Mine/Controller/MMShareViewController.m

@@ -0,0 +1,150 @@
1
+//
2
+//  MMShareViewController.m
3
+//  MMProject
4
+//
5
+//  Created by 刘学丽 on 2019/11/26.
6
+//  Copyright © 2019 kuxuan. All rights reserved.
7
+//
8
+
9
+#import "MMShareViewController.h"
10
+
11
+@interface MMShareViewController ()
12
+@property(nonatomic,strong)UIButton *headinfoBtn;
13
+@property(nonatomic,strong)UILabel *headNameL;
14
+
15
+@property(nonatomic,strong)UILabel *todayNumbers;
16
+@property(nonatomic,strong)UILabel *alldayNumbers;
17
+@property(nonatomic,strong)UILabel *totalCounts;
18
+@property(nonatomic,strong) UIImage *shareimg;
19
+@end
20
+
21
+@implementation MMShareViewController
22
+
23
+
24
+- (void)viewDidLoad {
25
+    [super viewDidLoad];
26
+    [self addLeftBackBtn];
27
+    self.view.backgroundColor=[UIColor backColor];
28
+    self.navigationItem.title=@"炫耀一下";
29
+    
30
+    
31
+    [self setcontentView];
32
+    
33
+    
34
+}
35
+-(UIButton *)headinfoBtn
36
+{
37
+    if (!_headinfoBtn) {
38
+        _headinfoBtn=[[UIButton alloc]initWithFrame:CGRectMake(15, 130, kScreenWidth-110, 100)];
39
+        [_headinfoBtn setTitle:@"name" forState:UIControlStateNormal];
40
+        _headinfoBtn.imageView.contentMode=UIViewContentModeScaleToFill;
41
+        [_headinfoBtn setImage:[UIImage imageNamed:@"mine_unlog_icon"] forState:UIControlStateNormal];
42
+        _headinfoBtn.titleLabel.font=FONT_SYS(18);
43
+        [_headinfoBtn setTitleColor:[UIColor titleColor] forState:UIControlStateNormal];
44
+        _headinfoBtn.imageEdgeInsets =UIEdgeInsetsMake(10,_headinfoBtn.width/2-25 , 40, _headinfoBtn.width/2-25);
45
+        _headinfoBtn.titleEdgeInsets =UIEdgeInsetsMake(60, -50, 10, 0);
46
+    }
47
+    return _headinfoBtn;
48
+}
49
+-(void)setcontentView
50
+{
51
+    UIImageView *backimgV=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"integral_share_back"]];
52
+       backimgV.layer.cornerRadius=15;
53
+       backimgV.layer.masksToBounds=YES;
54
+       backimgV.frame=CGRectMake(40, 30, kScreenWidth-80, kScreenHeight-NavHeight-160);
55
+       [self.view addSubview:backimgV];
56
+    
57
+    
58
+    
59
+    [backimgV addSubview:self.headinfoBtn];
60
+      
61
+    NSArray *array = @[@"今日记账总数",@"记账总天数",@"记账总笔数"];
62
+    CGFloat labelwidht =(kScreenWidth-110)/array.count;
63
+    for (NSInteger i=0; i<array.count; i++) {
64
+        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(labelwidht*i+15, 260, labelwidht, 15)];
65
+        label.textColor = [UIColor middleTitleColor];
66
+        label.font = FONT_SYS(12);
67
+        label.text = array[i];
68
+        label.textAlignment = NSTextAlignmentCenter;
69
+        [backimgV addSubview:label];
70
+       
71
+    }
72
+    
73
+    self.todayNumbers =[[UILabel alloc]initWithFrame:CGRectMake(15, 235,labelwidht , 25)];
74
+    self.todayNumbers.font=FONT_SYS(24);
75
+    self.todayNumbers.text=@"--";
76
+    self.todayNumbers.textColor=[UIColor JZColorWithHex:0x262626];
77
+    self.todayNumbers.textAlignment=NSTextAlignmentCenter;
78
+    [backimgV addSubview:self.todayNumbers];
79
+    
80
+    self.alldayNumbers =[[UILabel alloc]initWithFrame:CGRectMake(labelwidht+15, 235,labelwidht , 25)];
81
+    self.alldayNumbers.font=FONT_SYS(24);
82
+    self.alldayNumbers.text=@"--";
83
+    self.alldayNumbers.textColor=[UIColor JZColorWithHex:0x262626];
84
+    self.alldayNumbers.textAlignment=NSTextAlignmentCenter;
85
+    [backimgV addSubview:self.alldayNumbers];
86
+    
87
+    self.totalCounts =[[UILabel alloc]initWithFrame:CGRectMake(labelwidht*2+15, 235,labelwidht , 25)];
88
+    self.totalCounts.font=FONT_SYS(24);
89
+    self.totalCounts.text=@"--";
90
+    self.totalCounts.textColor=[UIColor JZColorWithHex:0x262626];
91
+    self.totalCounts.textAlignment=NSTextAlignmentCenter;
92
+    [backimgV addSubview:self.totalCounts];
93
+    
94
+    UIImageView *logoimV=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"integor_QR_code"]];
95
+      logoimV.frame=CGRectMake(30, backimgV.height-120,backimgV.width-60 , 80);
96
+      [backimgV addSubview:logoimV];
97
+          
98
+      UIView *backV =[[UIView alloc]initWithFrame:CGRectMake(0, backimgV.bottom+30, kScreenWidth, 100)];
99
+      backV.backgroundColor=[UIColor whiteColor];
100
+      [self.view addSubview:backV];
101
+    
102
+    NSArray *shareArr =@[@{@"img":@"integor_download_image",@"title":@"保存图片"},@{@"img":@"integral_weixin",@"title":@"微信"},@{@"img":@"integral_weixin_timeLine",@"title":@"朋友圈"}];
103
+    CGFloat sharewidth =backV.width/shareArr.count;
104
+    for (int i =0; i<shareArr.count; i++) {
105
+        NSDictionary *dic =shareArr[i];
106
+        UIButton *button =[[UIButton alloc]initWithFrame:CGRectMake(i*sharewidth, 0, sharewidth, backV.height)];
107
+        button.tag= i;
108
+        [button addTarget:self action:@selector(shaeclickSelector:) forControlEvents:UIControlEventTouchUpInside];
109
+        [button setImage:[UIImage imageNamed:dic[@"img"]] forState:UIControlStateNormal];
110
+        [button setTitle:dic[@"title"] forState:UIControlStateNormal];
111
+        button.titleLabel.font=FONT_SYS(14);
112
+        [backV addSubview:button];
113
+        button.imageEdgeInsets =UIEdgeInsetsMake(10, button.width/2-25, button.height-60, button.width/2-25);
114
+        button.titleEdgeInsets=UIEdgeInsetsMake(60, -50, 10, 0);
115
+        [button setTitleColor:[UIColor titleColor] forState:UIControlStateNormal];
116
+        button.adjustsImageWhenHighlighted=NO;
117
+        
118
+    }
119
+    
120
+    UIImage *shareImage = [UIImage snapshotWithView:backimgV];
121
+    self.shareimg = shareImage;
122
+}
123
+-(void)shaeclickSelector:(UIButton *)btn
124
+{
125
+    if (btn.tag == 0) {
126
+         UIImageWriteToSavedPhotosAlbum(self.shareimg, self, @selector(image:didFinishSavingWithError:contextInfo:), NULL);
127
+    }
128
+}
129
+- (void)image: (UIImage *) image didFinishSavingWithError: (NSError *) error contextInfo: (void *) contextInfo {
130
+    if(error != NULL){
131
+        [MBManager showBriefAlert:@"保存图片失败"];
132
+    }else{
133
+         [MBManager showBriefAlert:@"保存图片成功"];
134
+       
135
+    }
136
+}
137
+-(void)viewWillAppear:(BOOL)animated
138
+{
139
+    [super viewWillAppear:animated];
140
+    self.navigationController.navigationBar.hidden=NO;
141
+    self.tabBarController.tabBar.hidden=YES;
142
+}
143
+-(void)viewWillDisappear:(BOOL)animated
144
+{
145
+    [super viewWillDisappear:animated];
146
+    self.navigationController.navigationBar.hidden=YES;
147
+    self.tabBarController.tabBar.hidden=NO;
148
+}
149
+
150
+@end

+ 25 - 0
MMProject/Code/Mine/Controller/MMYearAccountVC.m

@@ -17,6 +17,9 @@
17 17
 @property(nonatomic,strong)UILabel *balancelabel;//结余
18 18
 @property(nonatomic,strong)UILabel *encomelabel;//收入
19 19
 @property(nonatomic,strong)UILabel *spendlabel;//支出
20
+
21
+@property(nonatomic,strong)MMDatePickView *dateView;
22
+
20 23
 @end
21 24
 
22 25
 @implementation MMYearAccountVC
@@ -123,6 +126,28 @@ static   NSInteger const backheight = 150;
123 126
      [button setImage:[UIImage imageNamed:@"home_down"] forState:UIControlStateNormal];
124 127
      button.titleLabel.font = FONT_SYS(14);
125 128
     self.navigationItem.rightBarButtonItem=[[UIBarButtonItem alloc]initWithCustomView:button];
129
+    [button addTarget:self action:@selector(changeyearSelector) forControlEvents:UIControlEventTouchUpInside];
130
+    
131
+}
132
+#pragma mark----
133
+-(void)changeyearSelector
134
+{
135
+    [UIView animateWithDuration:1 animations:^{
136
+        self.dateView.hidden=NO;
137
+    }];
138
+}
139
+
140
+
141
+
142
+-(MMDatePickView *)dateView
143
+{
144
+    if (!_dateView) {
145
+        _dateView=[[MMDatePickView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight)];
146
+        _dateView.userInteractionEnabled=YES;
147
+        [self.view addSubview:_dateView];
148
+        _dateView.hidden=YES;
149
+    }
150
+    return _dateView;
126 151
 }
127 152
 -(void)viewWillAppear:(BOOL)animated
128 153
 {

+ 19 - 0
MMProject/Code/Mine/View/MMDatePickView.h

@@ -0,0 +1,19 @@
1
+//
2
+//  MMDatePickView.h
3
+//  MMProject
4
+//
5
+//  Created by 刘学丽 on 2019/11/26.
6
+//  Copyright © 2019 kuxuan. All rights reserved.
7
+//
8
+
9
+#import <UIKit/UIKit.h>
10
+
11
+NS_ASSUME_NONNULL_BEGIN
12
+
13
+@interface MMDatePickView : UIView<UIPickerViewDelegate,UIPickerViewDataSource>
14
+@property(nonatomic,strong)UIPickerView *pickView;
15
+@property(nonatomic,strong)NSMutableArray *yearListArray;
16
+
17
+@end
18
+
19
+NS_ASSUME_NONNULL_END

+ 135 - 0
MMProject/Code/Mine/View/MMDatePickView.m

@@ -0,0 +1,135 @@
1
+//
2
+//  MMDatePickView.m
3
+//  MMProject
4
+//
5
+//  Created by 刘学丽 on 2019/11/26.
6
+//  Copyright © 2019 kuxuan. All rights reserved.
7
+//
8
+
9
+#import "MMDatePickView.h"
10
+
11
+@implementation MMDatePickView
12
+
13
+-(instancetype)initWithFrame:(CGRect)frame
14
+{
15
+    self =[super initWithFrame:frame ];
16
+    if (self) {
17
+        self.backgroundColor=[UIColor colorWithRed:0 green:0 blue:0 alpha:0.3];
18
+        
19
+        
20
+        UIView *backV =[[UIView alloc]init];
21
+        backV.backgroundColor=[UIColor whiteColor];
22
+        [self addSubview:backV];
23
+        
24
+        [backV mas_makeConstraints:^(MASConstraintMaker *make) {
25
+            make.left.right.mas_equalTo(0);
26
+            make.bottom.mas_equalTo(-NavHeight);
27
+            make.height.mas_equalTo(230);
28
+        }];
29
+        
30
+         UIButton *cancelBtn =[[UIButton alloc]init];
31
+           [cancelBtn setTitle:@"取消" forState:UIControlStateNormal];
32
+          
33
+           [cancelBtn setTitleColor:[UIColor titleColor] forState:UIControlStateNormal];
34
+           cancelBtn.titleLabel.font=FONT_SYS(14);
35
+           [backV addSubview:cancelBtn];
36
+           [cancelBtn addTarget:self action:@selector(cancelSelector) forControlEvents:UIControlEventTouchUpInside];
37
+               
38
+           UIButton *sureBtn =[[UIButton alloc]init];
39
+          [sureBtn setTitle:@"确定" forState:UIControlStateNormal];
40
+          
41
+          [sureBtn setTitleColor:[UIColor titleColor] forState:UIControlStateNormal];
42
+          sureBtn.titleLabel.font=FONT_SYS(14);
43
+          [backV addSubview:sureBtn];
44
+          [sureBtn addTarget:self action:@selector(sureSelector) forControlEvents:UIControlEventTouchUpInside];
45
+        
46
+        [cancelBtn mas_makeConstraints:^(MASConstraintMaker *make) {
47
+            make.top.left.mas_equalTo(0);
48
+            make.height.mas_equalTo(40);
49
+            make.width.mas_equalTo(60);
50
+        }];
51
+        [sureBtn mas_makeConstraints:^(MASConstraintMaker *make) {
52
+            make.top.mas_equalTo(0);
53
+            make.height.mas_equalTo(40);
54
+            make.width.mas_equalTo(60);
55
+            make.right.mas_equalTo(0);
56
+        }];
57
+        UIView *paslineV =[[UIView alloc]init];
58
+        paslineV.backgroundColor=[UIColor backColor];
59
+        [self addSubview:paslineV];
60
+        [paslineV mas_makeConstraints:^(MASConstraintMaker *make) {
61
+            make.left.right.mas_equalTo(0);
62
+            make.top.mas_equalTo(sureBtn.mas_bottom);
63
+            make.height.mas_equalTo(1);
64
+        }];
65
+        
66
+        [self addSubview:self.pickView];
67
+        [self setSelectData];
68
+        [self.pickView mas_makeConstraints:^(MASConstraintMaker *make) {
69
+            make.top.mas_equalTo(paslineV.mas_bottom);
70
+            make.bottom.mas_equalTo(0);
71
+            make.left.right.mas_equalTo(0);
72
+        }];
73
+    }
74
+    return self;
75
+}
76
+-(UIPickerView *)pickView
77
+{
78
+    if (!_pickView) {
79
+        _pickView =[[UIPickerView alloc]init];
80
+        _pickView.delegate=self;
81
+        _pickView.dataSource=self;
82
+        _pickView.backgroundColor=[UIColor whiteColor];
83
+    }
84
+    return _pickView;
85
+}
86
+#pragma mark - UIPickViewDelegate
87
+
88
+- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView{
89
+    return 1;
90
+}
91
+
92
+- (NSInteger )pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component{
93
+    return self.yearListArray.count;
94
+}
95
+
96
+- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component{
97
+        return self.yearListArray[row];
98
+}
99
+- (void)setSelectData{
100
+    NSDate *date = [NSDate date];
101
+    NSDateFormatter *formatter = [[NSDateFormatter alloc]init];
102
+    formatter.dateFormat = @"yyyy-MM";
103
+    NSString *string = [formatter stringFromDate:date];
104
+    NSArray *dataArray = [string componentsSeparatedByString:@"-"];
105
+    NSUInteger integer = [dataArray[0] integerValue]-2010;
106
+    [self.pickView selectRow:integer inComponent:0 animated:YES];
107
+}
108
+
109
+-(NSMutableArray *)yearListArray
110
+{
111
+    if (!_yearListArray) {
112
+        NSMutableArray *array = [NSMutableArray array];
113
+       for (NSUInteger i=2010; i<2051; i++) {
114
+           [array addObject:[NSString stringWithFormat:@"%lu",(unsigned long)i]];
115
+       }
116
+       _yearListArray = [NSMutableArray arrayWithArray:array];
117
+    }
118
+    return _yearListArray;
119
+}
120
+
121
+-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
122
+{
123
+    self.hidden=YES;
124
+}
125
+-(void)cancelSelector
126
+{
127
+    self.hidden=YES;
128
+}
129
+-(void)sureSelector
130
+{
131
+    NSInteger year = [self.pickView selectedRowInComponent:0];
132
+    NSString *yearNum = [self.yearListArray objectAtIndex:year];
133
+    self.hidden=YES;
134
+}
135
+@end

+ 80 - 9
MMProject/Code/Search/Controller/MMSearchViewController.m

@@ -7,8 +7,11 @@
7 7
 //
8 8
 
9 9
 #import "MMSearchViewController.h"
10
+#import "MMSearchListCell.h"
11
+@interface MMSearchViewController ()<UITableViewDelegate,UITableViewDataSource>
10 12
 
11
-@interface MMSearchViewController ()
13
+@property(nonatomic,strong)UITableView *searchView;
14
+@property(nonatomic,strong)NSMutableArray *listArray;
12 15
 
13 16
 @end
14 17
 
@@ -16,17 +19,85 @@
16 19
 
17 20
 - (void)viewDidLoad {
18 21
     [super viewDidLoad];
19
-    // Do any additional setup after loading the view.
22
+    UIView *backV=[[UIView alloc]init];
23
+    self.navigationItem.title=@"发现";
24
+    backV.backgroundColor=[UIColor whiteColor];
25
+    [self.view addSubview:backV];
26
+    [backV mas_makeConstraints:^(MASConstraintMaker *make) {
27
+        make.top.left.right.mas_equalTo(0);
28
+        make.height.mas_equalTo(130);
29
+    }];
30
+    [self.view addSubview:self.searchView];
20 31
 }
21 32
 
22
-/*
23
-#pragma mark - Navigation
33
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
34
+{
35
+    MMSearchListCell *tabCell =[tableView dequeueReusableCellWithIdentifier:@"search"];
36
+    if (!tabCell) {
37
+        tabCell=[[MMSearchListCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"search"];
38
+        tabCell.selectionStyle=UITableViewCellSelectionStyleNone;
39
+    }
40
+    tabCell.backgroundColor=[UIColor whiteColor];
41
+   
42
+    return tabCell;
43
+}
44
+-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
45
+{
46
+    
47
+    return 1;
48
+}
49
+-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
50
+{
51
+    return 3;
52
+}
53
+-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
54
+{
55
+    return 80;
56
+}
57
+-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
58
+{
59
+    UIView *headV=[[UIView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, 1)];
60
+    headV.backgroundColor=[UIColor backColor];
61
+    return headV;
62
+}
63
+-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
64
+{
65
+    return 1;
66
+}
67
+-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
68
+{
69
+    
70
+}
24 71
 
25
-// In a storyboard-based application, you will often want to do a little preparation before navigation
26
-- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
27
-    // Get the new view controller using [segue destinationViewController].
28
-    // Pass the selected object to the new view controller.
72
+
73
+-(UITableView *)searchView
74
+{
75
+    if (!_searchView) {
76
+        _searchView=[[UITableView alloc]initWithFrame:CGRectMake(15, 0, kScreenWidth-30, kScreenHeight-NavHeight-TabbarHeight-10)];
77
+        _searchView.delegate=self;
78
+        _searchView.dataSource=self;
79
+        _searchView.backgroundColor=[UIColor clearColor];
80
+        _searchView.separatorStyle=UITableViewCellSeparatorStyleNone;
81
+        if (@available(iOS 11.0, *)) {
82
+           _searchView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
83
+        } else {
84
+           self.automaticallyAdjustsScrollViewInsets = NO;
85
+        }
86
+        _searchView.showsVerticalScrollIndicator=NO;
87
+        
88
+    }
89
+    return _searchView;
90
+    
91
+}
92
+
93
+-(void)viewWillAppear:(BOOL)animated
94
+{
95
+    [super viewWillAppear:animated];
96
+    self.navigationController.navigationBar.hidden=NO;
97
+    self.tabBarController.tabBar.hidden=NO;
29 98
 }
30
-*/
99
+
100
+
101
+
31 102
 
32 103
 @end

+ 2 - 0
MMProject/pch&&Header/PrefixHeader.pch

@@ -73,6 +73,8 @@
73 73
 #import "MMBudgetViewController.h"
74 74
 #import "MMYearAccountVC.h"
75 75
 #import "MMAccountListCell.h"
76
+#import "MMDatePickView.h"
77
+#import "MMShareViewController.h"
76 78
 
77 79
 // *********************************
78 80
 #import "Header.h"

+ 23 - 0
MMProject/resource/Assets.xcassets/mine/head_nologin.imageset/Contents.json

@@ -0,0 +1,23 @@
1
+{
2
+  "images" : [
3
+    {
4
+      "idiom" : "universal",
5
+      "filename" : "头像.png",
6
+      "scale" : "1x"
7
+    },
8
+    {
9
+      "idiom" : "universal",
10
+      "filename" : "头像@2x.png",
11
+      "scale" : "2x"
12
+    },
13
+    {
14
+      "idiom" : "universal",
15
+      "filename" : "头像@3x.png",
16
+      "scale" : "3x"
17
+    }
18
+  ],
19
+  "info" : {
20
+    "version" : 1,
21
+    "author" : "xcode"
22
+  }
23
+}

BIN
MMProject/resource/Assets.xcassets/mine/head_nologin.imageset/头像.png


BIN
MMProject/resource/Assets.xcassets/mine/head_nologin.imageset/头像@2x.png


BIN
MMProject/resource/Assets.xcassets/mine/head_nologin.imageset/头像@3x.png


BIN
MMProject/resource/Assets.xcassets/mine/integor_QR_code.imageset/9891565334668_.pic.jpg


+ 21 - 0
MMProject/resource/Assets.xcassets/mine/integor_QR_code.imageset/Contents.json

@@ -0,0 +1,21 @@
1
+{
2
+  "images" : [
3
+    {
4
+      "idiom" : "universal",
5
+      "scale" : "1x"
6
+    },
7
+    {
8
+      "idiom" : "universal",
9
+      "filename" : "9891565334668_.pic.jpg",
10
+      "scale" : "2x"
11
+    },
12
+    {
13
+      "idiom" : "universal",
14
+      "scale" : "3x"
15
+    }
16
+  ],
17
+  "info" : {
18
+    "version" : 1,
19
+    "author" : "xcode"
20
+  }
21
+}

+ 23 - 0
MMProject/resource/Assets.xcassets/mine/integor_download_image.imageset/Contents.json

@@ -0,0 +1,23 @@
1
+{
2
+  "images" : [
3
+    {
4
+      "idiom" : "universal",
5
+      "filename" : "下载 .png",
6
+      "scale" : "1x"
7
+    },
8
+    {
9
+      "idiom" : "universal",
10
+      "filename" : "下载 @2x.png",
11
+      "scale" : "2x"
12
+    },
13
+    {
14
+      "idiom" : "universal",
15
+      "filename" : "下载 @3x.png",
16
+      "scale" : "3x"
17
+    }
18
+  ],
19
+  "info" : {
20
+    "version" : 1,
21
+    "author" : "xcode"
22
+  }
23
+}

BIN
MMProject/resource/Assets.xcassets/mine/integor_download_image.imageset/下载 .png


BIN
MMProject/resource/Assets.xcassets/mine/integor_download_image.imageset/下载 @2x.png


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
MMProject/resource/Assets.xcassets/mine/integor_download_image.imageset/下载 @3x.png


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
MMProject/resource/Assets.xcassets/mine/integral_share_back.imageset/871eac81a56a824a31223343b90e0494 + u=2537627520,3119182571&fm=27&gp=0 copy + 你长得可真吓人啊 + Group 3 Copy + Group 5 + 未标题-1 copy 2 + 金牛记账 copy Mask Copy.png


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
MMProject/resource/Assets.xcassets/mine/integral_share_back.imageset/871eac81a56a824a31223343b90e0494 + u=2537627520,3119182571&fm=27&gp=0 copy + 你长得可真吓人啊 + Group 3 Copy + Group 5 + 未标题-1 copy 2 + 金牛记账 copy Mask Copy@2x.png


BIN
MMProject/resource/Assets.xcassets/mine/integral_share_back.imageset/871eac81a56a824a31223343b90e0494 + u=2537627520,3119182571&fm=27&gp=0 copy + 你长得可真吓人啊 + Group 3 Copy + Group 5 + 未标题-1 copy 2 + 金牛记账 copy Mask Copy@3x.png


+ 23 - 0
MMProject/resource/Assets.xcassets/mine/integral_share_back.imageset/Contents.json

@@ -0,0 +1,23 @@
1
+{
2
+  "images" : [
3
+    {
4
+      "idiom" : "universal",
5
+      "filename" : "871eac81a56a824a31223343b90e0494 + u=2537627520,3119182571&fm=27&gp=0 copy + 你长得可真吓人啊 + Group 3 Copy + Group 5 + 未标题-1 copy 2 + 金牛记账 copy Mask Copy.png",
6
+      "scale" : "1x"
7
+    },
8
+    {
9
+      "idiom" : "universal",
10
+      "filename" : "871eac81a56a824a31223343b90e0494 + u=2537627520,3119182571&fm=27&gp=0 copy + 你长得可真吓人啊 + Group 3 Copy + Group 5 + 未标题-1 copy 2 + 金牛记账 copy Mask Copy@2x.png",
11
+      "scale" : "2x"
12
+    },
13
+    {
14
+      "idiom" : "universal",
15
+      "filename" : "871eac81a56a824a31223343b90e0494 + u=2537627520,3119182571&fm=27&gp=0 copy + 你长得可真吓人啊 + Group 3 Copy + Group 5 + 未标题-1 copy 2 + 金牛记账 copy Mask Copy@3x.png",
16
+      "scale" : "3x"
17
+    }
18
+  ],
19
+  "info" : {
20
+    "version" : 1,
21
+    "author" : "xcode"
22
+  }
23
+}

+ 23 - 0
MMProject/resource/Assets.xcassets/mine/integral_weixin.imageset/Contents.json

@@ -0,0 +1,23 @@
1
+{
2
+  "images" : [
3
+    {
4
+      "idiom" : "universal",
5
+      "filename" : "微信.png",
6
+      "scale" : "1x"
7
+    },
8
+    {
9
+      "idiom" : "universal",
10
+      "filename" : "微信@2x.png",
11
+      "scale" : "2x"
12
+    },
13
+    {
14
+      "idiom" : "universal",
15
+      "filename" : "微信@3x.png",
16
+      "scale" : "3x"
17
+    }
18
+  ],
19
+  "info" : {
20
+    "version" : 1,
21
+    "author" : "xcode"
22
+  }
23
+}

BIN
MMProject/resource/Assets.xcassets/mine/integral_weixin.imageset/微信.png


BIN
MMProject/resource/Assets.xcassets/mine/integral_weixin.imageset/微信@2x.png


BIN
MMProject/resource/Assets.xcassets/mine/integral_weixin.imageset/微信@3x.png


+ 23 - 0
MMProject/resource/Assets.xcassets/mine/integral_weixin_timeLine.imageset/Contents.json

@@ -0,0 +1,23 @@
1
+{
2
+  "images" : [
3
+    {
4
+      "idiom" : "universal",
5
+      "filename" : "朋友圈 .png",
6
+      "scale" : "1x"
7
+    },
8
+    {
9
+      "idiom" : "universal",
10
+      "filename" : "朋友圈 @2x.png",
11
+      "scale" : "2x"
12
+    },
13
+    {
14
+      "idiom" : "universal",
15
+      "filename" : "朋友圈 @3x.png",
16
+      "scale" : "3x"
17
+    }
18
+  ],
19
+  "info" : {
20
+    "version" : 1,
21
+    "author" : "xcode"
22
+  }
23
+}

BIN
MMProject/resource/Assets.xcassets/mine/integral_weixin_timeLine.imageset/朋友圈 .png


BIN
MMProject/resource/Assets.xcassets/mine/integral_weixin_timeLine.imageset/朋友圈 @2x.png


BIN
MMProject/resource/Assets.xcassets/mine/integral_weixin_timeLine.imageset/朋友圈 @3x.png


+ 1 - 1
Pods/Pods.xcodeproj/xcuserdata/liuxueli.xcuserdatad/xcschemes/xcschememanagement.plist

@@ -7,7 +7,7 @@
7 7
 		<key>AFNetworking.xcscheme_^#shared#^_</key>
8 8
 		<dict>
9 9
 			<key>orderHint</key>
10
-			<integer>0</integer>
10
+			<integer>1</integer>
11 11
 		</dict>
12 12
 		<key>BlocksKit.xcscheme_^#shared#^_</key>
13 13
 		<dict>