Files
keyboard/keyBoard/Class/Pay/VC/KBPayMainVC.h

34 lines
949 B
C
Raw Normal View History

2026-02-04 12:33:01 +08:00
//
// KBPayMainVC.h
// keyBoard
//
// Created by Mac on 2026/2/3.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface KBPayMainVC : BaseViewController
2026-02-04 20:23:20 +08:00
/// 默认选中的会员类型:
/// - 0VIP
/// - 1SVIP
/// 默认 0
@property (nonatomic, assign) NSInteger initialSelectedIndex;
2026-02-04 21:49:28 +08:00
/// 通过键盘深链配置初始商品及是否自动发起购买(透传给 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;
2026-02-04 12:33:01 +08:00
@end
NS_ASSUME_NONNULL_END