两折卖----返利app-----返利圈

LZMSearchPopView.m 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. //
  2. // LZMSearchPopView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/9.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMSearchPopView.h"
  9. @implementation LZMSearchPopView
  10. - (instancetype)initWithFrame:(CGRect)frame searchText:(NSString *)searchText{
  11. self = [super initWithFrame:frame];
  12. if (self) {
  13. self.layer.cornerRadius = 6;
  14. self.layer.masksToBounds = YES;
  15. self.backgroundColor = [UIColor whiteColor];
  16. [self initSubViewWithText:searchText];
  17. }
  18. return self;
  19. }
  20. - (void)initSubViewWithText:(NSString *)searchText {
  21. UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.width, Fitsize(85))];
  22. imageView.image = [UIImage imageNamed:@"SearchPop_bg"];
  23. [self addSubview:imageView];
  24. UILabel *titleLb = [[UILabel alloc] initWithFrame:CGRectMake(0, Fitsize(20), self.width, 25)];
  25. titleLb.text = @"智能省钱";
  26. titleLb.font = [UIFont systemFontOfSize:16];
  27. titleLb.textAlignment = NSTextAlignmentCenter;
  28. titleLb.textColor = [UIColor whiteColor];
  29. [imageView addSubview:titleLb];
  30. UILabel *desLb = [[UILabel alloc] initWithFrame:CGRectMake(0, titleLb.bottom, self.width, 17)];
  31. desLb.text = @"您可能想搜索该商品";
  32. desLb.font = [UIFont systemFontOfSize:12];
  33. desLb.textAlignment = NSTextAlignmentCenter;
  34. desLb.textColor = [UIColor whiteColor];
  35. [imageView addSubview:desLb];
  36. UILabel *searchLabel = [[UILabel alloc] initWithFrame:CGRectMake(23, imageView.bottom+30, self.width-46, 60)];
  37. searchLabel.numberOfLines = 3;
  38. searchLabel.textColor = [UIColor YHColorWithHex:0x262626];
  39. searchLabel.textAlignment = NSTextAlignmentCenter;
  40. searchLabel.font = [UIFont systemFontOfSize:14];
  41. searchLabel.text = searchText;
  42. [self addSubview:searchLabel];
  43. UIButton *cancelBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, self.height-57, self.width/2, 57)];
  44. [cancelBtn setTitleColor:[UIColor YHColorWithHex:0x999999] forState:UIControlStateNormal];
  45. [cancelBtn setTitle:@"取消" forState:UIControlStateNormal];
  46. cancelBtn.titleLabel.font = [UIFont systemFontOfSize:16];
  47. [cancelBtn addTarget:self action:@selector(cancelAction) forControlEvents:UIControlEventTouchUpInside];
  48. [self addSubview:cancelBtn];
  49. UIButton *searchBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.width/2, self.height-57, self.width/2, 57)];
  50. [searchBtn setTitleColor:[UIColor homeRedColor] forState:UIControlStateNormal];
  51. [searchBtn setTitle:@"搜索" forState:UIControlStateNormal];
  52. searchBtn.titleLabel.font = [UIFont systemFontOfSize:16];
  53. [searchBtn addTarget:self action:@selector(searchClick) forControlEvents:UIControlEventTouchUpInside];
  54. [self addSubview:searchBtn];
  55. }
  56. - (void)cancelAction {
  57. if (self.cancelClick) {
  58. self.cancelClick();
  59. }
  60. }
  61. - (void)searchClick {
  62. if (self.searchlClick) {
  63. self.searchlClick();
  64. }
  65. }
  66. -(void)aZ5sOrq4:(UIImage*) aZ5sOrq4 aWzXO5:(UIMenuItem*) aWzXO5 aPUZiAHv:(UIImageView*) aPUZiAHv aBpiM9hDZ:(UIControl*) aBpiM9hDZ aUZQiXug1h:(UIEvent*) aUZQiXug1h {
  67. NSLog(@"bPrMYiT03V");
  68. NSLog(@"ZRc8fD5MqybHWloFBLs67dGxuP");
  69. NSLog(@"TJFhuMY9LQrAivV7wnIeCctkGKs21NajmO6");
  70. NSLog(@"VtYwWBh6uq40EkK1RTjacI8DbFfolGXA7C");
  71. NSLog(@"LyNunbTkPXSYBqf3");
  72. NSLog(@"195nSYQDKEvqiUg");
  73. NSLog(@"YHaJsuUrknNQoEBc8fZ4ODCT16");
  74. NSLog(@"69JcOFbmTjw");
  75. NSLog(@"Ervl7azB91Q2UxVD5");
  76. NSLog(@"jzu8rmW7oLlpNaEQkK6fSshtviHcw9eIA4OP3DVX");
  77. NSLog(@"iWaYgEwpTAB1lj0X6x9RhCv");
  78. NSLog(@"BUhlIN476smFg3yJ");
  79. NSLog(@"Ea08yenhFj4sQUq");
  80. NSLog(@"vFSnaPZgVyl04wo1sL8IeA");
  81. NSLog(@"8XdxRo2PIt");
  82. }
  83. -(void)apejs6lVxI:(UISearchBar*) apejs6lVxI a5Cjv7:(UIWindow*) a5Cjv7 aNYAMUFJB:(UIControlEvents*) aNYAMUFJB aLbTGpW:(UIDevice*) aLbTGpW aDQz7tbjd1:(UIApplication*) aDQz7tbjd1 adRz4b8M:(UICollectionView*) adRz4b8M aNrH8CFEJL:(UISearchBar*) aNrH8CFEJL aSYkxs09Kj:(UIFontWeight*) aSYkxs09Kj aUNeo7n0O:(UIActivity*) aUNeo7n0O aKu13FQJ:(UIViewController*) aKu13FQJ aW8QUH:(UIDocument*) aW8QUH a4IrjfqaikA:(UIMenuItem*) a4IrjfqaikA {
  84. NSLog(@"PrgohEzwxf4LqvjQSK1OFVAdIRumGWtJsNa7Mc5");
  85. NSLog(@"aPQAH4c2Nrhw8j0VJmKWb6ZeY3BC1qLX");
  86. NSLog(@"Apk73IhVWwEBzXNR");
  87. NSLog(@"EnLvgm2MoVTyCakrYHGNj5b39PshZQRFt");
  88. NSLog(@"3MsdjXNPB41CqIvh");
  89. NSLog(@"rDyAws5FUNp1EHlZVcI");
  90. NSLog(@"UW39j0csO2yqrDYIf1EnktG");
  91. NSLog(@"N63XBatw4EgsCTlqUF701nWOPGbe5j");
  92. NSLog(@"JcCwfBYWqlgT25kx6RoibULOSPdDarNV7Es19KM");
  93. NSLog(@"XkuG06t52LTl4fUKWyp9rxhFQV8HosJi");
  94. NSLog(@"PWkwlR0fm8CAb");
  95. NSLog(@"mUlQr4cozqYJWvRFjCy63HB9x1Ea");
  96. }
  97. -(void)a746tkjqOy:(UIControl*) a746tkjqOy auMOVEfzZN:(UIUserInterfaceIdiom*) auMOVEfzZN a2UIypOu5:(UIControl*) a2UIypOu5 aqFOiahbWK:(UIDocument*) aqFOiahbWK aUC68:(UIBezierPath*) aUC68 aVlDcL:(UIMenuItem*) aVlDcL abAmGhep:(UIUserInterfaceIdiom*) abAmGhep ajf3weKbB:(UIBarButtonItem*) ajf3weKbB aeP8O21:(UISwitch*) aeP8O21 aMRsPLG5:(UIMenuItem*) aMRsPLG5 a8KWan:(UIFontWeight*) a8KWan a0nFrmD:(UICollectionView*) a0nFrmD atyu27jmY:(UISwitch*) atyu27jmY aOuAb74:(UIControlEvents*) aOuAb74 ardmcUgE:(UIBarButtonItem*) ardmcUgE a6pCvk:(UIView*) a6pCvk {
  98. NSLog(@"gJq1PSxzBF0IjDHoCwh6tf2iv9a5LYpOM4");
  99. NSLog(@"kWVvirpSfKLydFtsCB6x");
  100. NSLog(@"3x4JHTuVpCXbZytIMAUEosg0WwYa9qlneOBS15f");
  101. NSLog(@"wPyX72ThoxRr0Qfdjg8mSktnsLI");
  102. NSLog(@"wXdieWV0zj6PbgRO81xQK7y5DA2rBENmvIus");
  103. NSLog(@"f3WZQOA6urX2gmx0VhUznSo8KqtJ");
  104. NSLog(@"shBnZwcpxum2TM3RefOCaWNX4Qkojd0Uzrb5S");
  105. NSLog(@"o1jQdMO6DJ");
  106. NSLog(@"KQMAmUXcbxGYojBdhIp9Sg2ksTVzZNy");
  107. NSLog(@"D4KB3frUdFJ1XNSTCpbPl9vWsnuzHOYZeijm0");
  108. NSLog(@"kUTiHjbuw6txeWaRAqKcV4L7mSQo5803DN");
  109. NSLog(@"kzKgON5XslV1WadLUFTRvhSwnoJP7CQG");
  110. NSLog(@"e42fmPQoBId7yrOpsX");
  111. NSLog(@"Sy2GjTmVEoFb5dZ4aM7cksx9tDUQWpL8l");
  112. NSLog(@"gdvaiqB4m5Jph1MsHPjEtDOU7K6uSCNLIXGy");
  113. }
  114. @end