MerchantBaseEnrollContentView.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //
  2. // MerchantBaseEnrollContentView.h
  3. // merchant
  4. //
  5. // Created by qitewei on 2025/8/18.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import <JXCategoryView.h>
  9. #import "NetHttpsManager+Store.h"
  10. #import "UIView+TUIToast.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. typedef enum : NSUInteger {
  13. MerchantEnrollStepGuide,
  14. MerchantEnrollStepCheckList,
  15. MerchantEnrollStepStoreInfo,
  16. MerchantEnrollStepBusinessLicense,
  17. MerchantEnrollStepLegalInfo,
  18. MerchantEnrollStepBank,
  19. MerchantEnrollStepSetAdmin,
  20. MerchantEnrollStepPay,
  21. MerchantEnrollStepWatingForReview,
  22. MerchantEnrollStepReviewFail,
  23. MerchantEnrollStepComplete
  24. } MerchantEnrollStep;
  25. typedef enum : NSUInteger {
  26. MerchantEnrollResultPending, // 提交成功,等待审核
  27. MerchantEnrollResultFailed, // 审核未通过,需要修改
  28. MerchantEnrollResultSuccess // 审核通过,完成入驻
  29. } MerchantEnrollResultType;
  30. @protocol MerchantEnrollContentViewDelegate <NSObject>
  31. - (void)onMerchantEnrollGotoNextButtonClick;
  32. - (void)onMerchantEnrollResultNextButtonClick:(MerchantEnrollResultType)type;
  33. @end
  34. @protocol MerchantEnrollParametersDataSource <NSObject>
  35. - (NSDictionary *)getMerchantEnrollParameters;
  36. @end
  37. @interface MerchantBaseEnrollContentView : UIView<JXCategoryListContentViewDelegate, MerchantEnrollParametersDataSource>
  38. @property (nonatomic, strong) UILabel *titleLabel;
  39. @property (nonatomic, strong) UIScrollView *scrollView;
  40. @property (nonatomic, strong) UIView *contentView;
  41. @property (nonatomic, strong) UIButton *nextButton;
  42. @property (nonatomic, assign) MerchantEnrollStep currentStep;
  43. @property (nonatomic, weak) id<MerchantEnrollContentViewDelegate> delegate;
  44. @property (nonatomic, strong) NetHttpsManager *netManager;
  45. @property (readonly, nullable) UIViewController *viewController;
  46. - (void)goNext;
  47. @end
  48. NS_ASSUME_NONNULL_END