h5及小秘书支持跳转对应话题页

This commit is contained in:
chenguilong
2022-11-15 18:50:46 +08:00
parent 638689dd3a
commit 5f9eacd4dc
3 changed files with 25 additions and 2 deletions

View File

@@ -38,6 +38,8 @@ typedef NS_ENUM(NSInteger, SecretaryRouterType) {
SecretaryRouterType_Dressup_Shop = 73, SecretaryRouterType_Dressup_Shop = 73,
///我的装扮 ///我的装扮
SecretaryRouterType_My_Dressup = 74, SecretaryRouterType_My_Dressup = 74,
///广场话题
SecretaryRouterType_Square_Topic = 75,
}; };
@interface ContentSecretaryModel : NSObject @interface ContentSecretaryModel : NSObject

View File

@@ -30,6 +30,7 @@
#import "XPDressUpShopViewController.h" #import "XPDressUpShopViewController.h"
#import "XPNobleCenterViewController.h" #import "XPNobleCenterViewController.h"
#import "XPMineLoginPasswordViewController.h" #import "XPMineLoginPasswordViewController.h"
#import "XPMonentTopicContainerViewController.h"
///P ///P
#import "RoomHostDelegate.h" #import "RoomHostDelegate.h"
@interface MessageContentTextClickable() @interface MessageContentTextClickable()
@@ -234,7 +235,13 @@
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:dressUpVC animated:YES]; [[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:dressUpVC animated:YES];
} }
break; break;
case SecretaryRouterType_Square_Topic:
{
XPMonentTopicContainerViewController *topicVC = [[XPMonentTopicContainerViewController alloc] init];
topicVC.worldId = value;
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:topicVC animated:YES];
}
break;
default: default:
break; break;
} }

View File

@@ -25,6 +25,7 @@
#import "XPDressUpShopViewController.h" #import "XPDressUpShopViewController.h"
#import "XPRoomViewController.h" #import "XPRoomViewController.h"
#import "RoomHostDelegate.h" #import "RoomHostDelegate.h"
#import "XPMonentTopicContainerViewController.h"
typedef NS_ENUM(NSUInteger, RightNavigationPushType){ typedef NS_ENUM(NSUInteger, RightNavigationPushType){
///h5 ///h5
@@ -327,7 +328,13 @@ NSString * const kProhibitRightSlip = @"prohibitRightSlip";
#pragma mark - private method #pragma mark - private method
- (void)handleRouterType:(NSInteger)skyType message:(WKScriptMessage *)message { - (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) { switch (skyType) {
case 1: case 1:
{ {
@@ -354,6 +361,13 @@ NSString * const kProhibitRightSlip = @"prohibitRightSlip";
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:vc animated:YES]; [[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:vc animated:YES];
} }
break; break;
case 75:
{//
NSString *topicId = bodyDict[@"routerVal"];
XPMonentTopicContainerViewController * topicVC = [[XPMonentTopicContainerViewController alloc] init];
topicVC.worldId = topicId;
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController pushViewController:topicVC animated:YES];
}
default: default:
break; break;
} }