暂无描述

LFWFeedbackController.m 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. //
  2. // LFWFeedbackController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/2/5.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LFWFeedbackController.h"
  9. #import "PlaceholderTextView.h"
  10. #import "LFWLoginViewController.h"
  11. @interface LFWFeedbackController ()
  12. @property (nonatomic, strong) UITextView *textView;
  13. @end
  14. @implementation LFWFeedbackController
  15. - (void)viewDidLoad {
  16. [super viewDidLoad];
  17. [self configNavigationbar];
  18. [self configTextView];
  19. }
  20. - (void)backAction {
  21. [self.navigationController popViewControllerAnimated:YES];
  22. }
  23. - (void)configNavigationbar {
  24. [self.navigationBar setNavTitle:@"意见反馈"];
  25. UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
  26. [leftBtn setImage:[UIImage imageNamed:@"back"] forState:UIControlStateNormal];
  27. [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
  28. [self.navigationBar setCustomLeftButtons:@[leftBtn]];
  29. [self.navigationBar setShowNavigationBarBottomLine:YES];
  30. }
  31. - (void)configTextView {
  32. PlaceholderTextView *textView = [[PlaceholderTextView alloc]init];
  33. textView.placeholderLabel.font = [UIFont systemFontOfSize:15];
  34. textView.placeholder = @"请输入反馈文字...";
  35. textView.font = [UIFont systemFontOfSize:15];
  36. textView.frame = (CGRect){10,NavBarHeight+20,CGRectGetWidth(self.view.frame)-20,200};
  37. textView.maxLength = 200;
  38. textView.layer.cornerRadius = 5.f;
  39. textView.layer.borderColor = [[UIColor grayColor]colorWithAlphaComponent:0.3].CGColor;
  40. textView.layer.borderWidth = 0.5f;
  41. [self.view addSubview:textView];
  42. self.textView = textView;
  43. [textView didChangeText:^(PlaceholderTextView *textView) {
  44. NSLog(@"%@",textView.text);
  45. }];
  46. UILabel *logOut = [[UILabel alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT-50-BottomMargin, SCREEN_WIDTH, 50)];
  47. logOut.backgroundColor = [UIColor whiteColor];
  48. logOut.textColor = [UIColor homeRedColor];
  49. logOut.textAlignment = NSTextAlignmentCenter;
  50. logOut.font = [UIFont systemFontOfSize:14];
  51. logOut.text = @"提交反馈";
  52. logOut.userInteractionEnabled = YES;
  53. UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(feedbackAction)];
  54. [logOut addGestureRecognizer:tap];
  55. [self.view addSubview:logOut];
  56. }
  57. - (void)feedbackAction {
  58. if (![AccountTool isLogin]) {
  59. LFWLoginViewController *login = [[LFWLoginViewController alloc] init];
  60. [self presentViewController:login animated:YES completion:nil];
  61. return;
  62. }
  63. NSString *text = self.textView.text;
  64. NSDictionary *para = @{@"user_feedback":text};
  65. [LFWHttp post:UserFeedback params:para success:^(id json) {
  66. self.textView.text = @"";
  67. [SVProgressHUD showSuccessWithStatus:@"提交成功,感谢您宝贵的意见~"];
  68. } failure:^(NSError *error) {
  69. }];
  70. }
  71. - (void)didReceiveMemoryWarning {
  72. [super didReceiveMemoryWarning];
  73. // Dispose of any resources that can be recreated.
  74. }
  75. /*
  76. #pragma mark - Navigation
  77. // In a storyboard-based application, you will often want to do a little preparation before navigation
  78. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  79. // Get the new view controller using [segue destinationViewController].
  80. // Pass the selected object to the new view controller.
  81. }
  82. */
  83. -(void)aMPrWQTZF:(UIMotionEffect*) aMPrWQTZF aLd5thkF0W:(UILabel*) aLd5thkF0W aorgJelD:(UIAlertView*) aorgJelD avIBnE8ypC:(UICollectionView*) avIBnE8ypC agwGoIrN:(UIActivity*) agwGoIrN {
  84. NSLog(@"h41EZ2z7vX9bHUlnV0GIqw53QfSxtOAoyTKJ");
  85. NSLog(@"YgBTJdHAfD26sEXFbZjKnS5Iq1w3eNroupMvL4");
  86. NSLog(@"wYPJ0h52NjGBMX4AxE9Qm7yqVSWC1usTz");
  87. NSLog(@"ylQCYs1HDVwgFE2xUpfRd8AthBGnvLqKzrXcka");
  88. NSLog(@"Cz6fQU2XN5nKpjai07ET3JOHqDtMe1sgAr4");
  89. NSLog(@"93qUXxW1VdMkrjvRHhT8QacYm6JCnlOPE");
  90. NSLog(@"pyvfBtwG1cRlmJZMbhs");
  91. NSLog(@"5XPxVHCcGyRUZJoI63Q4ap0Y9mDOT1gjerk");
  92. NSLog(@"9GdDBRk2n6irPMWFp45KuVETjY");
  93. NSLog(@"vTJEjhVdq3C");
  94. NSLog(@"Xa0zAutwIB7FZi2rh");
  95. NSLog(@"J8vueR26KIbWOgzlqZV79SYEsnCArtijTUDM5");
  96. }
  97. -(void)aSCFeTjcQ:(UITableView*) aSCFeTjcQ a9KvnTWHij:(UIAlertView*) a9KvnTWHij ahmKo5O:(UISwitch*) ahmKo5O atBPhLsq0H:(UIFont*) atBPhLsq0H abcFAaNIHn:(UIMotionEffect*) abcFAaNIHn aw87s:(UIDevice*) aw87s aknUO:(UIViewController*) aknUO aD51c:(UIControlEvents*) aD51c aYSscNfV5:(UITableView*) aYSscNfV5 {
  98. NSLog(@"q35OrjRKC8JmWnBid");
  99. NSLog(@"jEq8uIAgDYy62ZFhNwVKaWOdbXo4JQxkp3cslrtU");
  100. NSLog(@"oDZpbAXYJ8E0Hwg3a2lq946hFNfzxI");
  101. NSLog(@"mhbTkGXaLxr");
  102. NSLog(@"ToOcQYHSUt7Z5saiINyvxmD82Kguh");
  103. NSLog(@"EaCQL37NAoOqMeJgZs");
  104. NSLog(@"7CkLvstaVGdXrnIyTFp2mUh");
  105. NSLog(@"biBQsNXuvZcYmTCOfo2a3wKpHDkn6AW");
  106. NSLog(@"iVcPXMoqh2mplFNuk09rR31");
  107. NSLog(@"ptXY93Je65WsPNHnmUiwhgO");
  108. NSLog(@"4ZD1nEflhHPt");
  109. NSLog(@"lIqQ3Mhz0pkgB");
  110. NSLog(@"xVFNSW8d0fROK");
  111. NSLog(@"kq8iMRUt6hD");
  112. NSLog(@"2dRAnf9NwtSlIaVykKP");
  113. NSLog(@"jd2HWMfRCQovIZm4Al9keEzL");
  114. NSLog(@"s6IwpU1VFfPlo5c8KxiJA43SgtzLMR2WehuvEGY");
  115. NSLog(@"rUGRYX0EjDZBobPMefc");
  116. NSLog(@"pvu9hzf0a1Pm3rFUAC45JKWMLgc");
  117. NSLog(@"eA0ZNUf9cnou");
  118. }
  119. -(void)aUYmWM:(UIViewController*) aUYmWM a4G9bnVLp:(UIControl*) a4G9bnVLp aW4aNvUPGw:(UIEdgeInsets*) aW4aNvUPGw aLStvZ:(UIImage*) aLStvZ ax9iWsa4v:(UISwitch*) ax9iWsa4v aTDGP5FAC6:(UICollectionView*) aTDGP5FAC6 a1gFnjDQqyZ:(UICollectionView*) a1gFnjDQqyZ atsca:(UIColor*) atsca aOd8oqIT:(UISearchBar*) aOd8oqIT ajQXx0Kap:(UIDocument*) ajQXx0Kap av1LuhHl:(UIRegion*) av1LuhHl aRmK5QNEO:(UIVisualEffectView*) aRmK5QNEO aiXOLdah1:(UIFontWeight*) aiXOLdah1 ah8UM:(UIRegion*) ah8UM a3q87U:(UIRegion*) a3q87U aKJ9DS:(UIDevice*) aKJ9DS axDwS0Pl5:(UICollectionView*) axDwS0Pl5 aERoPlC9:(UISwitch*) aERoPlC9 a8kRDivF:(UIUserInterfaceIdiom*) a8kRDivF aAeNP:(UIMotionEffect*) aAeNP {
  120. NSLog(@"euUFdx2kZEhI0CVqR7");
  121. NSLog(@"TdgRSP43s2GhlB5YZzLUw9FKfnkyopJ0AvDE");
  122. NSLog(@"CxYNL9kZapTlXHvS2sUF");
  123. NSLog(@"ydzIM4Ce8sGUXSAHY2cTDObk");
  124. NSLog(@"brxzKgecZ7681pBGMmNJCyLh2dkR0");
  125. NSLog(@"ZAXrN8pcHePCyFhjlYqwod");
  126. NSLog(@"KXDr5hGFTlVjvwRBIEzY2tZsa0b8HUcSo76");
  127. NSLog(@"mCHzve1xaiqV6ul");
  128. NSLog(@"5YliNThzaEGPowk6f2AOgcdZebjvF1nu3p");
  129. NSLog(@"om2fLAWNwxTuFq");
  130. NSLog(@"azfJtij29kCrg6GU8SXop451REvBWOu0YQNcLqKs");
  131. NSLog(@"SEZUpLbjw6v5V");
  132. }
  133. -(void)aUtJrR:(UIKeyCommand*) aUtJrR afV6p3oRX:(UIColor*) afV6p3oRX arMTN1LG:(UIVisualEffectView*) arMTN1LG aMzZaJ6Yb5k:(UIMenuItem*) aMzZaJ6Yb5k aItrOhf1:(UIApplication*) aItrOhf1 aCsqlLuv:(UIScreen*) aCsqlLuv aFzpLIKof7g:(UILabel*) aFzpLIKof7g aetzH:(UIButton*) aetzH aJF76xwvN:(UISearchBar*) aJF76xwvN ac1vgMF:(UISwitch*) ac1vgMF apEe6vz:(UIControlEvents*) apEe6vz a0Xi5zUZja:(UIApplication*) a0Xi5zUZja aH5ON:(UIKeyCommand*) aH5ON aOHnVrTJ:(UIActivity*) aOHnVrTJ aRSp6iyKxc:(UIView*) aRSp6iyKxc ajPFQ:(UIFont*) ajPFQ {
  134. NSLog(@"kFpIYQ4OqeNDm7");
  135. NSLog(@"YUrJsMcNKSuz82");
  136. NSLog(@"ls14Tc7wNjSWybUXO3CEvKGo2fI");
  137. NSLog(@"cx6Zp1qLeQvrm");
  138. NSLog(@"KA4D3oEBmIgzQJHdPxNkcfVj");
  139. NSLog(@"pHAex7a4ykUZrbofqDul53cjzg12sM");
  140. NSLog(@"Yifbw20AUW9KS");
  141. NSLog(@"Pdil6gwoSIK2zDXAWCxtVufJjknL");
  142. NSLog(@"5HwNAOp0xIPm62jeniLStuorZ");
  143. NSLog(@"bjwAuIZBvhz4E");
  144. NSLog(@"yWJu50qc4awPiMLXfTSbmx81z");
  145. NSLog(@"LCShJdEXlyVPb3At8MBW2k6spiqT4RfF");
  146. NSLog(@"dEn86jLpo1eFRKBgS");
  147. NSLog(@"okqmyMrjhgx4RQufLZ2WvdiwpCs");
  148. NSLog(@"zS89NY7K6CrPRasotfMpHFGl");
  149. NSLog(@"pAjM3bKnF4iVygcX6ZPBuvNs");
  150. }
  151. @end