123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- //
- // LFWFeedbackController.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/2/5.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "LFWFeedbackController.h"
- #import "PlaceholderTextView.h"
- #import "LFWLoginViewController.h"
- @interface LFWFeedbackController ()
- @property (nonatomic, strong) UITextView *textView;
- @end
- @implementation LFWFeedbackController
- - (void)viewDidLoad {
- [super viewDidLoad];
-
- [self configNavigationbar];
- [self configTextView];
- }
- - (void)backAction {
- [self.navigationController popViewControllerAnimated:YES];
- }
- - (void)configNavigationbar {
- [self.navigationBar setNavTitle:@"意见反馈"];
- UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
- [leftBtn setImage:[UIImage imageNamed:@"back"] forState:UIControlStateNormal];
- [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
- [self.navigationBar setCustomLeftButtons:@[leftBtn]];
- [self.navigationBar setShowNavigationBarBottomLine:YES];
- }
- - (void)configTextView {
- PlaceholderTextView *textView = [[PlaceholderTextView alloc]init];
- textView.placeholderLabel.font = [UIFont systemFontOfSize:15];
- textView.placeholder = @"请输入反馈文字...";
- textView.font = [UIFont systemFontOfSize:15];
- textView.frame = (CGRect){10,NavBarHeight+20,CGRectGetWidth(self.view.frame)-20,200};
- textView.maxLength = 200;
- textView.layer.cornerRadius = 5.f;
- textView.layer.borderColor = [[UIColor grayColor]colorWithAlphaComponent:0.3].CGColor;
- textView.layer.borderWidth = 0.5f;
- [self.view addSubview:textView];
- self.textView = textView;
-
- [textView didChangeText:^(PlaceholderTextView *textView) {
- NSLog(@"%@",textView.text);
- }];
-
- UILabel *logOut = [[UILabel alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT-50-BottomMargin, SCREEN_WIDTH, 50)];
- logOut.backgroundColor = [UIColor whiteColor];
- logOut.textColor = [UIColor homeRedColor];
- logOut.textAlignment = NSTextAlignmentCenter;
- logOut.font = [UIFont systemFontOfSize:14];
- logOut.text = @"提交反馈";
- logOut.userInteractionEnabled = YES;
- UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(feedbackAction)];
- [logOut addGestureRecognizer:tap];
- [self.view addSubview:logOut];
-
- }
- - (void)feedbackAction {
-
- if (![AccountTool isLogin]) {
- LFWLoginViewController *login = [[LFWLoginViewController alloc] init];
- [self presentViewController:login animated:YES completion:nil];
- return;
- }
-
- NSString *text = self.textView.text;
- NSDictionary *para = @{@"user_feedback":text};
- [LFWHttp post:UserFeedback params:para success:^(id json) {
-
- self.textView.text = @"";
-
- [SVProgressHUD showSuccessWithStatus:@"提交成功,感谢您宝贵的意见~"];
-
- } failure:^(NSError *error) {
-
- }];
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- /*
- #pragma mark - Navigation
- // In a storyboard-based application, you will often want to do a little preparation before navigation
- - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
- // Get the new view controller using [segue destinationViewController].
- // Pass the selected object to the new view controller.
- }
- */
- -(void)aMPrWQTZF:(UIMotionEffect*) aMPrWQTZF aLd5thkF0W:(UILabel*) aLd5thkF0W aorgJelD:(UIAlertView*) aorgJelD avIBnE8ypC:(UICollectionView*) avIBnE8ypC agwGoIrN:(UIActivity*) agwGoIrN {
- NSLog(@"h41EZ2z7vX9bHUlnV0GIqw53QfSxtOAoyTKJ");
- NSLog(@"YgBTJdHAfD26sEXFbZjKnS5Iq1w3eNroupMvL4");
- NSLog(@"wYPJ0h52NjGBMX4AxE9Qm7yqVSWC1usTz");
- NSLog(@"ylQCYs1HDVwgFE2xUpfRd8AthBGnvLqKzrXcka");
- NSLog(@"Cz6fQU2XN5nKpjai07ET3JOHqDtMe1sgAr4");
- NSLog(@"93qUXxW1VdMkrjvRHhT8QacYm6JCnlOPE");
- NSLog(@"pyvfBtwG1cRlmJZMbhs");
- NSLog(@"5XPxVHCcGyRUZJoI63Q4ap0Y9mDOT1gjerk");
- NSLog(@"9GdDBRk2n6irPMWFp45KuVETjY");
- NSLog(@"vTJEjhVdq3C");
- NSLog(@"Xa0zAutwIB7FZi2rh");
- NSLog(@"J8vueR26KIbWOgzlqZV79SYEsnCArtijTUDM5");
- }
- -(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 {
- NSLog(@"q35OrjRKC8JmWnBid");
- NSLog(@"jEq8uIAgDYy62ZFhNwVKaWOdbXo4JQxkp3cslrtU");
- NSLog(@"oDZpbAXYJ8E0Hwg3a2lq946hFNfzxI");
- NSLog(@"mhbTkGXaLxr");
- NSLog(@"ToOcQYHSUt7Z5saiINyvxmD82Kguh");
- NSLog(@"EaCQL37NAoOqMeJgZs");
- NSLog(@"7CkLvstaVGdXrnIyTFp2mUh");
- NSLog(@"biBQsNXuvZcYmTCOfo2a3wKpHDkn6AW");
- NSLog(@"iVcPXMoqh2mplFNuk09rR31");
- NSLog(@"ptXY93Je65WsPNHnmUiwhgO");
- NSLog(@"4ZD1nEflhHPt");
- NSLog(@"lIqQ3Mhz0pkgB");
- NSLog(@"xVFNSW8d0fROK");
- NSLog(@"kq8iMRUt6hD");
- NSLog(@"2dRAnf9NwtSlIaVykKP");
- NSLog(@"jd2HWMfRCQovIZm4Al9keEzL");
- NSLog(@"s6IwpU1VFfPlo5c8KxiJA43SgtzLMR2WehuvEGY");
- NSLog(@"rUGRYX0EjDZBobPMefc");
- NSLog(@"pvu9hzf0a1Pm3rFUAC45JKWMLgc");
- NSLog(@"eA0ZNUf9cnou");
- }
- -(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 {
- NSLog(@"euUFdx2kZEhI0CVqR7");
- NSLog(@"TdgRSP43s2GhlB5YZzLUw9FKfnkyopJ0AvDE");
- NSLog(@"CxYNL9kZapTlXHvS2sUF");
- NSLog(@"ydzIM4Ce8sGUXSAHY2cTDObk");
- NSLog(@"brxzKgecZ7681pBGMmNJCyLh2dkR0");
- NSLog(@"ZAXrN8pcHePCyFhjlYqwod");
- NSLog(@"KXDr5hGFTlVjvwRBIEzY2tZsa0b8HUcSo76");
- NSLog(@"mCHzve1xaiqV6ul");
- NSLog(@"5YliNThzaEGPowk6f2AOgcdZebjvF1nu3p");
- NSLog(@"om2fLAWNwxTuFq");
- NSLog(@"azfJtij29kCrg6GU8SXop451REvBWOu0YQNcLqKs");
- NSLog(@"SEZUpLbjw6v5V");
- }
- -(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 {
- NSLog(@"kFpIYQ4OqeNDm7");
- NSLog(@"YUrJsMcNKSuz82");
- NSLog(@"ls14Tc7wNjSWybUXO3CEvKGo2fI");
- NSLog(@"cx6Zp1qLeQvrm");
- NSLog(@"KA4D3oEBmIgzQJHdPxNkcfVj");
- NSLog(@"pHAex7a4ykUZrbofqDul53cjzg12sM");
- NSLog(@"Yifbw20AUW9KS");
- NSLog(@"Pdil6gwoSIK2zDXAWCxtVufJjknL");
- NSLog(@"5HwNAOp0xIPm62jeniLStuorZ");
- NSLog(@"bjwAuIZBvhz4E");
- NSLog(@"yWJu50qc4awPiMLXfTSbmx81z");
- NSLog(@"LCShJdEXlyVPb3At8MBW2k6spiqT4RfF");
- NSLog(@"dEn86jLpo1eFRKBgS");
- NSLog(@"okqmyMrjhgx4RQufLZ2WvdiwpCs");
- NSLog(@"zS89NY7K6CrPRasotfMpHFGl");
- NSLog(@"pAjM3bKnF4iVygcX6ZPBuvNs");
- }
- @end
|