Files
keyboard/keyBoard/Class/Pay/VC/KBPayMainVC.h
2026-02-04 21:49:28 +08:00

34 lines
949 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// KBPayMainVC.h
// keyBoard
//
// Created by Mac on 2026/2/3.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface KBPayMainVC : BaseViewController
/// 默认选中的会员类型:
/// - 0VIP
/// - 1SVIP
/// 默认 0
@property (nonatomic, assign) NSInteger initialSelectedIndex;
/// 通过键盘深链配置初始商品及是否自动发起购买(透传给 VIP 页)
- (void)configureWithProductId:(nullable NSString *)productId
autoPurchase:(BOOL)autoPurchase;
/// 通过键盘扩展预填充商品列表(免二次请求,透传给 VIP 页)
/// 注意selectedIndex 是商品列表下标,不是 VIP/SVIP 的 tab 下标
- (void)configureWithProductId:(nullable NSString *)productId
autoPurchase:(BOOL)autoPurchase
prefillProductsJSON:(nullable NSArray *)productsJSON
selectedIndex:(NSInteger)selectedIndex;
@end
NS_ASSUME_NONNULL_END