| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | ////  Target_Home.m//  Asteria////  Created by iOS on 2023/6/5.//#import "Target_Home.h"#import "ASHomeViewController.h"#import "ASProductListViewController.h"@implementation Target_Home- (UIViewController *)Action_getHomeVc:(NSDictionary *)params {    ASHomeViewController *vc = [[ASHomeViewController alloc] init];    return  vc;}/**    - params:  {    "type":typeId,  //String "title":titleStr,//String "searchKey":keyword,//String "secondTime": secondTime,// NSNumber, "pointGetType":pointGetType,//NSNumber } */- (UIViewController *)Action_getProductListVc:(NSDictionary *)params {    ASProductListViewController *vc = [[ASProductListViewController alloc] init];    vc.titleStr = params[@"title"];    if ([params valueForKey:@"searchKey"] != nil) {        vc.keyWord = params[@"searchKey"];    }    if ([params valueForKey:@"type"] != nil) {        vc.type = params[@"type"];    }    if ([params valueForKey:@"secondTime"] != nil) {        vc.secondTime = ((NSNumber *)params[@"secondTime"]).integerValue;    }    if ([params valueForKey:@"pointGetType"] != nil) {        vc.pointGetType = ((NSNumber *)params[@"pointGetType"]).integerValue;    }        return  vc;}@end
 |