学丽 5 years ago
parent
commit
7c7289e658
30 changed files with 69 additions and 52 deletions
  1. 1 2
      KuDianProject/AppConfig.h
  2. 23 0
      KuDianProject/Assets.xcassets/placholderImg.imageset/Contents.json
  3. BIN
      KuDianProject/Assets.xcassets/placholderImg.imageset/placholderImg.png
  4. BIN
      KuDianProject/Assets.xcassets/placholderImg.imageset/placholderImg@2x.png
  5. BIN
      KuDianProject/Assets.xcassets/placholderImg.imageset/placholderImg@3x.png
  6. 2 18
      KuDianProject/Earning/Controller/KDPEarnViewController.m
  7. 1 1
      KuDianProject/Earning/View/KDPAccountListCell.m
  8. 1 1
      KuDianProject/Earning/View/KDPEarningHeadView.m
  9. 1 1
      KuDianProject/Earning/View/KDPForecastOrderCell.m
  10. 1 1
      KuDianProject/LiveData/Controller/KDPLiveLeftTableViewCell.m
  11. 1 1
      KuDianProject/LiveData/Controller/KDPLiveRightTableViewCell.m
  12. 1 0
      KuDianProject/LiveData/Controller/KDPLiveRightViewController.m
  13. 1 1
      KuDianProject/LiveData/Controller/KDPOrderDetailTableViewCell.m
  14. 3 0
      KuDianProject/MainTab/KDPMainNavViewController.m
  15. 1 1
      KuDianProject/SupplyGood/Controller/KDPSupplyGoodViewController.m
  16. 1 1
      KuDianProject/SupplyGood/View/KDPSupplyCommentViewCell.m
  17. 1 1
      KuDianProject/SupplyGood/View/KDPSupplyGoodCollectionViewCell.m
  18. 1 1
      KuDianProject/TOP/Controller/KDPDrawerVC.m
  19. 4 1
      KuDianProject/TOP/Controller/KDPGoodDetailVC.m
  20. 3 2
      KuDianProject/TOP/Controller/KDPTodayListViewController.m
  21. 7 6
      KuDianProject/TOP/Controller/KDPTopViewController.m
  22. 7 6
      KuDianProject/TOP/Drawer/Control/KDPCollectHistoryPageVC.m
  23. 1 0
      KuDianProject/TOP/Drawer/Control/KDPCollectHistoryVC.m
  24. 1 1
      KuDianProject/TOP/Drawer/Control/KDPIDViewController.m
  25. 1 1
      KuDianProject/TOP/Drawer/Control/KDPUserInfoVC.m
  26. 1 1
      KuDianProject/TOP/Drawer/View/KDPHistoryListCell.m
  27. 1 1
      KuDianProject/TOP/Drawer/View/KDPMessageTableViewCell.m
  28. 1 1
      KuDianProject/TOP/View/Detail/KDPShopView.m
  29. 1 1
      KuDianProject/TOP/View/KDPRecommendGoodCell.m
  30. 1 1
      KuDianProject/TOP/View/KDPTodayListCell.m

+ 1 - 2
KuDianProject/AppConfig.h

@@ -14,12 +14,11 @@
14 14
 
15 15
 #define UMENG_KEY @"5cbebbdc4ca357298a000094"
16 16
 
17
+#define placholderImg @"placholderImg"
17 18
 #define SOURCE_ID @"7000"
18 19
 
19
-
20 20
 //验证码签名
21 21
 #define SignCode @"cNHWj7pqBSXTi2DS4uvxqMTzuXOk5xvL"
22
-
23 22
 #define UserPhone  @"UserPhone"
24 23
 
25 24
 

+ 23 - 0
KuDianProject/Assets.xcassets/placholderImg.imageset/Contents.json

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

BIN
KuDianProject/Assets.xcassets/placholderImg.imageset/placholderImg.png


BIN
KuDianProject/Assets.xcassets/placholderImg.imageset/placholderImg@2x.png


BIN
KuDianProject/Assets.xcassets/placholderImg.imageset/placholderImg@3x.png


