h5及小秘书支持跳转对应话题页
This commit is contained in:
@@ -38,6 +38,8 @@ typedef NS_ENUM(NSInteger, SecretaryRouterType) {
|
||||
SecretaryRouterType_Dressup_Shop = 73,
|
||||
///我的装扮
|
||||
SecretaryRouterType_My_Dressup = 74,
|
||||
///广场话题
|
||||
SecretaryRouterType_Square_Topic = 75,
|
||||
};
|
||||
|
||||
@interface ContentSecretaryModel : NSObject
|
||||
|
@@ -30,6 +30,7 @@
|
||||
#import "XPDressUpShopViewController.h"
|
||||
#import "XPNobleCenterViewController.h"
|
||||
#import "XPMineLoginPasswordViewController.h"
|
||||
#import "XPMonentTopicContainerViewController.h"
|
||||
///P
|
||||
#import "RoomHostDelegate.h"
|
||||
@interface MessageContentTextClickable()
|
||||
@@ -234,7 +235,13 @@
|
||||
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:dressUpVC animated:YES];
|
||||
}
|
||||
break;
|
||||
|
||||
case SecretaryRouterType_Square_Topic:
|
||||
{
|
||||
XPMonentTopicContainerViewController *topicVC = [[XPMonentTopicContainerViewController alloc] init];
|
||||
topicVC.worldId = value;
|
||||
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:topicVC animated:YES];
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@
|
||||
#import "XPDressUpShopViewController.h"
|
||||
#import "XPRoomViewController.h"
|
||||
#import "RoomHostDelegate.h"
|
||||
#import "XPMonentTopicContainerViewController.h"
|
||||
|
||||
typedef NS_ENUM(NSUInteger, RightNavigationPushType){
|
||||
///跳转h5页面
|
||||
@@ -327,7 +328,13 @@ NSString * const kProhibitRightSlip = @"prohibitRightSlip";
|
||||
|
||||
#pragma mark - private method
|
||||
- (void)handleRouterType:(NSInteger)skyType message:(WKScriptMessage *)message {
|
||||
NSDictionary *bodyDict = (NSDictionary *)message.body;
|
||||
NSDictionary *bodyDict;
|
||||
if ([message.body isKindOfClass:[NSDictionary class]]) {
|
||||
bodyDict = message.body;
|
||||
} else if ([message.body isKindOfClass:[NSString class]]) {
|
||||
NSString *str = (NSString *)message.body;
|
||||
bodyDict = [str toJSONObject];
|
||||
}
|
||||
switch (skyType) {
|
||||
case 1:
|
||||
{
|
||||
@@ -354,6 +361,13 @@ NSString * const kProhibitRightSlip = @"prohibitRightSlip";
|
||||
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
break;
|
||||
case 75:
|
||||
{//跳转对应的话题
|
||||
NSString *topicId = bodyDict[@"routerVal"];
|
||||
XPMonentTopicContainerViewController * topicVC = [[XPMonentTopicContainerViewController alloc] init];
|
||||
topicVC.worldId = topicId;
|
||||
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:topicVC animated:YES];
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user