h5及小秘书支持跳转对应话题页
This commit is contained in:
@@ -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
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user