+ 2 - 18
KuDianProject/Earning/Controller/KDPEarnViewController.m

@@ -12,7 +12,7 @@
12 12
 #import "KDPAccountVC.h"
13 13
 #import "KDPForecastVC.h"
14 14
 
15
-@interface KDPEarnViewController ()<UITableViewDelegate,UITableViewDataSource,DZNEmptyDataSetDelegate,DZNEmptyDataSetSource>
15
+@interface KDPEarnViewController ()<UITableViewDelegate,UITableViewDataSource>
16 16
 @property(nonatomic,strong)NSDictionary *incomeDic;
17 17
 @property(nonatomic,strong)KDPEarningHeadView *headView;
18 18
 @property(nonatomic,strong)UITableView *tableView;
@@ -86,21 +86,6 @@
86 86
     return 0;
87 87
 }
88 88
 
89
-- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView{
90
-    return [UIImage imageNamed:@"no_order"];
91
-}
92
-
93
-- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView{
94
-    return YES;
95
-}
96
-
97
-- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView{
98
-    return [[NSAttributedString alloc] initWithString:@"还没有记录" attributes:@{NSForegroundColorAttributeName:[UIColor colorWithHex:0x333333],NSFontAttributeName:FONT_SYS(12)}];
99
-}
100
-
101
-- (CGFloat )spaceHeightForEmptyDataSet:(UIScrollView *)scrollView{
102
-    return 50;
103
-}
104 89
 
105 90
 #pragma mark---侧滑
106 91
 -(void)drawerClickButton
@@ -139,8 +124,7 @@
139 124
         _tableView =[[UITableView alloc]init];
140 125
         _tableView.delegate =self;
141 126
         _tableView.dataSource=self;
142
-        _tableView.emptyDataSetDelegate = self;
143
-        _tableView.emptyDataSetSource = self; _tableView.separatorStyle=UITableViewCellSeparatorStyleNone;
127
+        _tableView.separatorStyle=UITableViewCellSeparatorStyleNone;
144 128
         _tableView.backgroundColor=[UIColor clearColor];
145 129
     }
146 130
     return _tableView;

+ 1 - 1
KuDianProject/Earning/View/KDPAccountListCell.m

@@ -61,7 +61,7 @@
61 61
 -(void)setModel:(KDPBalanceModel *)model
62 62
 {
63 63
     _model=model;
64
-    [self.iconImgV sd_setImageWithURL:[NSURL URLWithString:model.img]];
64
+    [self.iconImgV sd_setImageWithURL:[NSURL URLWithString:model.img]placeholderImage:[UIImage imageNamed:placholderImg]];
65 65
     self.titleLabel.text=model.title;
66 66
     self.timeLabel.text=model.create_time;
67 67
     self.tipeLabel.text=model.message;

+ 1 - 1
KuDianProject/Earning/View/KDPEarningHeadView.m

@@ -47,7 +47,7 @@
47 47
     imgv.layer.cornerRadius=14;
48 48
     imgv.layer.masksToBounds=YES;
49 49
     KDPAccountModel *model=[KDPAccountTool account];
50
-    [imgv sd_setImageWithURL:[NSURL URLWithString:model.img]];
50
+    [imgv sd_setImageWithURL:[NSURL URLWithString:model.img]placeholderImage:[UIImage imageNamed:placholderImg]];
51 51
     [self.headImgBtn addSubview:imgv];
52 52
     
53 53
     UIImageView *imgV=[[UIImageView alloc]init];

+ 1 - 1
KuDianProject/Earning/View/KDPForecastOrderCell.m

@@ -64,7 +64,7 @@
64 64
     _model = model;
65 65
     self.goodTitleLabel.text=model.name;
66 66
     self.addTimeL.text=[NSString stringWithFormat:@"创建日:%@",model.order_create_at];
67
-    [self.goodImgV sd_setImageWithURL:[NSURL URLWithString:model.img]];
67
+    [self.goodImgV sd_setImageWithURL:[NSURL URLWithString:model.img]placeholderImage:[UIImage imageNamed:placholderImg]];
68 68
     
69 69
     NSMutableAttributedString *forastcaStr;
70 70
     switch ([model.status integerValue]) {//0已失效 1已付款 2已结算  status

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

@@ -172,7 +172,7 @@
172 172
     _timeLabel.text = [NSString stringWithFormat:@"直播时间:%@",model.show_time];
173 173
     _goodCountLabel.text = model.goods_num;
174 174
     _orderLabel.text = model.order_num;
175
-    [_iconImageView sd_setImageWithURL:[NSURL URLWithString:model.show_img]];
175
+    [_iconImageView sd_setImageWithURL:[NSURL URLWithString:model.show_img]placeholderImage:[UIImage imageNamed:placholderImg]];
176 176
     _investLabel.text = model.pre_rebate;
177 177
     
178 178
 }

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

@@ -163,7 +163,7 @@
163 163
 
164 164
 - (void)configWithViewModel:(id)viewModel indexpath:(NSIndexPath *)indexPath{
165 165
     KDPLiveStatisticsModel *statisModel = (KDPLiveStatisticsModel *)viewModel;
166
-    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:statisModel.img]];
166
+    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:statisModel.img]placeholderImage:[UIImage imageNamed:placholderImg]];
167 167
     self.titleLabel.text = statisModel.name;
