口袋优选

KBMonthCenterTipView.m 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // KBMonthCenterTipView.m
  3. // YouHuiProject
  4. //
  5. // Created by jcymac on 2018/6/13.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "KBMonthCenterTipView.h"
  9. @interface KBMonthCenterTipView()
  10. @property (weak, nonatomic) IBOutlet UILabel *title1;
  11. @property (weak, nonatomic) IBOutlet UILabel *content1;
  12. @property (weak, nonatomic) IBOutlet UILabel *title2;
  13. @property (weak, nonatomic) IBOutlet UILabel *content2;
  14. @end
  15. @implementation KBMonthCenterTipView
  16. -(void)setType:(NSInteger)type{
  17. NSString *typeStr=@"";
  18. if (type==1) {
  19. typeStr=@"结算";
  20. self.content1.text=@"本月内所有确认收货的订单收益\n下个月25日结算后,转入到余额中";
  21. self.content2.text=@"上月内所有确认收货的订单收益\n本月25日结算后,转入到余额中";
  22. }else{
  23. typeStr=@"预估";
  24. self.content1.text=@"本月内创建的所有订单收益";
  25. self.content2.text=@"上个月内创建的所有订单收益";
  26. }
  27. self.title1.text=[NSString stringWithFormat:@"-本月%@收入-",typeStr];
  28. self.title2.text=[NSString stringWithFormat:@"-上月%@收入-",typeStr];
  29. }
  30. @end