| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- //
- // MerchantBaseEnrollContentView.h
- // merchant
- //
- // Created by qitewei on 2025/8/18.
- //
- #import <UIKit/UIKit.h>
- #import <JXCategoryView.h>
- #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 <NSObject>
- - (void)onMerchantEnrollGotoNextButtonClick;
- - (void)onMerchantEnrollResultNextButtonClick:(MerchantEnrollResultType)type;
- @end
- @protocol MerchantEnrollParametersDataSource <NSObject>
- - (NSDictionary *)getMerchantEnrollParameters;
- @end
- @protocol MerchantEnrollDataFillDelegate <NSObject>
- /**
- * 用保存的数据填充表单
- */
- - (void)fillWithData:(NSDictionary *)data;
- @end
- @interface MerchantBaseEnrollContentView : UIView<JXCategoryListContentViewDelegate, MerchantEnrollParametersDataSource, UINavigationControllerDelegate,UIImagePickerControllerDelegate>
- @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<MerchantEnrollContentViewDelegate> 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
|