168 168
     self.priceLabel.text = [NSString stringWithFormat:@"%.2f",[statisModel.money floatValue]];
169 169
     self.profitLabel.text = [NSString stringWithFormat:@"%@%%",statisModel.commission_rate];

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

@@ -31,6 +31,7 @@
31 31
     // Do any additional setup after loading the view.
32 32
     self.navBar.hidden = YES;
33 33
     self.type = @"today";
34
+    
34 35
     UIView *backView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 115)];
35 36
     [backView setGradientBackgroundWithColors:@[[UIColor colorWithHex:0xFF235F],[UIColor colorWithHex:0xFF7676]] locations:@[@0,@1] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
36 37
     [self.view addSubview:backView];

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

@@ -136,7 +136,7 @@
136 136
 
137 137
 - (void)configWithViewModel:(id)viewModel indexpath:(NSIndexPath *)indexPath{
138 138
     KDPLiveDetailModel *detailModel = (KDPLiveDetailModel *)viewModel;
139
-    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:detailModel.img]];
139
+    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:detailModel.img]placeholderImage:[UIImage imageNamed:placholderImg]];
140 140
     self.goodTitleLabel.text = detailModel.name;
141 141
     self.createTimeLabel.text = [NSString stringWithFormat:@"创建日:%@",detailModel.order_create_at];
142 142
     self.endTimeLabel.text = [NSString stringWithFormat:@"结算日:%@",detailModel.order_balance_at];

+ 3 - 0
KuDianProject/MainTab/KDPMainNavViewController.m

@@ -17,8 +17,11 @@
17 17
 - (void)viewDidLoad {
18 18
     [super viewDidLoad];
19 19
     // Do any additional setup after loading the view.
20
+    self.navigationBar.shadowImage= [UIImage new];
21
+    self.navigationController.navigationBar.shadowImage= [UIImage new];
20 22
 }
21 23
 
24
+
22 25
 - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
23 26
     
24 27
     // 解决push到子控制器时tabbar不隐藏的问题

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

@@ -140,7 +140,7 @@
140 140
     KDPClassModel *classModel = self.classArray[index];
141 141
     if (classModel.backimg.length) {
142 142
         self.topBackImageView.hidden = NO;
143
-        [self.topBackImageView sd_setImageWithURL:[NSURL URLWithString:classModel.backimg]];
143
+        [self.topBackImageView sd_setImageWithURL:[NSURL URLWithString:classModel.backimg]placeholderImage:[UIImage imageNamed:placholderImg]];
144 144
     } else{
145 145
         self.topBackImageView.hidden = YES;
146 146
     }

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

@@ -118,7 +118,7 @@
118 118
 
