wangwei vor 6 Jahren
Ursprung
Commit
5f68cb2ffd

+ 1 - 1
CAISHEN/SellPhone2/Home/AssessPage/Controller/KXAssessComputerViewController.m

@@ -263,7 +263,7 @@ static NSString *cellID = @"cellID";
263 263
     
264 264
     NSString *urlString = [NSString stringWithFormat:@"%@/recycle/addRecycle", URL];
265 265
     NSDictionary *paramsDict = @{
266
-                                 @"module" : @"pad",
266
+                                 @"module" : @"computer",
267 267
                                  @"content" : [self.computerModel yy_modelToJSONString]
268 268
                                  };
269 269
     

+ 18 - 1
CAISHEN/SellPhone2/Home/HomePage/Controller/KXSPHomeViewController.m

@@ -45,7 +45,7 @@ static NSString *cellID = @"cellID";
45 45
         _headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 200)];
46 46
         
47 47
         UIColor *topColor = WWColor(219, 141, 255, 1);
48
-        UIColor *bottomColor = WWColor(245, 245, 245, 1);
48
+        UIColor *bottomColor = WWColor(233, 202, 248, 1);
49 49
         UIImage *bgImg = [UIImage gradientColorImageFromColors:@[topColor, bottomColor] gradientType:GradientTypeTopToBottom imgSize:_headerView.frame.size];
50 50
         [_headerView setBackgroundColor:[UIColor colorWithPatternImage:bgImg]];
51 51
         
@@ -128,6 +128,16 @@ static NSString *cellID = @"cellID";
128 128
 - (void)createNaviBar {
129 129
     NSString *appName = [NSString getAppName];
130 130
     self.name = appName;
131
+    
132
+//    for (UIView *views in self.navigationController.navigationBar.subviews) {
133
+//        for (UIView *view in views.subviews) {
134
+//            if ([view isKindOfClass:[UIImageView class]]) {
135
+//                view.hidden = YES;
136
+//            }
137
+//        }
138
+//    }
139
+    
140
+    self.navigationController.navigationBar.barTintColor = WWColor(219, 141, 255, 1);
131 141
 }
132 142
 
133 143
 #pragma mark - tableView dataSource
@@ -146,6 +156,13 @@ static NSString *cellID = @"cellID";
146 156
     cell.pushVC = self;
147 157
     cell.titleLabel.text = titleArray[indexPath.row];
148 158
     cell.indexPath = indexPath;
159
+    if (indexPath.row == 0) {
160
+        UIColor *topColor = WWColor(233, 202, 248, 1);
161
+        UIColor *bottomColor = WWColor(245, 245, 245, 1);
162
+        UIImage *bgImg = [UIImage gradientColorImageFromColors:@[topColor, bottomColor] gradientType:GradientTypeTopToBottom imgSize:CGSizeMake(SCREEN_WIDTH, 190)];
163
+        [cell.contentView setBackgroundColor:[UIColor colorWithPatternImage:bgImg]];
164
+    }
165
+    
149 166
     cell.dataSource = self.dataArray[indexPath.row];
150 167
     return cell;
151 168
 }

+ 1 - 2
CAISHEN/SellPhone2/Home/HomePage/View/KXSPHomeViewCell.m

@@ -22,7 +22,6 @@ static NSString *collectionCellID = @"collectionCellID";
22 22
     [super awakeFromNib];
23 23
     // Initialization code
24 24
     self.titleLabel.font = [UIFont fontWithName:@"PingFangSC-Medium" size:17];
25
-    
26 25
     [self.collectionView reloadData];
27 26
 }
28 27
 
@@ -36,7 +35,7 @@ static NSString *collectionCellID = @"collectionCellID";
36 35
         flowLayout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
37 36
         
38 37
         _collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 140) collectionViewLayout:flowLayout];
39
-        _collectionView.backgroundColor = [UIColor groupTableViewBackgroundColor];
38
+        _collectionView.backgroundColor = [UIColor clearColor];
40 39
         [_collectionView registerNib:[UINib nibWithNibName:@"KXSPHomeCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:collectionCellID];
41 40
         _collectionView.showsHorizontalScrollIndicator = NO;
42 41
         _collectionView.dataSource = self;

+ 1 - 1
CAISHEN/SellPhone2/Home/HomePage/View/KXSPHomeViewCell.xib

@@ -30,7 +30,7 @@
30 30
                     </label>
31 31
                     <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ecz-r2-i8e">
32 32
                         <rect key="frame" x="0.0" y="40" width="362" height="94.5"/>
33
-                        <color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
33
+                        <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
34 34
                     </view>
35 35
                 </subviews>
36 36
                 <constraints>