Browse Source

修改bug

jikaipeng 5 years ago
parent
commit
bfe3fa62cc

+ 11 - 0
KuDianProject.xcodeproj/project.pbxproj

205
 		7662960D22D8233600B2C0DB /* KDPMainNavViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KDPMainNavViewController.m; sourceTree = "<group>"; };
205
 		7662960D22D8233600B2C0DB /* KDPMainNavViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KDPMainNavViewController.m; sourceTree = "<group>"; };
206
 		7662960F22D8267800B2C0DB /* KDPBaseLabel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = KDPBaseLabel.h; path = KuDianProject/MainTab/KDPBaseLabel.h; sourceTree = SOURCE_ROOT; };
206
 		7662960F22D8267800B2C0DB /* KDPBaseLabel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = KDPBaseLabel.h; path = KuDianProject/MainTab/KDPBaseLabel.h; sourceTree = SOURCE_ROOT; };
207
 		7662961022D8267800B2C0DB /* KDPBaseLabel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = KDPBaseLabel.m; path = KuDianProject/MainTab/KDPBaseLabel.m; sourceTree = SOURCE_ROOT; };
207
 		7662961022D8267800B2C0DB /* KDPBaseLabel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = KDPBaseLabel.m; path = KuDianProject/MainTab/KDPBaseLabel.m; sourceTree = SOURCE_ROOT; };
208
+		7662961B22D87B3600B2C0DB /* KuDianProject.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = KuDianProject.entitlements; sourceTree = "<group>"; };
208
 		76D6EE6F22D4A7A100E7AC1C /* KDPTabBarVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KDPTabBarVC.m; sourceTree = "<group>"; };
209
 		76D6EE6F22D4A7A100E7AC1C /* KDPTabBarVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KDPTabBarVC.m; sourceTree = "<group>"; };
209
 		76D6EE7022D4A7A100E7AC1C /* KDPTabBarVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KDPTabBarVC.h; sourceTree = "<group>"; };
210
 		76D6EE7022D4A7A100E7AC1C /* KDPTabBarVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KDPTabBarVC.h; sourceTree = "<group>"; };
210
 		76D6EE7222D4A7D600E7AC1C /* KDPSupplyContentViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KDPSupplyContentViewController.h; sourceTree = "<group>"; };
211
 		76D6EE7222D4A7D600E7AC1C /* KDPSupplyContentViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KDPSupplyContentViewController.h; sourceTree = "<group>"; };
797
 		C5D561F922CD97840035A714 /* KuDianProject */ = {
798
 		C5D561F922CD97840035A714 /* KuDianProject */ = {
798
 			isa = PBXGroup;
799
 			isa = PBXGroup;
799
 			children = (
800
 			children = (
801
+				7662961B22D87B3600B2C0DB /* KuDianProject.entitlements */,
800
 				C5D5624022CD9E710035A714 /* MainTab */,
802
 				C5D5624022CD9E710035A714 /* MainTab */,
801
 				C5D5623F22CD9D350035A714 /* Public */,
803
 				C5D5623F22CD9D350035A714 /* Public */,
802
 				76D7943222CDDBE200C2ECFA /* Vendors */,
804
 				76D7943222CDDBE200C2ECFA /* Vendors */,
1097
 				TargetAttributes = {
1099
 				TargetAttributes = {
1098
 					C5D561F622CD97840035A714 = {
1100
 					C5D561F622CD97840035A714 = {
1099
 						CreatedOnToolsVersion = 10.1;
1101
 						CreatedOnToolsVersion = 10.1;
1102
+						SystemCapabilities = {
1103
+							com.apple.Push = {
1104
+								enabled = 1;
1105
+							};
1106
+						};
1100
 					};
1107
 					};
1101
 					C5D5620E22CD97860035A714 = {
1108
 					C5D5620E22CD97860035A714 = {
1102
 						CreatedOnToolsVersion = 10.1;
1109
 						CreatedOnToolsVersion = 10.1;
1492
 			buildSettings = {
1499
 			buildSettings = {
1493
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1500
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1494
 				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1501
 				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1502
+				CODE_SIGN_ENTITLEMENTS = KuDianProject/KuDianProject.entitlements;
1495
 				CODE_SIGN_STYLE = Automatic;
1503
 				CODE_SIGN_STYLE = Automatic;
1496
 				DEVELOPMENT_TEAM = WV23VEMQV8;
1504
 				DEVELOPMENT_TEAM = WV23VEMQV8;
1505
+				ENABLE_BITCODE = NO;
1497
 				GCC_PREFIX_HEADER = KuDianProject/PrefixHeader.pch;
1506
 				GCC_PREFIX_HEADER = KuDianProject/PrefixHeader.pch;
1498
 				INFOPLIST_FILE = KuDianProject/Info.plist;
1507
 				INFOPLIST_FILE = KuDianProject/Info.plist;
1499
 				IPHONEOS_DEPLOYMENT_TARGET = 9.1;
1508
 				IPHONEOS_DEPLOYMENT_TARGET = 9.1;
1514
 			buildSettings = {
1523
 			buildSettings = {
1515
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1524
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1516
 				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1525
 				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1526
+				CODE_SIGN_ENTITLEMENTS = KuDianProject/KuDianProject.entitlements;
1517
 				CODE_SIGN_STYLE = Automatic;
1527
 				CODE_SIGN_STYLE = Automatic;
1518
 				DEVELOPMENT_TEAM = WV23VEMQV8;
1528
 				DEVELOPMENT_TEAM = WV23VEMQV8;
1529
+				ENABLE_BITCODE = NO;
1519
 				GCC_PREFIX_HEADER = KuDianProject/PrefixHeader.pch;
1530
 				GCC_PREFIX_HEADER = KuDianProject/PrefixHeader.pch;
1520
 				INFOPLIST_FILE = KuDianProject/Info.plist;
1531
 				INFOPLIST_FILE = KuDianProject/Info.plist;
1521
 				IPHONEOS_DEPLOYMENT_TARGET = 9.1;
1532
 				IPHONEOS_DEPLOYMENT_TARGET = 9.1;

BIN
KuDianProject.xcworkspace/xcuserdata/kaipeng.xcuserdatad/UserInterfaceState.xcuserstate


+ 0 - 12
KuDianProject.xcworkspace/xcuserdata/kaipeng.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

2
 <Bucket
2
 <Bucket
3
    type = "0"
3
    type = "0"
4
    version = "2.0">
4
    version = "2.0">
5
-   <Breakpoints>
6
-      <BreakpointProxy
7
-         BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
8
-         <BreakpointContent
9
-            shouldBeEnabled = "Yes"
10
-            ignoreCount = "0"
11
-            continueAfterRunningActions = "No"
12
-            scope = "0"
13
-            stopOnStyle = "0">
14
-         </BreakpointContent>
15
-      </BreakpointProxy>
16
-   </Breakpoints>
17
 </Bucket>
5
 </Bucket>

+ 8 - 0
KuDianProject/KuDianProject.entitlements

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>aps-environment</key>
6
+	<string>development</string>
7
+</dict>
8
+</plist>

+ 1 - 1
KuDianProject/LiveData/Controller/KDPLiveDataViewController.m

63
         config.shadowLineAnimationType = XLPageShadowLineAnimationTypePan;
63
         config.shadowLineAnimationType = XLPageShadowLineAnimationTypePan;
64
         config.separatorLineBottomMargin = 5;
64
         config.separatorLineBottomMargin = 5;
65
         _pageVC = [[XLPageViewController alloc] initWithConfig:config];
65
         _pageVC = [[XLPageViewController alloc] initWithConfig:config];
66
-        _pageVC.view.bounds = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-KDTabBarHeight);
66
+        _pageVC.view.bounds = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-KDTabBarHeight+1);
67
         _pageVC.delegate = self;
67
         _pageVC.delegate = self;
68
         _pageVC.dataSource = self;
68
         _pageVC.dataSource = self;
69
     }
69
     }

+ 1 - 1
KuDianProject/LiveData/Controller/KDPLiveLeftViewController.m

91
             self.page = 1;
91
             self.page = 1;
92
             [self requestData];
92
             [self requestData];
93
         }];
93
         }];
94
-        _tableView.mj_footer = [MJRefreshBackFooter footerWithRefreshingBlock:^{
94
+        _tableView.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{
95
             self.page ++;
95
             self.page ++;
96
             [self requestData];
96
             [self requestData];
97
         }];
97
         }];

+ 7 - 1
KuDianProject/LiveData/Controller/KDPLiveRightViewController.m

31
     // Do any additional setup after loading the view.
31
     // Do any additional setup after loading the view.
32
     self.navBar.hidden = YES;
32
     self.navBar.hidden = YES;
33
     self.type = @"today";
33
     self.type = @"today";
34
+    [self.navBar setLineViewWithHidden:YES];
34
     UIView *backView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 115)];
35
     UIView *backView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 115)];
