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