Commit 6b8fc4ad7167dbc306fb253c72cfcab08ef9553b
1 parent
ed215b21
0.5.4
Showing
5 changed files
with
13 additions
and
6 deletions
CNLiveCMineModule.podspec
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
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 | ... | ... |