CNLiveCServiceManagerBridge.h
1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//
// CNLiveCServiceManagerBridge.h
// CNLiveCServiceModule
//
// Created by CNLive on 2021/12/2.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger , CNCServiceJumpType) {
CNCServiceJumpTypeService, //服务内容跳转逻辑
CNCServiceJumpTypeGetPage, //getpage获取内容
CNCServiceJumpTypeWebVC //电商h5页面
};
@protocol CNLiveCServiceProtocol <NSObject>
/**
* 服务号跳转
*
* @param type type
* @param param 参数
*/
- (void)jumpControllerType:(CNCServiceJumpType)type param:(NSDictionary *_Nullable)param controller:(UIViewController *_Nullable)controller;
@end
NS_ASSUME_NONNULL_BEGIN
@interface CNLiveCServiceManagerBridge : NSObject
@property (nonatomic, strong) id<CNLiveCServiceProtocol> protocol;
+ (instancetype) shareManager;
+ (UIViewController *)viewControllerFromView:(UIView *)view;
/**
* 服务号跳转
*
* @param serviceId 服务号id
* @param type type
* @param to to
* @param shopType shopType
*/
+ (void)jumpServiceController:(NSString *)serviceId
showAgreement:(NSString *)showAgreement
agreementDesc:(NSString *)agreementDesc
type:(NSString *)type
to:(NSString *)to
shopType:(NSString *)shopType
controller:(UIViewController *)controller;
/**
* 服务号跳转
*
* @param type type
* @param param 参数
*/
+ (void)jumpViewControllerType:(CNCServiceJumpType)type
param:(NSDictionary *)param
controller:(UIViewController *)controller;
/**
*服务号跳转
*@param urlStr 网页地址
*/
+ (void)jumpWebVCWithUrl:(NSString *)urlStr controller:(UIViewController *)controller;
@end
NS_ASSUME_NONNULL_END