35
     [backView setGradientBackgroundWithColors:@[[UIColor colorWithHex:0xFF235F],[UIColor colorWithHex:0xFF7676]] locations:@[@0,@1] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
36
     [backView setGradientBackgroundWithColors:@[[UIColor colorWithHex:0xFF235F],[UIColor colorWithHex:0xFF7676]] locations:@[@0,@1] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
36
     [self.view addSubview:backView];
37
     [self.view addSubview:backView];
84
         _tableView.rowHeight = 105;
85
         _tableView.rowHeight = 105;
85
         _tableView.delegate = self;
86
         _tableView.delegate = self;
86
         _tableView.dataSource = self;
87
         _tableView.dataSource = self;
88
+        if (@available(iOS 11.0, *)) {
89
+            _tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
90
+        } else {
91
+            // Fallback on earlier versions
92
+        }
87
         _tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH-20, 0.1f)];
93
         _tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH-20, 0.1f)];
88
         _tableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
94
         _tableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
89
             self.page = 1;
95
             self.page = 1;
90
             [self requestTotalData];
96
             [self requestTotalData];
91
         }];
97
         }];
92
-        _tableView.mj_footer = [MJRefreshBackFooter footerWithRefreshingBlock:^{
98
+        _tableView.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{
93
             self.page ++;
99
             self.page ++;
94
             [self requestTotalData];
100
             [self requestTotalData];
95
         }];
101
         }];

