Commit ec7724080538bfc5bb850e938013dfac8aa842ef

Authored by iOS-Xiaowen
1 parent 5b0784b4

no message

CNLiveBMineModule/Classes/Controller/CNLiveMineController.m
... ... @@ -25,7 +25,7 @@
25 25 #import "CNLiveUserInfoController.h"
26 26 #import "CNLiveSettingController.h"
27 27  
28   -@interface CNLiveMineController()<UITableViewDelegate, UITableViewDataSource, CNLiveMineHeaderViewDelegate, CNLiveMineCellDelegate>
  28 +@interface CNLiveMineController()<UITableViewDelegate, UITableViewDataSource, CNLiveMineHeaderViewDelegate>
29 29 @property (nonatomic, strong) UITableView *tableView;
30 30 @property (nonatomic, strong) CNLiveMineHeaderView *headerView;
31 31 @property (nonatomic, strong) NSMutableArray *data;
... ... @@ -114,7 +114,6 @@ static const CGFloat timeValue = 1.5;
114 114 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
115 115 CNLiveMineCell *cell = [tableView dequeueReusableCellWithIdentifier:kCNLiveMineCell];
116 116 cell.selectionStyle = UITableViewCellSelectionStyleNone;
117   - cell.delegate = self;
118 117 cell.model = self.data[indexPath.row];
119 118 return cell;
120 119 }
... ... @@ -164,98 +163,6 @@ static const CGFloat timeValue = 1.5;
164 163 }];
165 164 }
166 165  
167   -#pragma mark - CNLiveMineCellDelegate
168   -- (void)cell:(CNLiveMineCell *)cell didSelectItemAtItem:(NSInteger)item{
169   -// switch (cell.model.type) {
170   -// case CNLiveBMineCellTypeOrder:
171   -// {
172   -// if(item == 4){
173   -// //售后
174   -// id<CNLiveOrderServiceProtocol> service = [[BeeHive shareInstance] createService:@protocol(CNLiveOrderServiceProtocol)];
175   -// [service pushToRefundViewController:0];
176   -//
177   -// }else{
178   -// id<CNLiveOrderServiceProtocol> service = [[BeeHive shareInstance] createService:@protocol(CNLiveOrderServiceProtocol)];
179   -// [service pushToOrderViewController:item];
180   -// }
181   -// }
182   -// break;
183   -// case CNLiveBMineCellTypeTool:
184   -// {
185   -// if(item == 0){
186   -// // 收货地址
187   -// id<CNLiveOrderServiceProtocol> service = [[BeeHive shareInstance] createService:@protocol(CNLiveOrderServiceProtocol)];
188   -// [service pushToAddressViewController];
189   -// }
190   -// else if(item == 1){
191   -// // 余额
192   -// id<CNLiveBalanceServiceProtocol> service = [[BeeHive shareInstance] createService:@protocol(CNLiveBalanceServiceProtocol)];
193   -// [service pushToBalanceViewControllerWithType:@"1" ID:CNUserShareModel.uid];
194   -// }
195   -// else if(item == 2){
196   -// // 收藏
197   -// id<CNLiveCollectionServiceProtocol> service = [[BeeHive shareInstance] createService:@protocol(CNLiveCollectionServiceProtocol)];
198   -// [service pushToCollectionViewController];
199   -// }
200   -// else if(item == 3){
201   -// // 发布记录
202   -//// XWOrdersController *vc = [[XWOrdersController alloc]init];
203   -//// [self.navigationController pushViewController:vc animated:YES];
204   -// }
205   -// else if(item == 4){
206   -// // 邀请好友
207   -//// XWOrdersController *vc = [[XWOrdersController alloc]init];
208   -//// [self.navigationController pushViewController:vc animated:YES];
209   -// }
210   -// else if(item == 5){
211   -// // 设置
212   -// id<CNLiveSettingServiceProtocol> service = [[BeeHive shareInstance] createService:@protocol(CNLiveSettingServiceProtocol)];
213   -// [service pushToSettingViewController];
214   -// }
215   -// else if(item == 6){
216   -// // 小家音响
217   -// NSLog(@"小家音响");
218   -// }
219   -// else if(item == 7){
220   -// // 我的礼盒
221   -// id<CNLiveOrderServiceProtocol> service = [[BeeHive shareInstance] createService:@protocol(CNLiveOrderServiceProtocol)];
222   -// [service pushToGiftBoxViewController];
223   -// }
224   -// else if(item == 8){
225   -// // 我的话题
226   -// NSLog(@"我的话题");
227   -// }
228   -// else if(item == 9){
229   -// // 路径工具
230   -// NSLog(@"路径工具");
231   -// }
232   -//
233   -// }
234   -// break;
235   -// case CNLiveBMineCellTypeGoods:
236   -// {
237   -//
238   -// }
239   -// break;
240   -// case CNLiveBMineCellTypeSports:
241   -// {
242   -// if(item == 0){
243   -// // 我的活动
244   -// NSLog(@"我的活动");
245   -// }
246   -// else if(item == 1){
247   -// // 我的记录
248   -// NSLog(@"我的记录");
249   -// }
250   -// }
251   -// break;
252   -//
253   -// default:
254   -// break;
255   -// }
256   -
257   -}
258   -
259 166 #pragma mark - 状态栏
260 167 - (UIStatusBarStyle)preferredStatusBarStyle{
261 168 return UIStatusBarStyleLightContent;
... ...
CNLiveBMineModule/Classes/View/CNLiveMineCell.h
... ... @@ -7,21 +7,14 @@
7 7 //
8 8  
9 9 #import <UIKit/UIKit.h>
10   -#import "CNLiveMineModel.h"
  10 +@class CNLiveMineModel;
11 11  
12 12 NS_ASSUME_NONNULL_BEGIN
13   -@class CNLiveMineCell;
14 13  
15 14 static NSString * const kCNLiveMineCell = @"CNLiveMineCell";
16   -@protocol CNLiveMineCellDelegate <NSObject>
17   -@optional
18   -- (void)cell:(CNLiveMineCell *)cell didSelectItemAtItem:(NSInteger)item;
19   -
20   -@end
21 15  
22 16 @interface CNLiveMineCell : UITableViewCell
23 17 @property (nonatomic, strong) CNLiveMineModel *model;
24   -@property (nonatomic, weak) id<CNLiveMineCellDelegate> delegate;
25 18  
26 19 @end
27 20  
... ...
CNLiveBMineModule/Classes/View/CNLiveMineCell.m
... ... @@ -10,7 +10,8 @@
10 10 #import <Masonry/Masonry.h>
11 11 #import "QMUIKit.h"
12 12 #import "CNLiveCategory.h"
13   -#import "CNLiveBaseKit.h"
  13 +//#import "CNLiveBaseKit.h"
  14 +#import "CNLiveMineModel.h"
14 15  
15 16 @interface CNLiveMineCell()
16 17 @property (nonatomic, strong) UIImageView *leftImage;
... ...