ExchangeCoinView.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // ExchangeCoinView.h
  3. // BuguLive
  4. //
  5. // Created by yy on 17/2/16.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "FreshAcountModel.h"
  10. @class ExchangeCoinView;
  11. @protocol ExchangeCoinViewDelegate <NSObject>
  12. @optional
  13. - (void)exchangeViewDownWithExchangeCoinView:(ExchangeCoinView *)exchangeCoinView;
  14. - (void)comfirmClickWithExchangeCoinView:(ExchangeCoinView *)exchangeCoinView;
  15. @end
  16. @interface ExchangeCoinView : BGBaseView<UITextFieldDelegate>
  17. {
  18. NetHttpsManager *_httpManager;
  19. GlobalVariables *_BuguLive;
  20. NSString *ratio; //兑换比例
  21. NSInteger _rat;
  22. }
  23. @property (nonatomic, weak) id<ExchangeCoinViewDelegate>delegate;
  24. @property (weak, nonatomic) IBOutlet UIView *displayView;
  25. @property (weak, nonatomic) IBOutlet UILabel *exchangeTitle;
  26. @property (weak, nonatomic) IBOutlet UILabel *diamondLabel;
  27. @property (weak, nonatomic) IBOutlet UILabel *scaleLabel; //比例
  28. @property (weak, nonatomic) IBOutlet UITextField *diamondLeftTextfield;
  29. @property (weak, nonatomic) IBOutlet UIView *titleBgView;
  30. @property (weak, nonatomic) IBOutlet UIButton *cancelButton;
  31. @property (weak, nonatomic) IBOutlet UIButton *confirmButton;
  32. @property (weak, nonatomic) IBOutlet UIView *textfieldBgView;
  33. @property (weak, nonatomic) IBOutlet UILabel *coinLabel; //余额
  34. @property (weak, nonatomic) IBOutlet UILabel *horizonLine; //横线
  35. @property (weak, nonatomic) IBOutlet UILabel *verticalLine; //竖线
  36. @property (nonatomic, copy) NSString *ticket;
  37. @property (nonatomic, assign) NSInteger exchangeType; //1.兑换游戏币 2.兑换钻石 3.赠送游戏币
  38. @property (weak, nonatomic) IBOutlet UIImageView *bgImgView;
  39. + (instancetype)EditNibFromXib;
  40. - (void)createSomething;
  41. //获取兑换游戏币比例
  42. - (void)obtainCoinProportion;
  43. //获取兑换钻石比例
  44. - (void)requetRatio;
  45. @end