119 119
 - (void)configCellWithModel:(id)model indexPath:(NSIndexPath *)indexpath{
120 120
     KDPClassModel *goodModel = (KDPClassModel *)model;
121
-    [_commentImageView sd_setImageWithURL:[NSURL URLWithString:goodModel.icon]];
121
+    [_commentImageView sd_setImageWithURL:[NSURL URLWithString:goodModel.icon]placeholderImage:[UIImage imageNamed:placholderImg]];
122 122
     _commentLabel.text = goodModel.name;
123 123
 }
124 124
 

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

@@ -129,7 +129,7 @@
129 129
 
130 130
 - (void)configCellWithModel:(id)model indexPath:(NSIndexPath *)indexpath{
131 131
     KDPGoodsModel *goodModel = (KDPGoodsModel *)model;
132
-    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:goodModel.img]];
132
+    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:goodModel.img]placeholderImage:[UIImage imageNamed:placholderImg]];
133 133
     self.goodLabel.text = goodModel.title;
134 134
     NSString *priceString = [NSString stringWithFormat:@"¥%@",goodModel.discount_price];
135 135
     NSMutableAttributedString *mutableAttPrice = [[NSMutableAttributedString alloc] initWithString:priceString attributes:@{NSForegroundColorAttributeName:[UIColor colorWithHex:0x333333],NSFontAttributeName:[UIFont fontWithName:@"PingFangSC-Medium" size: 18]}];

+ 1 - 1
KuDianProject/TOP/Controller/KDPDrawerVC.m

@@ -142,7 +142,7 @@
142 142
     headImgV.layer.masksToBounds=YES;
143 143
     [backV addSubview:headImgV];
144 144
     KDPAccountModel *model =[KDPAccountTool account];
145
-    [headImgV sd_setImageWithURL:[NSURL URLWithString:model.img]];
145
+    [headImgV sd_setImageWithURL:[NSURL URLWithString:model.img]placeholderImage:[UIImage imageNamed:placholderImg]];
146 146
     headImgV.centerX=backV.centerX;
147 147
     
148 148
     headLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, headImgV.bottom+10, SCREEN_WIDTH/3*2, 21)];

+ 4 - 1
KuDianProject/TOP/Controller/KDPGoodDetailVC.m

@@ -11,6 +11,7 @@
11 11
 #import "KDPSellingPointView.h"
12 12
 #import "KDPShopView.h"
13 13
 #import <WebKit/WebKit.h>
14
+#import "KDPCollectHistoryPageVC.h"
14 15
 #import "KDPPasteView.h"
15 16
 #import <AlibcTradeSDK/AlibcTradeSDK.h>
16 17
 #define goodHeight 496+KDStatusHeight
@@ -299,6 +300,7 @@
299 300
     
300 301
     UIButton * collectBtn=[[UIButton alloc]initWithFrame:CGRectMake(self.view.width-47, KDStatusHeight+10, 30, 30)];
301 302
     [collectBtn setImage:[UIImage imageNamed:@"detail_collection"] forState:UIControlStateNormal];
303
+    collectBtn.adjustsImageWhenHighlighted=NO;
302 304
     [collectBtn addTarget:self action:@selector(collectPageClickSel) forControlEvents:UIControlEventTouchUpInside];
303 305
     [self.view addSubview:collectBtn];
304 306
     
@@ -393,7 +395,8 @@
393 395
 }
394 396
 -(void)collectPageClickSel
395 397
 {
396
-    KDPCollectHistoryVC *histT=[[KDPCollectHistoryVC alloc]init];
398
+    KDPCollectHistoryPageVC *histT=[[KDPCollectHistoryPageVC alloc]init];
399
+    
397 400
     [self.navigationController pushViewController:histT animated:YES];
398 401
 }
399 402
 #pragma mark---推广到快手

+ 3 - 2
KuDianProject/TOP/Controller/KDPTodayListViewController.m

@@ -49,6 +49,8 @@
49 49
     [self.view addSubview:self.tableView];
50 50
    