+ 1 - 1
KuDianProject/LiveData/Controller/KDPOrderDetailViewController.m

76
             self.page = 1;
76
             self.page = 1;
77
             [self requestDetailDataWithPage:self.page];
77
             [self requestDetailDataWithPage:self.page];
78
         }];
78
         }];
79
-        _tableview.mj_footer = [MJRefreshBackFooter footerWithRefreshingBlock:^{
79
+        _tableview.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{
80
             self.page ++;
80
             self.page ++;
81
             [self requestDetailDataWithPage:self.page];
81
             [self requestDetailDataWithPage:self.page];
82
         }];
82
         }];

+ 11 - 0
KuDianProject/Login/controller/KDPPhoneLoginViewController.m

212
     [self.sendCodeBtn setTitle:title forState:UIControlStateNormal];
212
     [self.sendCodeBtn setTitle:title forState:UIControlStateNormal];
213
 }
213
 }
214
 
214
 
215
+-(void)viewWillAppear:(BOOL)animated
216
+{
217
+    [super viewWillAppear:animated];
218
+    [UIApplication sharedApplication].statusBarStyle=UIStatusBarStyleDefault;
219
+}
220
+-(void)viewWillDisappear:(BOOL)animated
221
+{
222
+    [super viewWillDisappear:animated];
223
+    [UIApplication sharedApplication].statusBarStyle=UIStatusBarStyleLightContent;
224
+}
225
+
215
 - (void)updateTime {
226
 - (void)updateTime {
216
     count --;
227
     count --;
217
     [self changeCode];
228
     [self changeCode];

+ 1 - 17
KuDianProject/Login/controller/KDPWebViewViewController.m

28
 }
28
 }
29
 
29
 
