Browse Source

电脑标识

wangwei 5 years ago
parent
commit
5f68cb2ffd

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

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

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

45
         _headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 200)];
45
         _headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 200)];
46
         
46
         
47
         UIColor *topColor = WWColor(219, 141, 255, 1);
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
         UIImage *bgImg = [UIImage gradientColorImageFromColors:@[topColor, bottomColor] gradientType:GradientTypeTopToBottom imgSize:_headerView.frame.size];
49
         UIImage *bgImg = [UIImage gradientColorImageFromColors:@[topColor, bottomColor] gradientType:GradientTypeTopToBottom imgSize:_headerView.frame.size];
50
         [_headerView setBackgroundColor:[UIColor colorWithPatternImage:bgImg]];
50
         [_headerView setBackgroundColor:[UIColor colorWithPatternImage:bgImg]];
51
         
51
         
128
 - (void)createNaviBar {
128
 - (void)createNaviBar {
129
     NSString *appName = [NSString getAppName];
129
     NSString *appName = [NSString getAppName];
130
     self.name = appName;
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
 #pragma mark - tableView dataSource
143
 #pragma mark - tableView dataSource
146
     cell.pushVC = self;
156
     cell.pushVC = self;
147
     cell.titleLabel.text = titleArray[indexPath.row];
157
     cell.titleLabel.text = titleArray[indexPath.row];
148
     cell.indexPath = indexPath;
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
     cell.dataSource = self.dataArray[indexPath.row];
166
     cell.dataSource = self.dataArray[indexPath.row];
150
     return cell;
167
     return cell;
151
 }
168
 }

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

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

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

30
                     </label>
30
                     </label>
31
                     <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ecz-r2-i8e">
31
                     <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ecz-r2-i8e">
32
                         <rect key="frame" x="0.0" y="40" width="362" height="94.5"/>
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
                     </view>
34
                     </view>
35
                 </subviews>
35
                 </subviews>
36
                 <constraints>
36
                 <constraints>