51 51
     if (![self.todayStr isEqualToString:@"销量走势"]) {
52
+        _tableView.emptyDataSetDelegate = self;
53
+        _tableView.emptyDataSetSource = self;
52 54
         if ([self.todayStr isEqualToString:@"实时订单"]) {
53 55
            
54 56
             [self timerClickAction];
@@ -198,8 +200,7 @@
198 200
         _tableView.separatorStyle=UITableViewCellSeparatorStyleNone;
199 201
         _tableView.delegate=self;
200 202
         _tableView.dataSource=self;
201
-        _tableView.emptyDataSetDelegate = self;
202
-        _tableView.emptyDataSetSource = self;
203
+       
203 204
         _tableView.showsVerticalScrollIndicator=NO;
204 205
         _tableView.showsHorizontalScrollIndicator=NO;
205 206
     }

+ 7 - 6
KuDianProject/TOP/Controller/KDPTopViewController.m

@@ -54,7 +54,7 @@
54 54
     [self initUI];
55 55
     
56 56
 
57
-    [self getUserTodayIncom];
57
+   
58 58
     
59 59
     
60 60
 }
@@ -62,7 +62,7 @@
62 62
 #pragma makr---首页收益
63 63
 -(void)getUserTodayIncom
64 64
 {
65
-    [LoadingView show];
65
+//    [LoadingView show];
66 66
     [KDPNetworkRequestHTTP postURL:topIncomeUrl params:nil success:^(id  _Nonnull json) {
67 67
         //订单数量,返回的是总数量,减去之前的数量
68 68
         
@@ -75,9 +75,9 @@
75 75
         
76 76
         [self.dataCollectionView reloadData];
77 77
         
78
-        [LoadingView dismiss];
78
+//        [LoadingView dismiss];
79 79
     } failure:^(NSError * _Nonnull error) {
80
-        [LoadingView dismiss];
80
+//        [LoadingView dismiss];
81 81
     }];
82 82
 }
83 83
 
@@ -346,7 +346,8 @@
346 346
         _dataCollectionView.delegate=self;
347 347
         _dataCollectionView.dataSource=self;
348 348
         _dataCollectionView.mj_header=[MJRefreshNormalHeader headerWithRefreshingBlock:^{
349
-            self.pageNum = @"1";
349
+            
350
+            [self initialieValues];
350 351
             [self getRecommendGood];
351 352
         }];
352 353
         _dataCollectionView.emptyDataSetDelegate = self;
@@ -411,7 +412,7 @@
411 412
 {
412 413
     KDPAccountModel *model=[KDPAccountTool account];
413 414
     UIImageView *imgv=[self.headImgBtn viewWithTag:1000];
414
-    [imgv sd_setImageWithURL:[NSURL URLWithString:model.img]];
415
+    [imgv sd_setImageWithURL:[NSURL URLWithString:model.img]placeholderImage:[UIImage imageNamed:placholderImg]];
415 416
 }
416 417
 
417 418
 #pragma mark---打开服务提示页面

+ 7 - 6
KuDianProject/TOP/Drawer/Control/KDPCollectHistoryPageVC.m

@@ -22,7 +22,7 @@
22 22
 - (void)viewDidLoad {
23 23
     [super viewDidLoad];
24 24
     [self setUpPageVc];
25
-    
25
+    self.navigationController.navigationBar.barTintColor=[UIColor gradientOneColor:[UIColor colorWithHexString:@"#FF235F"] toColor:[UIColor colorWithHexString:@"#FF7676"] Width:SCREEN_WIDTH];
26 26
 }
27 27
 - (void)setUpPageVc{
28 28
     self.navBar.hidden=YES;
@@ -30,7 +30,7 @@
30 30
     titleArray=@[@"收藏夹",@"浏览记录"];
31 31
     [UIApplication sharedApplication].statusBarStyle=UIStatusBarStyleDefault;
32 32
     UIButton *returnBtn =[[UIButton alloc]initWithFrame:CGRectMake(0, KDStatusHeight, 0, 0)];
33
-    [returnBtn setImage:[UIImage imageNamed:@"return_black"] forState:UIControlStateNormal];
33
+    [returnBtn setImage:[UIImage imageNamed:@"return_white"] forState:UIControlStateNormal];
34 34
     [returnBtn addTarget:self action:@selector(returnClickBtn) forControlEvents:UIControlEventTouchUpInside];
35 35
     self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc]initWithCustomView:returnBtn];
