// // MerchantBaseEnrollContentView.h // merchant // // Created by qitewei on 2025/8/18. // #import #import #import "NetHttpsManager+Store.h" #import "UIView+TUIToast.h" NS_ASSUME_NONNULL_BEGIN typedef enum : NSUInteger { MerchantEnrollStepGuide, MerchantEnrollStepCheckList, MerchantEnrollStepStoreInfo, MerchantEnrollStepBusinessLicense, MerchantEnrollStepLegalInfo, MerchantEnrollStepBank, MerchantEnrollStepSetAdmin, MerchantEnrollStepPay, MerchantEnrollStepWatingForReview, MerchantEnrollStepReviewFail, MerchantEnrollStepComplete } MerchantEnrollStep; typedef enum : NSUInteger { MerchantEnrollResultPending, // 提交成功,等待审核 MerchantEnrollResultFailed, // 审核未通过,需要修改 MerchantEnrollResultSuccess // 审核通过,完成入驻 } MerchantEnrollResultType; typedef void(^DidPickImageAction)(UIImage *image); @protocol MerchantEnrollContentViewDelegate - (void)onMerchantEnrollGotoNextButtonClick; - (void)onMerchantEnrollResultNextButtonClick:(MerchantEnrollResultType)type; @end @protocol MerchantEnrollParametersDataSource - (NSDictionary *)getMerchantEnrollParameters; @end @protocol MerchantEnrollDataFillDelegate /** * 用保存的数据填充表单 */ - (void)fillWithData:(NSDictionary *)data; @end @interface MerchantBaseEnrollContentView : UIView @property (nonatomic, strong) UILabel *titleLabel; @property (nonatomic, strong) UIScrollView *scrollView; @property (nonatomic, strong) UIView *contentView; @property (nonatomic, strong) UIButton *nextButton; @property (nonatomic, assign) MerchantEnrollStep currentStep; @property (nonatomic, weak) id delegate; @property (nonatomic, strong) NetHttpsManager *netManager; @property (readonly, nullable) UIViewController *viewController; - (void)goNext; - (void)pickImageWithCompletion:(DidPickImageAction)completion; - (void)uploadImage:(UIImage *)image completion:(void(^)(NSString *url))completion; @end NS_ASSUME_NONNULL_END