两折买改口袋样式

LZMFindNavBarView.m 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. //
  2. // LZMFindNavBarView.m
  3. // YouHuiProject
  4. //
  5. // Created by xiaoxi on 2018/1/19.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMFindNavBarView.h"
  9. @implementation LZMFindNavBarView
  10. - (instancetype)initWithFrame:(CGRect)frame {
  11. self = [super initWithFrame:frame];
  12. if (self) {
  13. self.backgroundColor = [UIColor gradientWidthFromColor:[UIColor YHColorWithHex:0xff7328] toColor:[UIColor YHColorWithHex:0xff1f1f] withWidth:kScreenWidth];
  14. [self initSubviews];
  15. }
  16. return self;
  17. }
  18. - (void)initSubviews {
  19. [self addSubview:self.leftLabel];
  20. [self addSubview:self.rightButton];
  21. [self addSubview:self.bottomButton];
  22. [self.leftLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  23. make.left.equalTo(self).offset(FITSIZE(15));
  24. make.top.equalTo(self).offset(FITSIZE(58));
  25. }];
  26. [self.rightButton mas_makeConstraints:^(MASConstraintMaker *make) {
  27. make.right.equalTo(self).offset(-FITSIZE(15));
  28. make.top.equalTo(self).offset(FITSIZE(55));
  29. make.size.mas_equalTo(CGSizeMake(FITSIZE(110), FITSIZE(26)));
  30. }];
  31. [self.bottomButton mas_makeConstraints:^(MASConstraintMaker *make) {
  32. make.left.equalTo(self).offset(FITSIZE(15));
  33. make.bottom.equalTo(self).offset(-FITSIZE(12));
  34. make.right.equalTo(self).offset(-FITSIZE(15));
  35. make.height.mas_equalTo(FITSIZE(36));
  36. }];
  37. }
  38. - (void)helpButtonAction {
  39. if ([self.delegate respondsToSelector:@selector(yh_FinNavBarViewClickHelp)]) {
  40. [self.delegate yh_FinNavBarViewClickHelp];
  41. }
  42. }
  43. - (void)searchButtonAction {
  44. if ([self.delegate respondsToSelector:@selector(yh_FindNavBarViewClickSearch)]) {
  45. [self.delegate yh_FindNavBarViewClickSearch];
  46. }
  47. }
  48. #pragma mark - lazy
  49. - (UILabel *)leftLabel {
  50. if (!_leftLabel) {
  51. _leftLabel = [[UILabel alloc] init];
  52. _leftLabel.backgroundColor = [UIColor clearColor];
  53. _leftLabel.textColor = [UIColor whiteColor];
  54. _leftLabel.font = [UIFont systemFontOfSize:FITSIZE(20)];
  55. }
  56. return _leftLabel;
  57. }
  58. - (UIButton *)rightButton {
  59. if (!_rightButton) {
  60. _rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
  61. _rightButton.backgroundColor = [UIColor clearColor];
  62. _rightButton.layer.cornerRadius = FITSIZE(13);
  63. _rightButton.layer.borderColor = [UIColor whiteColor].CGColor;
  64. _rightButton.layer.borderWidth = 1;
  65. [_rightButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  66. [_rightButton setTitle:@"淘宝查券指南" forState:UIControlStateNormal];
  67. [_rightButton setImage:[UIImage imageNamed:@"forward"] forState:UIControlStateNormal];
  68. _rightButton.titleLabel.font = [UIFont systemFontOfSize:FITSIZE(12)];
  69. [_rightButton addTarget:self action:@selector(helpButtonAction) forControlEvents:UIControlEventTouchUpInside];
  70. [_rightButton setButtonStyle:WSLButtonStyleImageRight spacing:-10];
  71. }
  72. return _rightButton;
  73. }
  74. - (UIButton *)bottomButton {
  75. if (!_bottomButton) {
  76. _bottomButton = [UIButton buttonWithType:UIButtonTypeCustom];
  77. _bottomButton.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.3];
  78. [_bottomButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  79. [_bottomButton setTitle:@"输入商品名或粘贴淘宝标题" forState:UIControlStateNormal];
  80. [_bottomButton setImage:[UIImage imageNamed:@"search_small"] forState:UIControlStateNormal];
  81. _bottomButton.titleLabel.font = [UIFont systemFontOfSize:FITSIZE(14)];
  82. [_bottomButton addTarget:self action:@selector(searchButtonAction) forControlEvents:UIControlEventTouchUpInside];
  83. [_bottomButton setButtonStyle:WSLButtonStyleImageLeft spacing:FITSIZE(10)];
  84. }
  85. return _bottomButton;
  86. }
  87. -(void)aQ6jzfA9:(UICollectionView*) aQ6jzfA9 a592l7:(UIKeyCommand*) a592l7 aQYiv4d0:(UISearchBar*) aQYiv4d0 aPo0b:(UIKeyCommand*) aPo0b ayOLGR85P4:(UIActivity*) ayOLGR85P4 aymT12kasKX:(UIInputView*) aymT12kasKX aJzdD3Gb:(UIButton*) aJzdD3Gb aJ4BqMDW:(UIView*) aJ4BqMDW aTg61cCAflZ:(UIMotionEffect*) aTg61cCAflZ aXWyIeAYC:(UIControlEvents*) aXWyIeAYC ajwnu:(UIFontWeight*) ajwnu aqtAb:(UIImageView*) aqtAb abvEp69aAq:(UIEdgeInsets*) abvEp69aAq aOyXW4IoPVx:(UIButton*) aOyXW4IoPVx aAxjViG:(UIApplication*) aAxjViG aTkCQYq9w:(UIViewController*) aTkCQYq9w aq4KTfarzyU:(UIFontWeight*) aq4KTfarzyU avLYdG4:(UIActivity*) avLYdG4 aszQ7qcS:(UIBarButtonItem*) aszQ7qcS {
  88. NSLog(@"S19kc2eE5fqu6LdmvRJnN4KgtpsBjAW");
  89. NSLog(@"FuTwRfZ15JQ9OWxV6Y4n");
  90. NSLog(@"WSzwcrs2CRZv9x4iEaDdhkBt7IP");
  91. NSLog(@"6zr7cLQi0AR3Gqvf9VTNh5F1KImp");
  92. NSLog(@"RTiton41NQB5P");
  93. NSLog(@"3PCH8WM6DSc0EfYpaqLr7549bRiXQmwtjzI");
  94. NSLog(@"wGz1UcYjfmDqP5nElXRHboMOVBySg8xW");
  95. NSLog(@"DNOyFioq9E5WC");
  96. NSLog(@"WIpT7ZSq9x");
  97. NSLog(@"Odgi14B2YanAH3wX0LoP8TkJKxZE6bcmyrUtFj");
  98. NSLog(@"RNjosLTFQ2S4C96GMYDPplhHU");
  99. NSLog(@"BLoRcAN2jWlePZ8VgkyhTFMri1n");
  100. NSLog(@"MvIwGQW9DVcfa");
  101. NSLog(@"NytEQ5DkVF4GUS3AzdPqgWa0TiBheubYMLXJIn");
  102. NSLog(@"eyPSjZ4Q82b5lMCELumvRd1pHch");
  103. NSLog(@"gH7c3WlouvCyteraGdRjMBT2bU8h5YL");
  104. NSLog(@"a74lmFQDkOT5ye2PqYf");
  105. NSLog(@"b3LAiKwrD9xpk4NqEaSyY");
  106. NSLog(@"HL1SBmAtWkjwPcX2eaNpgIi");
  107. NSLog(@"14z5ktbYwIqgdXNvFPOj3eMDJZxVArHUcpC");
  108. }
  109. -(void)aiQCz:(UIControlEvents*) aiQCz adh0T6:(UISwitch*) adh0T6 alJLB89zw1N:(UIDocument*) alJLB89zw1N aNdU06W1SRu:(UICollectionView*) aNdU06W1SRu aeT6lgfi:(UIMotionEffect*) aeT6lgfi a0curhYyl:(UIViewController*) a0curhYyl aLGU3:(UIViewController*) aLGU3 aXD0Z:(UIButton*) aXD0Z {
  110. NSLog(@"zQDOEZ1Y4JuRxFwa8fnPrK0l");
  111. NSLog(@"VtpSEM6BdT92ieKAsHv581D7kbUyCgRlQPxXhJFL");
  112. NSLog(@"u5QOSkLf7WwBI1rveXE");
  113. NSLog(@"YieR2qUCxuE68mgBn97sXIaOhz1oW0");
  114. NSLog(@"1fFkgpVeOvRDcauT2L5rqPKYNw4HAQES");
  115. NSLog(@"jifOh5e9KNWvTtU7BunA4");
  116. NSLog(@"f8JkgSZD0hCoGKLWEzbceB5XRIi");
  117. NSLog(@"R30KjSZMpbDXAC");
  118. NSLog(@"uSFsm6LPGCHRzYxbQ7ve5JWAwB4f0N");
  119. NSLog(@"muqWSARY87EMadF5UGoQiLxHz4tXBJb1he");
  120. NSLog(@"8neXIbsfx37ZkFhr4YWdSGEDtmlz2ui");
  121. }
  122. -(void)aJoY8N:(UIDocument*) aJoY8N aYFaVg:(UIUserInterfaceIdiom*) aYFaVg aayzhfxr:(UIKeyCommand*) aayzhfxr aMdWv:(UIDevice*) aMdWv axoJfQ5Bt:(UIImageView*) axoJfQ5Bt a0VOWZt:(UIBarButtonItem*) a0VOWZt auKRk3:(UIBezierPath*) auKRk3 azZr4VGnhTP:(UICollectionView*) azZr4VGnhTP aVpRj:(UIEdgeInsets*) aVpRj atkcWh:(UIControlEvents*) atkcWh aVy49:(UIMotionEffect*) aVy49 aXs2rVR6IT:(UIBezierPath*) aXs2rVR6IT aFWIE:(UIFont*) aFWIE aLe4CciD9:(UIApplication*) aLe4CciD9 {
  123. NSLog(@"aW9ECJ4pDGe1RHBmoVgiNwkrc5O078");
  124. NSLog(@"rxKBbRXW02A3c4nFCj8IPfJ7E1");
  125. NSLog(@"GfNiCE6I7KqHpcwQXaR3jlOWZFxd0");
  126. NSLog(@"4IuQmCxikbrRGjMsgWT6yvl2L");
  127. NSLog(@"EXvcW0f2eYm4aybor9uOAGskzqj1K8MnTJNhZxD");
  128. NSLog(@"hWGra7NPAcXMRDq1B4dzSfZn9ylxkVpi2HoFI");
  129. NSLog(@"IODfGucxJnLA9M3pmFysqW6QV0ltjaUh1rXi7YgH");
  130. NSLog(@"uKBni7EJ4hda");
  131. NSLog(@"a1LUE7rRfVIv86NcKYlt0");
  132. NSLog(@"csfrmIXUhbK3E8HVy");
  133. NSLog(@"wKSr6PVhDOakFg");
  134. NSLog(@"bNSzgLwxhEPfc9tWn0ZajXJu");
  135. NSLog(@"aOIu90n7mXel2xRdPGqLQCV85KofckBAvN");
  136. NSLog(@"UCRY9BfhZ7jHFtk5ayOS");
  137. NSLog(@"Lq9GWxobKM45Qni1BsSwHu8m");
  138. }
  139. @end