49 lines
1.2 KiB
Objective-C
49 lines
1.2 KiB
Objective-C
//
|
|
// LoginInputItemView.h
|
|
// YuMi
|
|
//
|
|
// Created by P on 2025/3/14.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef NS_ENUM(NSUInteger, LoginInputType) {
|
|
LoginInputType_id,
|
|
LoginInputType_email,
|
|
LoginInputType_phoneNum,
|
|
LoginInputType_password,
|
|
LoginInputType_createPassword,
|
|
LoginInputType_verificationCode,
|
|
LoginInputType_confirmPassword,
|
|
LoginInputType_forgetPassword,
|
|
LoginInputType_login,
|
|
LoginInputType_confirm,
|
|
LoginInputType_none
|
|
};
|
|
|
|
|
|
|
|
@interface LoginInputItemView : UIView
|
|
|
|
|
|
@property(nonatomic, copy) void(^handleItemAction)(LoginInputType inputType);
|
|
@property(nonatomic, copy) void(^handleFirstInputContentUpdate)(NSString *inputContent);
|
|
@property(nonatomic, copy) void(^handleSecondInputContentUpdate)(NSString *inputContent);
|
|
@property(nonatomic, copy) void(^handleThirdInputContentUpdate)(NSString *inputContent);
|
|
|
|
- (instancetype)initWithType:(LoginInputType)type;
|
|
- (NSString *)inputContent;
|
|
- (void)updateAreaCode:(NSString *)code;
|
|
- (NSString *)loadAreaCode;
|
|
- (void)startVerificationCountDown;
|
|
- (void)endVerificationCountDown;
|
|
- (void)updateBGColor:(UIColor *)color;
|
|
|
|
- (void)displayKeyboard;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|