Commit 6b8fc4ad7167dbc306fb253c72cfcab08ef9553b

Authored by yanglingyu
1 parent ed215b21

0.5.4

CNLiveCMineModule.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveCMineModule'
11   - s.version = '0.5.3'
  11 + s.version = '0.5.4'
12 12 s.summary = '网家家C端个人中心'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveCMineModule/Classes/CNCMine/View/CNListHeaderView.m
... ... @@ -50,7 +50,6 @@
50 50 [[CNLiveCMineService shareMineProtocol] pushCMineInteContentForCMainWebViewWithURL:cn_WjjH5_Host(@"/myActivityBenefits.html?isShowTitle=true") statue:CNLiveCMineIntePushWebViewStatueTask];
51 51 }else if ([sender.titleLabel.text isEqualToString:@"全部工具"]){
52 52 CNMineToolsViewController *vc = [[CNMineToolsViewController alloc] init];
53   - vc.carCount = _carCount;
54 53 [[BaseAppDelegate sharedAppDelegate] pushViewController:vc];
55 54 }
56 55 }
... ...
CNLiveCMineModule/Classes/CNCMine/View/CNTopImageView.m
... ... @@ -58,7 +58,7 @@
58 58 make.width.height.mas_equalTo(DS_adapt_length(60));
59 59 }];
60 60 [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
61   - make.left.mas_equalTo(DS_adapt_length(82.5));
  61 + make.left.mas_equalTo(DS_adapt_length(87.5));
62 62 make.right.equalTo(self).offset(-10);
63 63 make.top.mas_equalTo(kStatusHeight+DS_adapt_length(39));
64 64 }];
... ...
CNLiveCMineModule/Classes/CNCSubMine/ViewController/CNMineToolsViewController.h
... ... @@ -11,7 +11,6 @@
11 11 NS_ASSUME_NONNULL_BEGIN
12 12  
13 13 @interface CNMineToolsViewController : CNCommonViewController
14   -@property (nonatomic, copy)NSString *carCount;
15 14 @end
16 15  
17 16 NS_ASSUME_NONNULL_END
... ...
CNLiveCMineModule/Classes/CNCSubMine/ViewController/CNMineToolsViewController.m
... ... @@ -16,12 +16,20 @@
16 16 @end
17 17  
18 18 @implementation CNMineToolsViewController
19   -
  19 +- (void)loadData{
  20 +
  21 + weakself
  22 + [CNMinePresent requestMineDataSourceWithBlock:^(CNScoreModel * _Nonnull model) {
  23 + if (model) {
  24 + self.toolModel = [CNMinePresent datasourceToolModel:CNToolDatasourceTypeAll carNum:model.cart_count];
  25 + [self.collectView reloadData];
  26 + }
  27 + }];
  28 +}
20 29 - (void)viewDidLoad {
21 30 [super viewDidLoad];
22 31 self.title = @"我的工具";
23 32 self.view.backgroundColor = RGB(247, 246, 249);
24   - self.toolModel = [CNMinePresent datasourceToolModel:CNToolDatasourceTypeAll carNum:_carCount];
25 33 [self.view addSubview:self.collectView];
26 34 [self.collectView mas_makeConstraints:^(MASConstraintMaker *make) {
27 35 make.left.equalTo(self.view).offset(12);
... ... @@ -34,6 +42,7 @@
34 42 {
35 43 [super viewWillAppear:animated];
36 44 self.navigationController.navigationBarHidden = NO;
  45 + [self loadData];
37 46 }
38 47  
39 48 #pragma mark - UICollectionViewDataSource
... ...