UseBodyView.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // UseBodyView.h
  3. // KulexiuForTeacher
  4. //
  5. // Created by 王智 on 2022/5/27.
  6. //
  7. #import <UIKit/UIKit.h>
  8. typedef NS_ENUM(NSInteger, USERSETTING) {
  9. USERSETTING_AVATAL = 1001, // 头像
  10. USERSETTING_NAME, // 修改姓名
  11. USERSETTING_SEX, // 修改性别
  12. USERSETTING_PHONE, // 修改手机号
  13. USERSETTING_BIRTHDAY, // 生日
  14. USERSETTING_SUBJECT, // 声部设置
  15. USERSETTING_PWD, // 修改密码
  16. USERSETTING_VEFI, // 实名认证
  17. USERSETTING_LOGOUT, // 退出登录
  18. };
  19. typedef void(^UserSettingCallback)(USERSETTING type);
  20. NS_ASSUME_NONNULL_BEGIN
  21. @interface UseBodyView : UIView
  22. @property (weak, nonatomic) IBOutlet UIImageView *userAvatal;
  23. @property (weak, nonatomic) IBOutlet UILabel *nickNameLabel;
  24. @property (weak, nonatomic) IBOutlet UILabel *genderLabel;
  25. @property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
  26. @property (weak, nonatomic) IBOutlet UILabel *authStatusLabel;
  27. @property (weak, nonatomic) IBOutlet UILabel *birthdayLabel;
  28. @property (weak, nonatomic) IBOutlet UILabel *subjectLabel;
  29. + (instancetype)shareInstance;
  30. - (void)userSettingAction:(UserSettingCallback)callback;
  31. - (CGFloat)getViewHeight;
  32. @end
  33. NS_ASSUME_NONNULL_END