12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // YMBindWithdrawalAccountViewModel.h
- // MSYOUPAI
- //
- // Created by YoMi on 2024/3/5.
- // Copyright © 2024 MS. All rights reserved.
- //
- #import "MSYOUPAIViewModel.h"
- NS_ASSUME_NONNULL_BEGIN
- /** 绑定提现账号类型 */
- typedef NS_ENUM(NSUInteger, YMBindWithdrawalAccountType) {
- /** 添加*/
- YMBindWithdrawalAccountTypeAdd = 0,
- /** 编辑*/
- YMBindWithdrawalAccountTypeEdit,
- };
- typedef void(^BindWithdrawalAccountBlock)(void);
- @interface YMBindWithdrawalAccountViewModel : MSYOUPAIViewModel
- @property (nonatomic, copy) BindWithdrawalAccountBlock bindWithdrawalAccountBlock;
- /// 打开账号类型弹窗
- - (void)openAccountTypeAlert;
- /// 提交绑定提现账号
- - (void)submitBindWithdrawalAccount;
- /// 提现账号持有人
- @property (nonatomic, copy) NSString *withdrawalAccountHolder;
- /// 提现账号
- @property (nonatomic, copy) NSString *withdrawalAccount;
- /// 绑定提现账号类型
- @property (nonatomic, assign, readonly) YMBindWithdrawalAccountType bindWithdrawalAccountType;
- /// 保存按钮有效性
- @property (nonatomic, strong, readonly) RACSignal *validSaveSignal;
- /// 账号类型名称
- @property (nonatomic, strong, readonly) NSString *accountTypeName;
- /// 账号持有人占位符
- @property (nonatomic, strong, readonly) NSAttributedString *accountHolderPlaceholder;
- /// 账号占位符
- @property (nonatomic, strong, readonly) NSAttributedString *accountPlaceholder;
- /// 绑定账号温馨提示
- @property (nonatomic, strong, readonly) NSAttributedString *bindWithdrawalAccountWarmTips;
- @end
- NS_ASSUME_NONNULL_END
|