30
 - (void)setContentView{
30
 - (void)setContentView{
31
-    self.navBar.backgroundColor = [UIColor whiteColor];
32
-    self.navBar.navTitleLabel.textColor = [UIColor colorWithHex:0x333333];
33
-//    self.backButton = [UIButton buttonWithType:UIButtonTypeSystem];
31
+    self.backButton = [UIButton buttonWithType:UIButtonTypeSystem];
34
 //    [self.backButton setImage:[UIImage imageNamed:@"return_black"] forState:UIControlStateNormal];
32
 //    [self.backButton setImage:[UIImage imageNamed:@"return_black"] forState:UIControlStateNormal];
35
 //    self.backButton.frame = CGRectMake(0, 0, 40, 40);
33
 //    self.backButton.frame = CGRectMake(0, 0, 40, 40);
36
 //    [self.backButton addTarget:self action:@selector(backAction:) forControlEvents:UIControlEventTouchUpInside];
34
 //    [self.backButton addTarget:self action:@selector(backAction:) forControlEvents:UIControlEventTouchUpInside];
37
 //    [self.navBar addSubview:self.backButton];
35
 //    [self.navBar addSubview:self.backButton];
38
-    
39
     [self.navBar addleftReturnButton:self selector:@selector(backAction:)];
36
     [self.navBar addleftReturnButton:self selector:@selector(backAction:)];
40
-    
41
     WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
37
     WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
42
     config.allowsInlineMediaPlayback = NO;
38
     config.allowsInlineMediaPlayback = NO;
43
     self.webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, KDNavBarHeight, SCREEN_WIDTH, SCREEN_HEIGHT-KDNavBarHeight) configuration:config];
39
     self.webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, KDNavBarHeight, SCREEN_WIDTH, SCREEN_HEIGHT-KDNavBarHeight) configuration:config];
121
     self.navBar.navTitleLabel.text = webView.title;
117
     self.navBar.navTitleLabel.text = webView.title;
122
 }
118
 }
123
 
119
 
