WithdrawalRuleVC.m 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // WithdrawalRuleVC.m
  3. // xingchuangke
  4. //
  5. // Created by 刘惠萍 on 2023/2/4.
  6. //
  7. #import "WithdrawalRuleVC.h"
  8. #import "xingchuangke-Swift.h"
  9. @interface WithdrawalRuleVC ()
  10. @property (strong, nonatomic) UILabel *labelName;
  11. @end
  12. @implementation WithdrawalRuleVC
  13. - (UILabel *)labelName{
  14. if (_labelName == nil) {
  15. _labelName = [UILabel new];
  16. [GlobalMethod setLabel:_labelName widthLimit:0 numLines:0 fontNum:F(15) textColor:[UIColor blackColor] text:@""];
  17. _labelName.numLimit = 0;
  18. }
  19. return _labelName;
  20. }
  21. - (void)viewDidLoad {
  22. [super viewDidLoad];
  23. [self.view addSubview:[BaseNavView initNavBackTitle:@"提现规则" rightView:nil]];
  24. [self requestList];
  25. }
  26. -(void)viewWillAppear:(BOOL)animated{
  27. [super viewWillAppear:animated];
  28. self.navigationController.navigationBarHidden = true;
  29. }
  30. - (void)resetViewWithStr:(NSString *)str{
  31. [self.view addSubview:self.labelName];
  32. [self.labelName fitTitle:[NSString stringWithFormat:@"1、个人对私提现手续费2元/笔,对公无手续费\n\n2、提现单笔最低%@,最高30000\n\n3、对私到账时间暂定为T+1,对公到账时间以收到发票为准\n\n4、需要对公打款请在“我的”里修改结算账户为对公户\n\n5、如果不开具发票,对私打款,我司直接扣除提现金额的8%%代缴税费",str] variable:0];
  33. self.labelName.frame =CGRectMake(W(15), NAVIGATIONBAR_HEIGHT, SCREEN_WIDTH-W(15), W(250));
  34. }
  35. -(void)requestList{
  36. [RequestApi requestCashApplicationSetWithDelegate:self success:^(NSDictionary * _Nonnull response, id _Nonnull mark) {
  37. [self resetViewWithStr:response[@"sucInfo"]];
  38. } failure:^(NSString * _Nonnull errorStr, id _Nonnull mark) {
  39. }];
  40. }
  41. @end