重庆迈尖科技有限公司
2018-08-20 bde0ee9f2ac37bcd4cd4fb6554615d73e217e1e2
Merge branch 'master' of ssh://193.112.35.168:29418/fanliquan

# Conflicts:
# MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate
5个文件已修改
212 ■■■■■ 已修改文件
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InviteThreeCell.m 168 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InviteTwoCell.m 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/MainInviteViewController.m 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate
Binary files differ
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -77,5 +77,15 @@
            landmarkType = "7">
         </BreakpointContent>
      </BreakpointProxy>
      <BreakpointProxy
         BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
         <BreakpointContent
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            scope = "0"
            stopOnStyle = "0">
         </BreakpointContent>
      </BreakpointProxy>
   </Breakpoints>
</Bucket>
MIduo/界面/邀请/InviteViewCell/InviteThreeCell.m
@@ -29,6 +29,10 @@
/// 濂栭噾
@property (nonatomic, strong, nullable) UILabel *bonusPricelabel;
@property (nonatomic, assign) NSInteger indexCount;
@property (nonatomic, assign) NSInteger count;
@end
@implementation InviteThreeCell
@@ -90,83 +94,101 @@
    
    if (model) {
        
        for (UIView *view in [self.bgView subviews]) {
            [view removeFromSuperview];
        self.indexCount = model.inviteGetMoneyList.count;
        if (self.indexCount > 5) {
            self.indexCount = 5;
        }
        
        NSInteger indexCount = model.inviteGetMoneyList.count;
//        self.count = [self.bgView subviews].count;
//
//        if (self.count != 0) {
//
//            for (int i = 0; i < self.indexCount; i++) {
//
//                ((UIImageView *)[[self.bgView subviews][i] subviews][0]).image = [UIImage imageNamed:self.gradArr[i]];
//
//                [((UIImageView *)[[self.bgView subviews][i] subviews][1]) setYthImageWithURL:((InviteGetMoneyListModel *)(model.inviteGetMoneyList[i])).portrait placeholderImage:[UIImage imageNamed:@"榛樿澶村儚"]];
//
//                ((UILabel *)[[self.bgView subviews][i] subviews][2]).text = ((InviteGetMoneyListModel *)(model.inviteGetMoneyList[i])).name;
//
//                ((UILabel *)[[self.bgView subviews][i] subviews][2]).text = [NSString stringWithFormat:@"楼%@",((InviteGetMoneyListModel *)(model.inviteGetMoneyList[i])).money];
//            }
//
//        } else {
        
        if (indexCount > 5) {
            for (UIView *view in [self.bgView subviews]) {
                [view removeFromSuperview];
            }
            
            indexCount = 5;
        }
        for (int i = 0; i < indexCount; i++) {
            self.articleView = [[UIView alloc] init];
            self.articleView.layer.masksToBounds = YES;
            self.articleView.layer.cornerRadius = 5;
            self.articleView.backgroundColor = i % 2 ? SJColor(255, 211, 221, 1) : SJColor(255, 251, 207, 1);
            [self.bgView addSubview:self.articleView];
            self.articleView.sd_layout
            .leftSpaceToView(self.bgView, 0)
            .rightSpaceToView(self.bgView, 0)
            .topSpaceToView(self.bgView, i * ((self.bgView.size.height - 32) / 5) + i * 8)
            .heightIs((self.bgView.size.height - 32) / 5);
            self.logoImageView = [[UIImageView alloc] init];
            self.logoImageView.image = [UIImage imageNamed:self.gradArr[i]];
            [self.articleView addSubview:self.logoImageView];
            self.logoImageView.sd_layout
            .leftSpaceToView(self.articleView, 15)
            .centerYEqualToView(self.articleView)
            .widthIs(23)
            .heightIs(20);
            self.headerImageView = [[UIImageView alloc] init];
            [self.headerImageView setYthImageWithURL:((InviteGetMoneyListModel *)(model.inviteGetMoneyList[i])).portrait placeholderImage:[UIImage imageNamed:@"榛樿澶村儚"]];
            self.headerImageView.layer.masksToBounds = YES;
            self.headerImageView.layer.cornerRadius = ((self.bgView.size.height - 32) / 5 - 10) / 2;
            [self.articleView addSubview:self.headerImageView];
            self.headerImageView.sd_layout
            .leftSpaceToView(self.logoImageView, 15)
            .centerYEqualToView(self.articleView)
            .widthIs((self.bgView.size.height - 32) / 5 - 10)
            .heightIs((self.bgView.size.height - 32) / 5 - 10);
            self.nickNamelabel = [[UILabel alloc] init];
            self.nickNamelabel.text = ((InviteGetMoneyListModel *)(model.inviteGetMoneyList[i])).name;
            self.nickNamelabel.textColor = [UIColor blackColor];
            self.nickNamelabel.font = [UIFont systemFontOfSize:15];
            self.nickNamelabel.textAlignment = NSTextAlignmentLeft;
            [self.articleView addSubview:self.nickNamelabel];
            self.nickNamelabel.sd_layout
            .leftSpaceToView(self.headerImageView, 10)
            .centerYEqualToView(self.articleView)
            .heightIs(20)
            .autoWidthRatio(0);
            [self.nickNamelabel setSingleLineAutoResizeWithMaxWidth:120];
            self.bonusPricelabel = [[UILabel alloc] init];
            self.bonusPricelabel.text = [NSString stringWithFormat:@"楼%@",((InviteGetMoneyListModel *)(model.inviteGetMoneyList[i])).money];
            self.bonusPricelabel.textColor = SJColor(229, 0, 92, 1.0);
            self.bonusPricelabel.font = [UIFont systemFontOfSize:16];
            self.bonusPricelabel.textAlignment = NSTextAlignmentRight;
            [self.articleView addSubview:self.bonusPricelabel];
            self.bonusPricelabel.sd_layout
            .rightSpaceToView(self.articleView, 10)
            .centerYEqualToView(self.articleView)
            .heightIs(20)
            .autoWidthRatio(0);
            [self.bonusPricelabel setSingleLineAutoResizeWithMaxWidth:120];
        }
            for (int i = 0; i < self.indexCount; i++) {
                self.articleView = [[UIView alloc] init];
                self.articleView.layer.masksToBounds = YES;
                self.articleView.layer.cornerRadius = 5;
                self.articleView.backgroundColor = i % 2 ? SJColor(255, 211, 221, 1) : SJColor(255, 251, 207, 1);
                [self.bgView addSubview:self.articleView];
                self.articleView.sd_layout
                .leftSpaceToView(self.bgView, 0)
                .rightSpaceToView(self.bgView, 0)
                .topSpaceToView(self.bgView, i * ((self.bgView.size.height - 32) / 5) + i * 8)
                .heightIs((self.bgView.size.height - 32) / 5);
                self.logoImageView = [[UIImageView alloc] init];
                self.logoImageView.image = [UIImage imageNamed:self.gradArr[i]];
                [self.articleView addSubview:self.logoImageView];
                self.logoImageView.sd_layout
                .leftSpaceToView(self.articleView, 15)
                .centerYEqualToView(self.articleView)
                .widthIs(23)
                .heightIs(20);
                self.headerImageView = [[UIImageView alloc] init];
                [self.headerImageView setYthImageWithURL:((InviteGetMoneyListModel *)(model.inviteGetMoneyList[i])).portrait placeholderImage:[UIImage imageNamed:@"榛樿澶村儚"]];
                self.headerImageView.layer.masksToBounds = YES;
                self.headerImageView.layer.cornerRadius = ((self.bgView.size.height - 32) / 5 - 10) / 2;
                [self.articleView addSubview:self.headerImageView];
                self.headerImageView.sd_layout
                .leftSpaceToView(self.logoImageView, 15)
                .centerYEqualToView(self.articleView)
                .widthIs((self.bgView.size.height - 32) / 5 - 10)
                .heightIs((self.bgView.size.height - 32) / 5 - 10);
                self.nickNamelabel = [[UILabel alloc] init];
                self.nickNamelabel.text = ((InviteGetMoneyListModel *)(model.inviteGetMoneyList[i])).name;
                self.nickNamelabel.textColor = [UIColor blackColor];
                self.nickNamelabel.font = [UIFont systemFontOfSize:15];
                self.nickNamelabel.textAlignment = NSTextAlignmentLeft;
                [self.articleView addSubview:self.nickNamelabel];
                self.nickNamelabel.sd_layout
                .leftSpaceToView(self.headerImageView, 10)
                .centerYEqualToView(self.articleView)
                .heightIs(20)
                .autoWidthRatio(0);
                [self.nickNamelabel setSingleLineAutoResizeWithMaxWidth:120];
                self.bonusPricelabel = [[UILabel alloc] init];
                self.bonusPricelabel.text = [NSString stringWithFormat:@"楼%@",((InviteGetMoneyListModel *)(model.inviteGetMoneyList[i])).money];
                self.bonusPricelabel.textColor = SJColor(229, 0, 92, 1.0);
                self.bonusPricelabel.font = [UIFont systemFontOfSize:16];
                self.bonusPricelabel.textAlignment = NSTextAlignmentRight;
                [self.articleView addSubview:self.bonusPricelabel];
                self.bonusPricelabel.sd_layout
                .rightSpaceToView(self.articleView, 10)
                .centerYEqualToView(self.articleView)
                .heightIs(20)
                .autoWidthRatio(0);
                [self.bonusPricelabel setSingleLineAutoResizeWithMaxWidth:120];
            }
        //}
    }
}
MIduo/界面/邀请/InviteViewCell/InviteTwoCell.m
@@ -12,6 +12,8 @@
@property (nonatomic, strong, nullable) UIImageView *bgImgView;
@property (nonatomic, assign) CGFloat setHeight;
@end
@implementation InviteTwoCell
@@ -44,19 +46,19 @@
- (void)cellConfig {
    
    CGFloat setHeight = 0;
     self.setHeight = 0;
    
    if (SCREEN_WIDTH > 375) {
        
        setHeight = (SCREEN_WIDTH - currentWidth) + currentHeight;
        self.setHeight = (SCREEN_WIDTH - currentWidth) + currentHeight;
        
    } else if (SCREEN_WIDTH < 375) {
        
         setHeight = currentHeight - (currentWidth - SCREEN_WIDTH);
         self.setHeight = currentHeight - (currentWidth - SCREEN_WIDTH);
        
    } else {
        
        setHeight = currentHeight;
        self.setHeight = currentHeight;
    }
    
    [self.contentView addSubview:self.bgImgView];
@@ -64,7 +66,7 @@
    .rightSpaceToView(self.contentView, 0)
    .topSpaceToView(self.contentView, 0)
    .leftSpaceToView(self.contentView, 0)
    .heightIs(setHeight);
    .heightIs(self.setHeight);
}
#pragma mark --- getter ---
MIduo/界面/邀请/MainInviteViewController.m
@@ -35,8 +35,6 @@
@property (nonatomic, strong) MainInviteModel *model;
@property (nonatomic, strong) NSAttributedString *attributedString;
@property (nonatomic, copy) NSString *series;
@property (nonatomic, strong) UIView *primtView;
@@ -221,7 +219,11 @@
                                        reuseIdentifier:cellIden];
        }
        cell.uid = [[NSUserDefaults standardUserDefaults] objectForKey:@"userId"];
        cell.model = self.model;
        if (self.model) {
            cell.model = self.model;
        }
        
        // 鎴戠殑闃熷憳
        @weakify(self)
@@ -276,13 +278,17 @@
            cell = [[InviteThreeCell alloc] initWithStyle:UITableViewCellStyleDefault
                                          reuseIdentifier:cellIden];
        }
        cell.model = self.model;
        if (self.model) {
            cell.model = self.model;
        }
        
        return cell;
        
    } else {
        
        NSString *cellIden = @"iuITableViewCell";
        NSString *cellIden = @"invitewFourCell";
        InvitewFourCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIden];
        
        if (!cell) {
@@ -290,9 +296,11 @@
            cell = [[InvitewFourCell alloc] initWithStyle:UITableViewCellStyleDefault
                                          reuseIdentifier:cellIden];
        }
        cell.model = self.model;
        
        cell.remainNumStr = self.attributedString;
        if (self.model) {
            cell.model = self.model;
        }
        
        return cell;
    }