Target_Home.m 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // Target_Home.m
  3. // Asteria
  4. //
  5. // Created by iOS on 2023/6/5.
  6. //
  7. #import "Target_Home.h"
  8. #import "ASHomeViewController.h"
  9. #import "ASProductListViewController.h"
  10. @implementation Target_Home
  11. - (UIViewController *)Action_getHomeVc:(NSDictionary *)params {
  12. ASHomeViewController *vc = [[ASHomeViewController alloc] init];
  13. return vc;
  14. }
  15. /**
  16. - params: {
  17. "type":typeId, //String
  18. "title":titleStr,//String
  19. "searchKey":keyword,//String
  20. "secondTime": secondTime,// NSNumber,
  21. "pointGetType":pointGetType,//NSNumber
  22. }
  23. */
  24. - (UIViewController *)Action_getProductListVc:(NSDictionary *)params {
  25. ASProductListViewController *vc = [[ASProductListViewController alloc] init];
  26. vc.titleStr = params[@"title"];
  27. if ([params valueForKey:@"searchKey"] != nil) {
  28. vc.keyWord = params[@"searchKey"];
  29. }
  30. if ([params valueForKey:@"type"] != nil) {
  31. vc.type = params[@"type"];
  32. }
  33. if ([params valueForKey:@"secondTime"] != nil) {
  34. vc.secondTime = ((NSNumber *)params[@"secondTime"]).integerValue;
  35. }
  36. if ([params valueForKey:@"pointGetType"] != nil) {
  37. vc.pointGetType = ((NSNumber *)params[@"pointGetType"]).integerValue;
  38. }
  39. return vc;
  40. }
  41. @end