36 36
     
@@ -41,16 +41,16 @@
41 41
     //标题高度
42 42
     config.titleViewHeight = 40;
43 43
     //标题选中颜色
44
-    config.titleSelectedColor = [UIColor blackColor];
44
+    config.titleSelectedColor = [UIColor whiteColor];
45 45
     //标题选中字体
46 46
     config.titleSelectedFont = [UIFont fontWithName:@"PingFang-SC-Medium" size: 17];
47 47
     //标题正常颜色
48
-    config.titleNormalColor = [UIColor colorWithHexString:@"#5B5B5B"];
48
+    config.titleNormalColor = [UIColor whiteColor];
49 49
     //标题正常字体
50 50
     config.titleNormalFont = [UIFont fontWithName:@"PingFang-SC-Medium" size: 14];
51 51
     config.titleViewInset = UIEdgeInsetsMake(0, 10, 0, 10);
52 52
     //阴影颜色
53
-    config.shadowLineColor = [UIColor colorWithHexString:@"#5B5B5B"];
53
+    config.shadowLineColor = [UIColor whiteColor];
54 54
     //阴影宽度
55 55
     config.shadowLineWidth = 24;
56 56
     //阴影末端是直角
@@ -106,12 +106,13 @@
106 106
 {
107 107
     [super viewWillAppear:animated];
108 108
     self.navigationController.navigationBar.hidden=NO;
109
+    [UIApplication sharedApplication].statusBarStyle=UIStatusBarStyleLightContent;
109 110
     self.tabBarController.tabBar.hidden=YES;
110 111
 }
111 112
 -(void)viewWillDisappear:(BOOL)animated
112 113
 {
113 114
     [super viewWillDisappear:animated];
114
-    [UIApplication sharedApplication].statusBarStyle=UIStatusBarStyleLightContent;
115
+   
115 116
     self.tabBarController.tabBar.hidden=NO;
116 117
     self.navigationController.navigationBar.hidden=NO;
117 118
     self.view.frame=[UIScreen mainScreen].bounds;

+ 1 - 0
KuDianProject/TOP/Drawer/Control/KDPCollectHistoryVC.m

@@ -22,6 +22,7 @@
22 22
     [super viewDidLoad];
23 23
     self.page_num = 1;
24 24
     [self setNavUI];
25
+    
25 26
     [self reqeustData];
26 27
 }
27 28
 -(void)reqeustData

+ 1 - 1
KuDianProject/TOP/Drawer/Control/KDPIDViewController.m

@@ -57,7 +57,7 @@
57 57
     [self.view addSubview:label];
58 58
     
59 59
     
60
-    UIButton *bindButton=[[UIButton alloc]initWithFrame:CGRectMake(0, SCREEN_HEIGHT-50, SCREEN_WIDTH, 50)];
60
+    UIButton *bindButton=[[UIButton alloc]initWithFrame:CGRectMake(0, SCREEN_HEIGHT-50-KDTabBottomHeight, SCREEN_WIDTH, 50)];
61 61
     [bindButton setTitleColor:[UIColor colorWithHexString:ThemeColor] forState:UIControlStateNormal];
62 62
     [bindButton setTitle:@"去绑定" forState:UIControlStateNormal];
63 63
     bindButton.titleLabel.font=[UIFont systemFontOfSize:14];

+ 1 - 1
KuDianProject/TOP/Drawer/Control/KDPUserInfoVC.m

