RechargeView.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // RechargeView.h
  3. // BuguLive
  4. //
  5. // Created by 王珂 on 17/3/13.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "RechargeWayView.h"
  10. #import "AccountRechargeModel.h"
  11. @class RechargeView;
  12. @protocol RechargeViewDelegate<NSObject>
  13. - (void)choseRecharge:(BOOL )recharge orExchange:(BOOL )exchange;
  14. //充值成功后调用进行刷新账号钻石相关的数据
  15. - (void)rechargeSuccessWithRechargeView:(RechargeView *)rechargeView;
  16. @optional
  17. - (void)choseOtherRechargeWithRechargeView:(RechargeView *)rechargeView;
  18. - (void)closeRechargeWithRechargeView:(RechargeView *)rechargeView;
  19. @end
  20. @interface RechargeView : UIView
  21. @property (nonatomic, strong) AccountRechargeModel * model;
  22. @property (nonatomic, weak) id<RechargeViewDelegate>delegate;
  23. @property (nonatomic, assign) NSInteger indexPayWay;
  24. @property (nonatomic, strong) NSString *money;
  25. @property (nonatomic, strong)UIViewController * viewController;
  26. @property(nonatomic, strong) QMUIButton *selectAgreeBtn;
  27. @property(nonatomic, strong) QMUIButton *agreeBtn;
  28. - (void)loadRechargeData;
  29. - (void)payRequestWithModel:(PayMoneyModel *)payModel withPayWayIndex:(NSInteger )index; //其它充值调用的方法
  30. - (instancetype)initWithFrame:(CGRect)frame andUIViewController:(UIViewController *)viewController;
  31. @end