提交
This commit is contained in:
@@ -14,15 +14,69 @@
|
||||
if (!cell) {
|
||||
cell = [[NSBundle mainBundle] loadNibNamed:cellId owner:nil options:nil].lastObject;
|
||||
cell.backgroundColor = [UIColor clearColor];
|
||||
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||
}
|
||||
return cell;
|
||||
}
|
||||
-(void)setModel:(QXWithDrawRecordModel *)model{
|
||||
_model = model;
|
||||
self.reasonLabel.text = model.name;
|
||||
self.withDrawPriceLabel.text = [NSString stringWithFormat:@"%.2f",model.money.doubleValue];
|
||||
self.feeLabel.text = [NSString stringWithFormat:@"%.2f",model.withdraw_fee.doubleValue];
|
||||
self.personalFeeLabel.text = [NSString stringWithFormat:@"%.2f",model.received_tax_amount.doubleValue];
|
||||
self.realPriceLabel.text = [NSString stringWithFormat:@"%.2f",model.surplus_money.doubleValue];;
|
||||
self.timeLabel.text = model.createtime;
|
||||
self.priceLabel.text = [NSString stringWithFormat:@"%.2f",model.money.doubleValue];
|
||||
self.statusLabel.text = model.status_str;
|
||||
if (model.status.intValue == 1) {
|
||||
// self.statusLabel.text = @"待处理";
|
||||
self.realTitleLabel.text = @"提现金额(个税扣除前)";
|
||||
self.statusLabel.textColor = RGB16(0x0DFFB9);
|
||||
self.realPriceLabel.textColor = RGB16(0x333333);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_green"];
|
||||
return;
|
||||
}
|
||||
if (model.status.intValue == 2) {
|
||||
// self.statusLabel.text = @"已通过";
|
||||
self.realTitleLabel.text = @"提现金额(个税扣除前)";
|
||||
self.statusLabel.textColor = RGB16(0x999999);
|
||||
self.realPriceLabel.textColor = RGB16(0x333333);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_gray"];
|
||||
return;
|
||||
}
|
||||
if (model.status.intValue == 3) {
|
||||
self.realTitleLabel.text = @"退款金额";
|
||||
// self.statusLabel.text = @"已拒绝";
|
||||
self.statusLabel.textColor = RGB16(0xFF8ACC);
|
||||
self.realPriceLabel.textColor = RGB16(0x333333);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_pink"];
|
||||
return;
|
||||
}
|
||||
if (model.status.intValue == 4) {
|
||||
// self.statusLabel.text = @"打款中";
|
||||
self.realTitleLabel.text = @"提现金额(个税扣除前)";
|
||||
self.realPriceLabel.textColor = RGB16(0x333333);
|
||||
self.statusLabel.textColor = RGB16(0x68A5FF);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_blue"];
|
||||
return;
|
||||
}
|
||||
if (model.status.intValue == 5) {
|
||||
// self.statusLabel.text = @"打款失败";
|
||||
self.realTitleLabel.text = @"退款金额";
|
||||
self.realPriceLabel.textColor = RGB16(0x333333);
|
||||
self.statusLabel.textColor = RGB16(0xFF8ACC);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_pink"];
|
||||
return;
|
||||
}
|
||||
if (model.status.intValue == 6) {
|
||||
// self.statusLabel.text = @"已到账";
|
||||
self.realTitleLabel.text = @"实际到账";
|
||||
self.realPriceLabel.textColor = RGB16(0x2ADB88);
|
||||
self.statusLabel.textColor = RGB16(0x999999);
|
||||
self.leftImageView.image =[UIImage imageNamed:@"wallet_record_gray"];
|
||||
return;
|
||||
}
|
||||
// self.reasonLabel.text = model.name;
|
||||
// self.priceLabel.text = [NSString stringWithFormat:@"%.2f",model.money.doubleValue];
|
||||
// self.statusLabel.text = model.status_str;
|
||||
|
||||
}
|
||||
- (void)awakeFromNib {
|
||||
|
||||
Reference in New Issue
Block a user