124
--(void)viewWillAppear:(BOOL)animated
125
-{
126
-    [super viewWillAppear:animated];
127
-    [UIApplication sharedApplication].statusBarStyle=UIStatusBarStyleDefault;
128
-    self.navBar.navTitleLabel.textColor = [UIColor whiteColor];
129
-}
130
--(void)viewWillDisappear:(BOOL)animated
131
-{
132
-    [super viewWillDisappear:animated];
133
-    [UIApplication sharedApplication].statusBarStyle=UIStatusBarStyleLightContent;
134
-}
135
-
136
 - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context{
120
 - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context{
137
     if ([keyPath isEqualToString:NSStringFromSelector(@selector(estimatedProgress))] && object == self.webView ) {
121
     if ([keyPath isEqualToString:NSStringFromSelector(@selector(estimatedProgress))] && object == self.webView ) {
138
         [self.processView setAlpha:1.0];
122
         [self.processView setAlpha:1.0];

+ 1 - 1
KuDianProject/Search/Controller/KDPSearchResultViewController.m

169
             reusAbleView.changeBlock = ^(BOOL isPrice) {
169
             reusAbleView.changeBlock = ^(BOOL isPrice) {
170
                 KDPScreenViewController *screenVC = [[KDPScreenViewController alloc] initWithPrice:isPrice];
170
                 KDPScreenViewController *screenVC = [[KDPScreenViewController alloc] initWithPrice:isPrice];
171
                 screenVC.params = weakSelf.params;
171
                 screenVC.params = weakSelf.params;
172
-                screenVC.view.frame = CGRectMake(91, 0, SCREEN_WIDTH-91, SCREEN_HEIGHT);
173
                 screenVC.resetBlock = ^(BOOL isPrice) {
172
                 screenVC.resetBlock = ^(BOOL isPrice) {
174
                     if (isPrice == YES) {
173
                     if (isPrice == YES) {
175
                         [weakReusAbleView changeScreeWithStyle:KDPSupplyContentButtonStylePrice Color:[UIColor colorWithHex:0x333333] text:@"价格筛选"];
174
                         [weakReusAbleView changeScreeWithStyle:KDPSupplyContentButtonStylePrice Color:[UIColor colorWithHex:0x333333] text:@"价格筛选"];
211
                     [weakSelf.collectionView.mj_header beginRefreshing];
210
                     [weakSelf.collectionView.mj_header beginRefreshing];
212
                 };
211
                 };
213
                 CWLateralSlideConfiguration *conf = [CWLateralSlideConfiguration configurationWithDistance:0 maskAlpha:0.7 scaleY:1 direction:CWDrawerTransitionFromRight backImage:nil];
212
                 CWLateralSlideConfiguration *conf = [CWLateralSlideConfiguration configurationWithDistance:0 maskAlpha:0.7 scaleY:1 direction:CWDrawerTransitionFromRight backImage:nil];
213
+                conf.distance=SCREEN_WIDTH/3*2;
214
                 [weakSelf cw_showDrawerViewController:screenVC animationType:0 configuration:conf];
214
                 [weakSelf cw_showDrawerViewController:screenVC animationType:0 configuration:conf];
215
             };
215
             };
216
             return reusAbleView;
216
             return reusAbleView;

+ 2 - 2
KuDianProject/Search/Controller/KDPSearchViewController.m

120
 
120
 
121
 - (void)requestSearchData:(NSString *)keyWord{
121
 - (void)requestSearchData:(NSString *)keyWord{
122
     NSString *searchUrl = [NSString stringWithFormat:@"%@api/goods/searchAdvice",KDURL];
122
     NSString *searchUrl = [NSString stringWithFormat:@"%@api/goods/searchAdvice",KDURL];
123
-    [self.searchArray removeAllObjects];
124
     [KDPNetworkRequestHTTP postURL:searchUrl params:@{@"keyword":keyWord} success:^(id  _Nonnull json) {
123
     [KDPNetworkRequestHTTP postURL:searchUrl params:@{@"keyword":keyWord} success:^(id  _Nonnull json) {
125
         NSArray *data = json[@"data"];
124
         NSArray *data = json[@"data"];
125
+        [self.searchArray removeAllObjects];
126
         [self.searchArray addObjectsFromArray:data];
126
         [self.searchArray addObjectsFromArray:data];
127
         if (self.searchArray.count) {
127
         if (self.searchArray.count) {
128
             self.historyView.hidden = YES;
128
             self.historyView.hidden = YES;
129
             self.tableview.hidden = NO;
129
             self.tableview.hidden = NO;
130
-            [self.tableview reloadData];
131
         } else{
130
         } else{
132
             self.historyView.hidden = NO;
131
             self.historyView.hidden = NO;
133
             self.tableview.hidden = YES;
132
             self.tableview.hidden = YES;
134
         }
133
         }
134
+        [self.tableview reloadData];
135
     } failure:^(NSError * _Nonnull error) {
135
     } failure:^(NSError * _Nonnull error) {
136
         
136
         
137
     }];
137
     }];

+ 5 - 5
KuDianProject/SupplyGood/Controller/KDPScreenViewController.m

42
 }
42
 }
43
 
43
 
44
 - (void)setContentView{
44
 - (void)setContentView{
45
-    self.tipLabel = [[UILabel alloc] initWithFrame:CGRectMake(13 + 91, KDStatusHeight + 16, SCREEN_WIDTH-91-13, 20)];
45
+    self.tipLabel = [[UILabel alloc] initWithFrame:CGRectMake(13 + SCREEN_WIDTH/3, KDStatusHeight + 16, SCREEN_WIDTH-91-13, 20)];
46
     self.tipLabel.textColor = [UIColor colorWithHexString:@"0x333333"];
46
     self.tipLabel.textColor = [UIColor colorWithHexString:@"0x333333"];
47
     self.tipLabel.font = [UIFont fontWithName:@"PingFang-SC-Medium" size: 14];
47
     self.tipLabel.font = [UIFont fontWithName:@"PingFang-SC-Medium" size: 14];
48
     NSString *tipText = _isPrice ? @"价格区间(元)":@"利润区间";
48
     NSString *tipText = _isPrice ? @"价格区间(元)":@"利润区间";
50
     [self.view addSubview:self.tipLabel];
50
     [self.view addSubview:self.tipLabel];
51
     
51
     
52
     // 初始化tagView
52
     // 初始化tagView
53
-    CGFloat btnWidth = (self.view.width - 91 - kBtnMargin * 2 - 20)/2;
53
+    CGFloat btnWidth = (self.view.width - SCREEN_WIDTH/3 - kBtnMargin * 2 - 20)/2;
54
     CGFloat height = 45;
54
     CGFloat height = 45;
55
     NSArray *btnDataArray = _isPrice ? @[@"最低价",@"最高价",@"10元以下",@"10-50元",@"50-100元",@"100元以上"] : @[@"最低利润",@"",@"20%以上",@"30%以上",@"40%以上",@"50%以上"];
55
     NSArray *btnDataArray = _isPrice ? @[@"最低价",@"最高价",@"10元以下",@"10-50元",@"50-100元",@"100元以上"] : @[@"最低利润",@"",@"20%以上",@"30%以上",@"40%以上",@"50%以上"];
56
     for (NSInteger i = 0; i < 6; i++) {
56
     for (NSInteger i = 0; i < 6; i++) {
57
         NSInteger row = i / 2;
57
         NSInteger row = i / 2;
58
         NSInteger line = i % 2;
58
         NSInteger line = i % 2;
59
-        KDPScreenBtnView *btnView = [[KDPScreenBtnView alloc] initWithFrame:CGRectMake(kBtnMargin +91 + (btnWidth+20)*line,self.tipLabel.bottom + 25 + row *(17+height) , btnWidth, height)];
59
+        KDPScreenBtnView *btnView = [[KDPScreenBtnView alloc] initWithFrame:CGRectMake(kBtnMargin +SCREEN_WIDTH/3 + (btnWidth+20)*line,self.tipLabel.bottom + 25 + row *(17+height) , btnWidth, height)];
60
         btnView.delegate = self;
60
         btnView.delegate = self;
61
         btnView.tag = kBaseBtnViewTag + i;
61
         btnView.tag = kBaseBtnViewTag + i;
62
         btnView.textColor = [UIColor colorWithHexString:@"#333333"];
62
         btnView.textColor = [UIColor colorWithHexString:@"#333333"];
80
     // 重置按钮和确定按钮
80
     // 重置按钮和确定按钮
81
     
81
     
82
     UIButton *resetBtn = [UIButton buttonWithType:UIButtonTypeCustom];
82
     UIButton *resetBtn = [UIButton buttonWithType:UIButtonTypeCustom];
83
-    resetBtn.frame = CGRectMake(91 + 14, self.tipLabel.bottom + 235, (SCREEN_WIDTH-91-28)/2, 41);
83
+    resetBtn.frame = CGRectMake(SCREEN_WIDTH/3 + 14, self.tipLabel.bottom + 235, (SCREEN_WIDTH-SCREEN_WIDTH/3-28)/2, 41);
84
 //    [resetBtn setGradientBackgroundWithColors:@[[UIColor colorWithRGB:0xFFC300],[UIColor colorWithRGB:0xFF9A01]] locations:@[@0,@1] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)];
84
 //    [resetBtn setGradientBackgroundWithColors:@[[UIColor colorWithRGB:0xFFC300],[UIColor colorWithRGB:0xFF9A01]] locations:@[@0,@1] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)];
85
     resetBtn.backgroundColor = [UIColor colorWithHex:0xFF7693];
85
     resetBtn.backgroundColor = [UIColor colorWithHex:0xFF7693];
86
     [resetBtn addCornerRadiusByRoundingCorners:UIRectCornerTopLeft | UIRectCornerBottomLeft cornerRadii:CGSizeMake(20, 20)];
86
     [resetBtn addCornerRadiusByRoundingCorners:UIRectCornerTopLeft | UIRectCornerBottomLeft cornerRadii:CGSizeMake(20, 20)];
92
     [self.view addSubview:resetBtn];
92
     [self.view addSubview:resetBtn];
93
     
93
     
94
     UIButton *confirmBtn = [UIButton buttonWithType:UIButtonTypeCustom];
94
     UIButton *confirmBtn = [UIButton buttonWithType:UIButtonTypeCustom];
95
-    confirmBtn.frame = CGRectMake(resetBtn.right, self.tipLabel.bottom + 235, (SCREEN_WIDTH-91-28)/2, 41);
95
+    confirmBtn.frame = CGRectMake(resetBtn.right, self.tipLabel.bottom + 235, (SCREEN_WIDTH-SCREEN_WIDTH/3-28)/2, 41);
96
 //    [confirmBtn setGradientBackgroundWithColors:@[[UIColor colorWithRGB:0xFF8300],[UIColor colorWithRGB:0xFF5200]] locations:@[@0,@1] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)];
96
 //    [confirmBtn setGradientBackgroundWithColors:@[[UIColor colorWithRGB:0xFF8300],[UIColor colorWithRGB:0xFF5200]] locations:@[@0,@1] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)];
97
     confirmBtn.backgroundColor = [UIColor colorWithHex:0xFF6B8A];
97
     confirmBtn.backgroundColor = [UIColor colorWithHex:0xFF6B8A];
98
     [confirmBtn addCornerRadiusByRoundingCorners:UIRectCornerTopRight | UIRectCornerBottomRight cornerRadii:CGSizeMake(20, 20)];
98
     [confirmBtn addCornerRadiusByRoundingCorners:UIRectCornerTopRight | UIRectCornerBottomRight cornerRadii:CGSizeMake(20, 20)];

+ 2 - 2
KuDianProject/SupplyGood/Controller/KDPSupplyContentViewController.m

111
             self.page = 1;
111
             self.page = 1;
112
             [self requestGoodlistData];
112
             [self requestGoodlistData];
113
         }];
113
         }];
114
-        _collectionView.mj_footer = [MJRefreshBackFooter footerWithRefreshingBlock:^{
114
+        _collectionView.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{
115
             self.page ++;
115
             self.page ++;
116
             [self requestGoodlistData];
116
             [self requestGoodlistData];
117
         }];
117
         }];
248
                 weakSelf.shouldHiddenScreen = NO;
248
                 weakSelf.shouldHiddenScreen = NO;
249
                 KDPScreenViewController *screenVC = [[KDPScreenViewController alloc] initWithPrice:isPrice];
249
                 KDPScreenViewController *screenVC = [[KDPScreenViewController alloc] initWithPrice:isPrice];
250
                 screenVC.params = weakSelf.mutabParams;
250
                 screenVC.params = weakSelf.mutabParams;
251
-                screenVC.view.frame = CGRectMake(91, 0, SCREEN_WIDTH-91, SCREEN_HEIGHT);
252
                 screenVC.resetBlock = ^(BOOL isPrice) {
251
                 screenVC.resetBlock = ^(BOOL isPrice) {
253
                     if (isPrice == YES) {
252
                     if (isPrice == YES) {
254
                         [weakReusAbleView changeScreeWithStyle:KDPSupplyContentButtonStylePrice Color:[UIColor colorWithHex:0x333333] text:@"价格筛选"];
253
                         [weakReusAbleView changeScreeWithStyle:KDPSupplyContentButtonStylePrice Color:[UIColor colorWithHex:0x333333] text:@"价格筛选"];
290
                     [weakSelf.collectionView.mj_header beginRefreshing];
289
                     [weakSelf.collectionView.mj_header beginRefreshing];
291
                 };
290
                 };
292
                 CWLateralSlideConfiguration *conf = [CWLateralSlideConfiguration configurationWithDistance:0 maskAlpha:0.7 scaleY:1 direction:CWDrawerTransitionFromRight backImage:nil];
291
                 CWLateralSlideConfiguration *conf = [CWLateralSlideConfiguration configurationWithDistance:0 maskAlpha:0.7 scaleY:1 direction:CWDrawerTransitionFromRight backImage:nil];
292
+                conf.distance=SCREEN_WIDTH/3*2;
293
                 [weakSelf cw_showDrawerViewController:screenVC animationType:0 configuration:conf];
293
                 [weakSelf cw_showDrawerViewController:screenVC animationType:0 configuration:conf];
294
             };
294
             };
295
             return reusAbleView;
295
             return reusAbleView;

+ 2 - 1
KuDianProject/SupplyGood/Controller/KDPSupplyGoodViewController.m

91
 
91
 
92
 - (void)setUpTopView{
92
 - (void)setUpTopView{
93
     self.navBar.hidden = YES;
93
     self.navBar.hidden = YES;
94
-    UIView *topBackView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 163)];
94
+    NSInteger height = KDNavBarHeight == 64 ? 130 : 163;
95
+    UIView *topBackView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, height)];
95
     [topBackView setGradientBackgroundWithColors:@[[UIColor colorWithRGB:0xFF235F],[UIColor colorWithRGB:0xFF7676]] locations:@[@0,@1] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
96
     [topBackView setGradientBackgroundWithColors:@[[UIColor colorWithRGB:0xFF235F],[UIColor colorWithRGB:0xFF7676]] locations:@[@0,@1] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
96
     [self.view addSubview:topBackView];
97
     [self.view addSubview:topBackView];
97
     
98
     

+ 1 - 1
KuDianProject/SupplyGood/Controller/KDPSupplyListViewController.m

140
         reusAbleView.changeBlock = ^(BOOL isPrice) {
140
         reusAbleView.changeBlock = ^(BOOL isPrice) {
141
             KDPScreenViewController *screenVC = [[KDPScreenViewController alloc] initWithPrice:isPrice];
141
             KDPScreenViewController *screenVC = [[KDPScreenViewController alloc] initWithPrice:isPrice];
142
             screenVC.params = weakSelf.params;
142
             screenVC.params = weakSelf.params;
143
-            screenVC.view.frame = CGRectMake(91, 0, SCREEN_WIDTH-91, SCREEN_HEIGHT);
144
             screenVC.resetBlock = ^(BOOL isPrice) {
143
             screenVC.resetBlock = ^(BOOL isPrice) {
145
                 if (isPrice == YES) {
144
                 if (isPrice == YES) {
146
                     [weakReusAbleView changeScreeWithStyle:KDPSupplyContentButtonStylePrice Color:[UIColor colorWithHex:0x333333] text:@"价格筛选"];
145
                     [weakReusAbleView changeScreeWithStyle:KDPSupplyContentButtonStylePrice Color:[UIColor colorWithHex:0x333333] text:@"价格筛选"];
182
                 [weakSelf.collectionView.mj_header beginRefreshing];
181
                 [weakSelf.collectionView.mj_header beginRefreshing];
183
             };
182
             };
184
             CWLateralSlideConfiguration *conf = [CWLateralSlideConfiguration configurationWithDistance:0 maskAlpha:0.7 scaleY:1 direction:CWDrawerTransitionFromRight backImage:nil];
183
             CWLateralSlideConfiguration *conf = [CWLateralSlideConfiguration configurationWithDistance:0 maskAlpha:0.7 scaleY:1 direction:CWDrawerTransitionFromRight backImage:nil];
184
+            conf.distance=SCREEN_WIDTH/3*2;
185
             [weakSelf cw_showDrawerViewController:screenVC animationType:0 configuration:conf];
185
             [weakSelf cw_showDrawerViewController:screenVC animationType:0 configuration:conf];
186
         };
186
         };
187
         return reusAbleView;
187
         return reusAbleView;

+ 1 - 1
KuDianProject/SupplyGood/View/KDPSupplyCommentViewCell.m

105
 - (void)setSubViewsConstraints{
105
 - (void)setSubViewsConstraints{
106
     [_commentImageView mas_makeConstraints:^(MASConstraintMaker *make) {
106
     [_commentImageView mas_makeConstraints:^(MASConstraintMaker *make) {
107
         make.top.equalTo(self.contentView.mas_top).offset(30);
107
         make.top.equalTo(self.contentView.mas_top).offset(30);
108
-        make.size.equalTo(CGSizeMake(20, 35));
108
+        make.size.equalTo(CGSizeMake(40, 40));
109
         make.centerX.equalTo(self.contentView);
109
         make.centerX.equalTo(self.contentView);
110
     }];
110
     }];
111
     [_commentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
111
     [_commentLabel mas_makeConstraints:^(MASConstraintMaker *make) {