@@ -46,7 +46,7 @@
46 46
     if (indexPath.row == 0) {
47 47
         listC.iconImgV.hidden=NO;
48 48
         listC.contentLabel.hidden=YES;
49
-        [listC.iconImgV sd_setImageWithURL:[NSURL URLWithString:userInfoDic[@"kwai_headurl"]]];
49
+        [listC.iconImgV sd_setImageWithURL:[NSURL URLWithString:userInfoDic[@"kwai_headurl"]]placeholderImage:[UIImage imageNamed:placholderImg]];
50 50
     }else{
51 51
         listC.contentLabel.hidden=NO;
52 52
         listC.iconImgV.hidden=YES;

+ 1 - 1
KuDianProject/TOP/Drawer/View/KDPHistoryListCell.m

@@ -118,7 +118,7 @@
118 118
 -(void)setModel:(KDPGoodsModel *)model
119 119
 {
120 120
     _model = model;
121
-    [self.goodImgV sd_setImageWithURL:[NSURL URLWithString:model.img]];
121
+    [self.goodImgV sd_setImageWithURL:[NSURL URLWithString:model.img]placeholderImage:[UIImage imageNamed:placholderImg]];
122 122
     self.goodTitleL.attributedText=[KDPublicMethod sethanggaoWithStr:model.title linSpacing:5];
123 123
     NSString *timetitle= [NSString stringWithFormat:@"¥%@/利润%@",model.discount_price,model.commission_rate];
124 124
     NSString *prices =[NSString stringWithFormat:@"¥%@/",model.discount_price];

+ 1 - 1
KuDianProject/TOP/Drawer/View/KDPMessageTableViewCell.m

@@ -108,7 +108,7 @@
108 108
     KDPNoticeModel *noticeModel = (KDPNoticeModel *)viewModel;
109 109
     _titleLabel.text = noticeModel.title;
110 110
     _timeLabel.text = noticeModel.push_at;
111
-    [_iconImageView sd_setImageWithURL:[NSURL URLWithString:noticeModel.image_url]];
111
+    [_iconImageView sd_setImageWithURL:[NSURL URLWithString:noticeModel.image_url]placeholderImage:[UIImage imageNamed:placholderImg]];
112 112
     _contentLabel.text = noticeModel.message;
113 113
     [self setLineSpace:5.0f withText:noticeModel.message inLabel:_contentLabel];
114 114
 }

+ 1 - 1
KuDianProject/TOP/View/Detail/KDPShopView.m

@@ -45,7 +45,7 @@
45 45
 -(void)setShopDic:(NSDictionary *)shopDic
46 46
 {
47 47
     _shopDic = shopDic;
48
-    [self.shopimgV sd_setImageWithURL:[NSURL URLWithString:shopDic[@"pic_path"]]];
48
+    [self.shopimgV sd_setImageWithURL:[NSURL URLWithString:shopDic[@"pic_path"]]placeholderImage:[UIImage imageNamed:placholderImg]];
49 49
     self.shopLabel.text=shopDic[@"title"];
50 50
     
51 51
     self.desclabel.text=[NSString stringWithFormat:@"商品描述:%@  服务态度:%@  发货速度:%@",shopDic[@"item_score"],shopDic[@"service_score"],shopDic[@"delivery_score"]];

+ 1 - 1
KuDianProject/TOP/View/KDPRecommendGoodCell.m

@@ -245,7 +245,7 @@
245 245
     _model = model;
246 246
     //设置字体字号和字体类别
247 247
     self.recomprofitL.text=[NSString stringWithFormat:@"利润%@",model.commission_rate];
248
-    [self.recomImgV sd_setImageWithURL:[NSURL URLWithString:model.img]];
248
+    [self.recomImgV sd_setImageWithURL:[NSURL URLWithString:model.img]placeholderImage:[UIImage imageNamed:placholderImg]];
249 249
     self.recomShopL.text=model.shop_title;
250 250
      self.recomTitleL.attributedText=[KDPublicMethod sethanggaoWithStr:model.title linSpacing:5];
251 251
     if (model.shop_type.integerValue == 1) {

+ 1 - 1
KuDianProject/TOP/View/KDPTodayListCell.m

@@ -175,6 +175,6 @@
175 175
     self.livePriceL.attributedText = newstr;
176 176
     
177 177
     self.todayTitleL.attributedText=[KDPublicMethod sethanggaoWithStr:model.name linSpacing:5];
178
-    [self.todayGoodImgV sd_setImageWithURL:[NSURL URLWithString:model.img]];
178
+    [self.todayGoodImgV sd_setImageWithURL:[NSURL URLWithString:model.img]placeholderImage:[UIImage imageNamed:placholderImg]];
179 179
 }
180 180
 @end