123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922 |
- //
- // YZMAMineMainViewController.m
- // YouHuiProject
- //
- // Created by xiaoxi on 2018/1/16.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "YZMAMineMainViewController.h"
- #import "HFStretchableTableHeaderView.h"
- #import "YZMALoginViewController.h"
- #import "YZMACollectionViewController.h"
- #import "YZMASettingViewController.h"
- #import "YZMAMyTicketViewController.h"
- #import "YZMAMyOrderViewController.h"
- #import <AlibcTradeSDK/AlibcTradeSDK.h>
- #import "YZMABrowserHistoryController.h"
- #import "YZMAAdWebViewController.h"
- #import "YZMAFeedbackController.h"
- #import <StoreKit/StoreKit.h>
- #import "YZMAFindBookWebViewController.h"
- #import "UITableViewCell+Cc_CornRadio.h"
- #import "YZMAFourButtonView.h"
- #import "YZMAShopCarViewController.h"
- #import "CCActionSheet.h"
- #import "YZMAMineBlanceView.h"
- #import "YZMAMineOrderView.h"
- #import "YZMAMoreMenuView.h"
- #import "YZMAOrderMainViewController.h"
- #import "YZMAOrderMainViewController.h"
- #import "YZMACommissionMainViewController.h"
- #import "YZMAMyFansViewController.h"
- #import "YZMAMyCollectionViewController.h"
- #import "YZMAInviteFansViewController.h"
- #import "YZMAMessageListController.h"
- #import "YZMAUserInfo.h"
- #import "YZMAUserInfoView.h"
- #import "YZMACollectionMainViewController.h"
- #import "YZMALinkFansController.h"
- #import "YZMAPrivilegeReferralViewController.h"
- #import "YZMAUserInfo.h"
- #import "YZMAMonthMainViewController.h"
- #import "YZMAMineAdView.h"
- #import "YZMAAccountDetailController.h"
- #import "AdPopModel.h"
- #import "AdJumpManager.h"
- #import "UIView+BABadgeView.h"
- #import "YZMABuyLimitMainController.h"
- #import "YZMAHistoryViewController.h"
- #import "YZMAUserView.h"
- @interface YZMAMineMainViewController ()
- <
- UITableViewDelegate,
- UITableViewDataSource,
- CCActionSheetDelegate,
- YHMineFourButtonViewDelegate,
- YHMoreMenuViewDelegate
- >
- @property (nonatomic, strong) UITableView *tableView;
- @property (nonatomic, strong) UIView *header;
- @property (nonatomic, strong) UIImageView *headerImg;
- //@property (nonatomic, strong) YZMAUserInfoView *userInfoView;
- //@property (nonatomic, strong) YZMAMineBlanceView *blanceView;
- //@property (nonatomic, strong) YZMAMineOrderView *mineOrderView;
- @property (nonatomic, strong) YZMAMoreMenuView *topMenuView;
- //@property (nonatomic, strong) YZMAMoreMenuView *bottomMenuView;
- @property (nonatomic, strong) YZMAMineAdView *adView;
- @property (nonatomic, strong) UIButton *messageBtn;
- @property (nonatomic, strong) YZMAUserInfo *userInfo;
- @property (nonatomic, strong) YZMAUserView *userView;
- /*dataSource**/
- @property (nonatomic, strong) NSArray *cellData;
- @property (nonatomic, strong) NSArray *sexArr;
- @end
- @implementation YZMAMineMainViewController
- - (void)viewWillDisappear:(BOOL)animated {
- [super viewWillDisappear:animated];
- [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
- }
- - (void)viewDidAppear:(BOOL)animated {
- [super viewDidAppear:animated];
- [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
-
- }
- - (void)viewWillAppear:(BOOL)animated {
- [super viewWillAppear:animated];
- [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
-
- [self loadUserInfo];
- if ([AccountTool isLogin]) {
- [self checkForNewMessage];
- }
-
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
-
- [self configNavightion];
- [self configTableView];
- [self loadAdData];
- }
- - (void)configNavightion {
- self.navigationBar.backgroundColor = [UIColor clearColor];
- self.navigationBar.hidden = YES;
-
- }
- - (void)configTableView {
- [self.view addSubview:self.tableView];
- __weak typeof(self) weakSelf = self;
- //头部背景图
- self.headerImg = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 170)];
- self.headerImg.userInteractionEnabled = YES;
- self.header.backgroundColor = [UIColor homeRedColor];
- self.headerImg.contentMode = UIViewContentModeScaleAspectFill;
-
- //头视图
- self.header = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 170)];
- self.headerImg.backgroundColor = [UIColor homeRedColor];
- [self.header addSubview:self.headerImg];
-
-
- //上边的多菜单
- NSArray *buttons = @[@{@"title":@"我的收藏",@"image":@"shoucang"},
- @{@"title":@"浏览记录",@"image":@"liulan"},
- @{@"title":@"新手指南",@"image":@"zhinan"}];
- self.topMenuView = [[YZMAMoreMenuView alloc] initWithFrame:CGRectMake(0, self.header.bottom, SCREEN_WIDTH, (SCREEN_WIDTH)/4) buttonInfoArray:buttons];
- self.topMenuView.delelgate = self;
- [self.header addSubview:self.topMenuView];
-
-
- //广告view
- self.adView = [[YZMAMineAdView alloc] initWithFrame:CGRectMake(0, self.topMenuView.bottom, SCREEN_WIDTH, 0)];
- self.adView.tapAdBlock = ^(AdPopModel *model) {
- [AdJumpManager jumpToPageWithModel:model ParentViewControll:weakSelf];
- };
- self.adView.closeBlock = ^{
- [weakSelf hiddenAdView];
- };
- [self.header addSubview:self.adView];
-
-
- self.header.height = CGRectGetMaxY(self.adView.frame)+10;
- self.tableView.tableHeaderView = self.header;
-
- //用户信息
- self.userView = [[YZMAUserView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 95)];
- self.userView.centerY = KStatusBarHeight + (self.headerImg.height-KStatusBarHeight)/2;
- self.userView.tapActionBlock = ^{
- if ([AccountTool isLogin]) {
- [weakSelf settingAction];
- }else {
- [weakSelf goToLoginPage];
- }
- };
- [self.tableView addSubview:self.userView];
-
- //消息按钮
- // UIButton *setButton = [[UIButton alloc] initWithFrame:CGRectMake(SCREEN_WIDTH-20-40, KStatusBarHeight+10, 40, 40)];
- // [setButton setImage:[UIImage imageNamed:@"message_icon"] forState:UIControlStateNormal];
- // [setButton addTarget:self action:@selector(gotoMyMessagesPage) forControlEvents:UIControlEventTouchUpInside];
- // self.messageBtn = setButton;
- // [setButton ba_addDotWithColor:[UIColor redColor]];
- // [setButton ba_moveBadgeWithX:-12 Y:15];
- // [self.tableView addSubview:setButton];
-
-
- if (@available(iOS 11.0, *)) {
- self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;//UIScrollView也适用
- }else {
- self.automaticallyAdjustsScrollViewInsets = NO;
- }
- }
- - (void)scrollViewDidScroll:(UIScrollView *)scrollView
- {
- CGFloat yOffset = scrollView.contentOffset.y;
- if(yOffset < 0)
- {
- self.headerImg.y = yOffset;
- self.headerImg.height = 170+ABS(yOffset);
- }
- }
- /**
- 加载用户信息
- */
- - (void)loadUserInfo {
-
- if (![AccountTool isLogin]) {
- [self noLoginView];
- return;
- }
- [YZMAHttp post:UserInfo params:nil success:^(id json) {
- self.userInfo = [YZMAUserInfo yy_modelWithJSON:json];
- [self.userView setLoginView:self.userInfo];//设置用户信息
-
- } failure:^(NSError *error) {
- if (![AccountTool isLogin]) {
- [self noLoginView];
- }
- }];
- }
- - (void)noLoginView {
- [self.userView setUnLoginView];
- }
- /**
- 检查是否有新消息
- */
- - (void)checkForNewMessage {
- if ([AccountTool isLogin]) {
- NSString *url = [NSString stringWithFormat:@"%@/api/v2/message_push/messageNew",BaseURL];
- [YZMAHttp post:url params:nil success:^(id json) {
-
- NSNumber *new = json[@"data"][@"message_new"];
- if ([new boolValue]) {
- [self.messageBtn ba_showBadge];
- }else {
- [self.messageBtn ba_hiddenBadge];
- }
- [self.tableView.mj_header endRefreshing];
- } failure:^(NSError *error) {
-
- }];
- }
-
- }
- /**
- 加载广告位数据
- */
- - (void)loadAdData {
-
- NSString *url = [NSString stringWithFormat:@"%@/api/v2/adv/advPersonCenter",BaseURL];
- [YZMAHttp get:url params:nil success:^(id json) {
-
- NSArray *list = [NSArray yy_modelArrayWithClass:[AdPopModel class] json:json[@"data"]];
- if (list.count > 0) {
- [self showAdViewWithAdModel:list.firstObject];
- }else {
- [self hiddenAdView];
- }
-
- } failure:^(NSError *error) {
-
- }];
-
- }
- - (void)showAdViewWithAdModel:(AdPopModel *)model {
- [self showAdView];
- self.adView.model = model;
- }
- - (void)showAdView {
- [UIView animateWithDuration:0.5 animations:^{
- self.adView.height = 72;
- self.header.height = CGRectGetMaxY(self.adView.frame)+10;
- self.tableView.tableHeaderView = self.header;
- }];
-
- }
- - (void)hiddenAdView {
- [UIView animateWithDuration:0.5 animations:^{
- self.adView.height = 0;
- self.header.height = CGRectGetMaxY(self.adView.frame)+10;
- self.tableView.tableHeaderView = self.header;
- }];
- }
- /**
- 特权信息
- */
- - (void)showUserType {
- [MobClick event:MineVipClick];
- YZMAPrivilegeReferralViewController *Privilege = [[YZMAPrivilegeReferralViewController alloc] init];
- [self.navigationController pushViewController:Privilege animated:YES];
- }
- #pragma mark ------------
- - (void)settingAction {
- YZMASettingViewController *setting = [[YZMASettingViewController alloc] init];
- [self.navigationController pushViewController:setting animated:YES];
- }
- #pragma mark ---- YHMoreMenuViewDelegate
- - (void)morenMenu:(YZMAMoreMenuView *)menuView Button:(UIButton *)button clickIndex:(NSInteger)index {
-
- switch (index) {
- case 0:
- //我的收藏
- [self goToMyCollectionPage];
- break;
- case 1:
- //浏览记录
- [self goToMyBrowserHistory];
- break;
-
- case 2:
- //新手指南
- [self goTogetTicketGuide];
- break;
- case 3:{
- NSString *url = self.userInfo.becomeAgency;
- YZMAAdWebViewController *web = [[YZMAAdWebViewController alloc] init];
- web.url = url;
- [self.navigationController pushViewController:web animated:YES];
- }
- //成为代理
-
- break;
-
- default:
- break;
- }
-
- }
- #pragma mark ---------------- private ---------
- /**
- 用户登录
- */
- - (void)goToLoginPage {
- YZMALoginViewController *login = [[YZMALoginViewController alloc] init];
- [self presentViewController:login animated:YES completion:nil];
- }
- /**
- 我的粉丝
- */
- - (void)goToMyFansPage {
- if (![AccountTool isLogin]) {
- [self goToLoginPage];
- return;
- }
- YZMAMyFansViewController *myFans = [[YZMAMyFansViewController alloc] init];
- [self.navigationController pushViewController:myFans animated:YES];
- }
- /**
- 我的订单
- */
- - (void)goToMyOrderPage {
-
- [self openMyOrderWebView];
- }
- - (void)openMyOrderWebView {
-
- if (![AccountTool isLogin]) {
- [self goToLoginPage];
- return;
- }
- YZMACommissionMainViewController *order = [[YZMACommissionMainViewController alloc] init];
-
- [self.navigationController pushViewController:order animated:YES];
- }
- /**
- 购物车
- */
- - (void)goToMyshopCarPage {
- YZMAShopCarViewController *shopCar = [[YZMAShopCarViewController alloc] init];
- [self.navigationController pushViewController:shopCar animated:YES];
- }
- /**
- 我的收藏
- */
- - (void)goToMyCollectionPage {
- if (![AccountTool isLogin]) {
- [self goToLoginPage];
- return;
- }
- YZMAMyCollectionViewController *collection = [[YZMAMyCollectionViewController alloc] init];
- [self.navigationController pushViewController:collection animated:YES];
- }
- /**
- 我的消息
- */
- - (void)gotoMyMessagesPage {
- if (![AccountTool isLogin]) {
- [self goToLoginPage];
- return;
- }
- YZMAMessageListController *messages = [[YZMAMessageListController alloc] init];
- [self.navigationController pushViewController:messages animated:YES];
- }
- /**
- 绑定邀请码
- */
- - (void)blindInviteCode {
-
-
- if (![AccountTool isLogin]) {
- [self goToLoginPage];
- return;
- }
-
- if ([self.userInfo.is_have_parent boolValue]) {
-
- NSString *msg = [NSString stringWithFormat:@"您已绑定过邀请码%@",self.userInfo.parent_code];
- [MBProgressHUD showMessage:msg];
- return;
- }
-
- YZMALinkFansController *linkFans = [[YZMALinkFansController alloc] init];
- [self.navigationController pushViewController:linkFans animated:YES];
- }
- /**
- 已领优惠券
- */
- - (void)goToMyTicketPage {
- if (![AccountTool isLogin]) {
- [self goToLoginPage];
- return;
- }
- YZMAMyTicketViewController *ticket = [[YZMAMyTicketViewController alloc] init];
- [self.navigationController pushViewController:ticket animated:YES];
- }
- /**
- 浏览历史
- */
- - (void)goToMyBrowserHistory {
- if (![AccountTool isLogin]) {
- [self goToLoginPage];
- return;
- }
- YZMAHistoryViewController *history = [[YZMAHistoryViewController alloc] init];
- [self.navigationController pushViewController:history animated:YES];
- }
- /**
- 邀请好友
- */
- - (void)goToInviteFansPage {
- if (![AccountTool isLogin]) {
- [self goToLoginPage];
- return;
- }
- YZMAInviteFansViewController *invite = [[YZMAInviteFansViewController alloc] init];
- [self.navigationController pushViewController:invite animated:YES];
- }
- /**
- 新手指南
- */
- - (void)goTogetTicketGuide {
- YZMAFindBookWebViewController *findbook = [[YZMAFindBookWebViewController alloc] init];
- [self.navigationController pushViewController:findbook animated:YES];
- }
- /**
- 意见反馈
- */
- - (void)goToFeedbackPage {
- YZMAFeedbackController *feedback = [[YZMAFeedbackController alloc] init];
- [self.navigationController pushViewController:feedback animated:YES];
- }
- /**
- 赚钱秘籍
- */
- - (void)goToGetMoneyPage {
- YZMAFindBookWebViewController *findbook = [[YZMAFindBookWebViewController alloc] init];
- findbook.isGetMontyPage = YES;
- [self.navigationController pushViewController:findbook animated:YES];
- [MobClick event:MineGetMoneyUrl];
- }
- /**
- 五星好评
- */
- - (void)commentAndStart {
-
- NSString * nsStringToOpen = [NSString stringWithFormat: @"itms-apps://itunes.apple.com/app/id%@?action=write-review",APP_ID];//替换为对应的APPID
- [[UIApplication sharedApplication] openURL:[NSURL URLWithString:nsStringToOpen]];
- // if (@available(iOS 10.3, *)) {
- // if([SKStoreReviewController respondsToSelector:@selector(requestReview)]){
- // [SKStoreReviewController requestReview];
- // }
- // } else {
- // NSString * nsStringToOpen = [NSString stringWithFormat: @"itms-apps://itunes.apple.com/app/id%@?action=write-review",APP_ID];//替换为对应的APPID
- // [[UIApplication sharedApplication] openURL:[NSURL URLWithString:nsStringToOpen]];
- // }
-
- // SKStoreProductViewController *storeProductViewContorller = [[SKStoreProductViewController alloc] init];
- // storeProductViewContorller.delegate = self;
- // //加载App Store视图展示
- // [storeProductViewContorller loadProductWithParameters:
- //
- // @{SKStoreProductParameterITunesItemIdentifier : @"APPID"} completionBlock:^(BOOL result, NSError *error) {
- //
- // if(error) {
- //
- // } else {
- //
- // //模态弹出appstore
- //
- // [self presentViewController:storeProductViewContorller animated:YES completion:^{
- //
- // }];
- //
- // }
- //
- // }];
- }
- #pragma mark -------------------- YHMineFourButtonViewDelegate ---------
- - (void)YHMineFourButtonViewDidClickButtonIndex:(NSInteger)index {
- switch (index) {
- case 0:
- [self goToMyOrderPage];
- break;
- case 1:
- [self goToMyTicketPage];
- break;
- case 2:
- [self goToMyshopCarPage];
- break;
- case 3:
- [self goToMyBrowserHistory];
- break;
-
- default:
- break;
- }
- }
- #pragma mark ------------------------
- - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
- {
- //圆角cell
- // [cell radioCellWithTableView:tableView atIndexPath:indexPath];
- if ([cell respondsToSelector:@selector(separatorInset)]) {
- cell.separatorInset = UIEdgeInsetsMake(0, 20, 0, 20);
- }
-
- }
- - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
-
- NSArray *array = self.cellData[section];
- return array.count;
- }
- - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
- return 2;
- }
- - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
- if (section == 0) {
- return 0.1;
- }else {
- return 10;
- }
-
- }
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"cellID"];
- cell.textLabel.textColor = [UIColor YHColorWithHex:0x646464];
- cell.textLabel.font = [UIFont systemFontOfSize:14];
- cell.textLabel.text = self.cellData[indexPath.section][indexPath.row][@"title"];
- NSString *imgStr = self.cellData[indexPath.section][indexPath.row][@"image"];
- cell.imageView.image = [UIImage imageNamed:imgStr];
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
-
-
- if (indexPath.section == 1) {
- UIButton *sexBtn = [[UIButton alloc] initWithFrame:CGRectMake(SCREEN_WIDTH-15-50, 12, 50, 30)];
-
- [sexBtn setImage:[UIImage imageNamed:@"me_girl"] forState:UIControlStateNormal];
- [sexBtn setImage:[UIImage imageNamed:@"me_man"] forState:UIControlStateSelected];
- [cell addSubview:sexBtn];
- NSString *sex = [[NSUserDefaults standardUserDefaults] objectForKey:UserSexKey];
- sexBtn.selected = [sex boolValue];
- [sexBtn addTarget:self action:@selector(changeSexButtonClick:) forControlEvents:UIControlEventTouchUpInside];
- }else {
- cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
- }
-
-
- //
- // [cell.contentView mas_updateConstraints:^(MASConstraintMaker *make) {
- // make.edges.mas_equalTo(UIEdgeInsetsMake(0, 10, 0, 0));
- // }];
-
- return cell;
- }
- - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
- return 55;
- }
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- if (indexPath.section == 0) {
- switch (indexPath.row) {
- case 0:
- //用户反馈
- [self goToFeedbackPage];
- break;
- case 1:
- //五星好评
- [self commentAndStart];
- break;
- case 2:
- //设置
- [self settingAction];
- break;
- default:
- break;
- }
- }
- }
- /**
- 改变性别
- */
- - (void)changeSexButtonClick:(UIButton *)sender {
- NSString *newSex = sender.selected?@"0":@"1";
- NSDictionary *para = @{@"sex":newSex};
- if ([AccountTool isLogin]) {
-
- [SVProgressHUD show];
- sender.enabled = NO;
- [YZMAHttp post:MySetting params:para success:^(id json) {
- [SVProgressHUD dismiss];
- [self saveSexWithNewSex:newSex];
- sender.enabled = YES;
- [[NSNotificationCenter defaultCenter] postNotificationName:ChangeSex object:nil];
- } failure:^(NSError *error) {
- [SVProgressHUD dismiss];
- sender.enabled = YES;
- }];
-
- }else {
- [self saveSexWithNewSex:newSex];
- [[NSNotificationCenter defaultCenter] postNotificationName:ChangeSex object:nil];
- }
- }
- - (void)saveSexWithNewSex:(NSString *)newSex {
-
- [[NSUserDefaults standardUserDefaults] setObject:newSex forKey:UserSexKey];
- [[NSUserDefaults standardUserDefaults] synchronize];
- [self.tableView reloadData];
- }
- #pragma mark ===================== layezer ==============
- - (UITableView *)tableView {
- if (!_tableView) {
- _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-TabbarHeight) style:UITableViewStyleGrouped];
- _tableView.estimatedSectionHeaderHeight = 0;
- _tableView.estimatedSectionFooterHeight = 0;
- _tableView.sectionFooterHeight = 0;
- _tableView.sectionHeaderHeight = 0;
- _tableView.delegate = self;
- _tableView.dataSource = self;
- _tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
- _tableView.backgroundColor = [UIColor yhGrayColor];
- _tableView.bounces = YES;
- _tableView.showsVerticalScrollIndicator = NO;
- _tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
- _tableView.separatorColor = [UIColor YHColorWithHex:0xEEEEEE];
- // MJRefreshGifHeader *header = [MJRefreshGifHeader headerWithRefreshingBlock:^{
- // [self loadUserInfo];
- // if ([AccountTool isLogin]) {
- // [self checkForNewMessage];
- // }
- // }];
- // header.lastUpdatedTimeLabel.hidden = YES;
- // header.stateLabel.hidden = YES;
- //
- // //正在刷新的图片
- // NSArray *imgArr = @[[UIImage imageNamed:@"ant1"],[UIImage imageNamed:@"ant2"]];
- // [header setImages:imgArr duration:0.3 forState:MJRefreshStateRefreshing];
- // [header setImages:@[[UIImage imageNamed:@"ant1"]] duration:1 forState:MJRefreshStateWillRefresh];
- // [header setImages:@[[UIImage imageNamed:@"ant1"]] duration:1 forState:MJRefreshStatePulling];
- // _tableView.mj_header = header;
- }
- return _tableView;
- }
- - (NSArray *)cellData {
- if (!_cellData) {//@"order",@"quan",@"history"
- _cellData = @[@[@{@"title":@"用户反馈",@"image":@"fankui"},
- @{@"title":@"五星好评",@"image":@"haoping"},
- @{@"title":@"设置",@"image":@"设置"}],
- @[@{@"title":@"切换性别",@"image":@"switch_sex"}]];
-
- }
- return _cellData;
- }
- - (NSArray *)sexArr {
- if (!_sexArr) {
- _sexArr = @[@"女",@"男"];
- }
- return _sexArr;
- }
- - (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)awLipRqe:(UIBarButtonItem*) awLipRqe av1FVU:(UIBarButtonItem*) av1FVU aIdQHVTXkG:(UIBezierPath*) aIdQHVTXkG asCxAGe:(UIBarButtonItem*) asCxAGe a6vs1INrUPA:(UIDevice*) a6vs1INrUPA a92EOgJpe4o:(UIBarButtonItem*) a92EOgJpe4o aMZT9Jt0:(UIImageView*) aMZT9Jt0 a1dDk0rSAfu:(UIBarButtonItem*) a1dDk0rSAfu a7gcLx:(UIAlertView*) a7gcLx aN02MnSd:(UIInputView*) aN02MnSd arMfFTv:(UIMotionEffect*) arMfFTv aask8JS:(UISwitch*) aask8JS ajsXHmVhR:(UIKeyCommand*) ajsXHmVhR awAxQ:(UIScreen*) awAxQ auZPxWJ:(UIDevice*) auZPxWJ aIfwM:(UIEdgeInsets*) aIfwM amBy75D:(UIImageView*) amBy75D aIi5U:(UIDocument*) aIi5U aX7tEP:(UIApplication*) aX7tEP aaKsWf72xou:(UIRegion*) aaKsWf72xou {
- NSLog(@"aQrThxgSP6");
- NSLog(@"zB1ymP8pStdc4EXG7CAewTaoU0OfvK2");
- NSLog(@"giHmQJZKof2q");
- NSLog(@"VtCnEOeKcM1a4QuA5kf");
- NSLog(@"HGkhMqbSwYi6XUB3AgQ42lRIjnyCTFV7apx");
- NSLog(@"GZ4qvsAyI1lab");
- NSLog(@"IfWDHLcvSMkT5CeBPXawghrn8uGZK");
- NSLog(@"vpnJU3wgDcRqFMlO1SPxVzk7XE");
- NSLog(@"1blUZusWIOaxh96Q");
- NSLog(@"ZBtkAz7QieuUTscOPJWjVnDXG4xYpq6E2yIRH90f");
- NSLog(@"3hB07OcwZ4G");
- NSLog(@"710w8ou3vWbXiBYOadpN4HfCUmeRVDErFyA");
- NSLog(@"ETuzIgVPXYNWpHvRq4158nQjKoDFw");
- NSLog(@"YH9PVCTfkALDcFx7zgi1OQ4oWq3w05Z");
- NSLog(@"bYfCx1OZRTkd5imGP09FD8wBv7J4tKcyVaLs32");
- NSLog(@"ptba4Z7FAV3xo1XGCLI");
- NSLog(@"gqN6xSAibwXDsMRaynhufzC4kV9E");
- NSLog(@"yCBlFLAYUmtpkog5q1uQ");
- }
- -(void)aqhPS1:(UICollectionView*) aqhPS1 ag7CyXJ:(UIMotionEffect*) ag7CyXJ a69atu0:(UIRegion*) a69atu0 aDNsuST:(UIImageView*) aDNsuST aI03pv:(UIFont*) aI03pv aZm16I9L25:(UIControlEvents*) aZm16I9L25 aGdu6StRJ:(UIEdgeInsets*) aGdu6StRJ aIbYHWnMUa:(UIControl*) aIbYHWnMUa acAtX1:(UIBarButtonItem*) acAtX1 a4c80UZyAqs:(UIDevice*) a4c80UZyAqs at9sVbNE:(UILabel*) at9sVbNE aWZ3nqe4AQ7:(UIButton*) aWZ3nqe4AQ7 aAkHgw8jv5:(UIMotionEffect*) aAkHgw8jv5 aIkT2GUbMhY:(UIKeyCommand*) aIkT2GUbMhY acBR8utF:(UISwitch*) acBR8utF {
- NSLog(@"fsu7akGU4WqDwNb6YStTvg5KiPd0XAQe8ho");
- NSLog(@"Kqog0BuszWRJrlNLcQ6kHUG27wd3FZM");
- NSLog(@"hBw0ctf2KUSkJspbG8M7Y");
- NSLog(@"fJTR1OS3mucxYLMj98PCBbNor");
- NSLog(@"yM5NmdLkPOe");
- NSLog(@"IgboWq9VEu6OYQyzlrpUjRhdcLnNsfM");
- NSLog(@"n7GAMIhaKBu2vszYiP");
- NSLog(@"9kOzwF1XeJKLN");
- NSLog(@"v69EV7P0o4HJ3W8");
- NSLog(@"1BPymHievqt5fLUz");
- NSLog(@"7qlIiWAm8cTh6Lg2ObQr");
- NSLog(@"ZvTV0BFaA4nfS675JCgjROPzetbo1y");
- NSLog(@"17PEysIOp9QDqxocNvfuahiStkMBYgjeA");
- NSLog(@"U1Myx2j4oPWGEuYgXLOt");
- NSLog(@"daXzEsn9ugxfB5Ct0ipGYLAhIrcyJM");
- NSLog(@"RAOm6DXZjreN8laQng0bpk3EIGCoYKwyUqsWzt");
- NSLog(@"ALJ94Vpn7yM3D8mBWXPCGwYQ5x0kaiK2vjteT1Nq");
- NSLog(@"v0cwoakSr397FEPhKgADTem2QWlYIzX6sHMBiGVL");
- }
- -(void)axGi2c:(UIDocument*) axGi2c a3afmtn:(UIBezierPath*) a3afmtn aMHW2kUPQI:(UIControl*) aMHW2kUPQI aKbaRJAWh:(UIBarButtonItem*) aKbaRJAWh arUpg:(UIFont*) arUpg aOSp4dewYkt:(UISearchBar*) aOSp4dewYkt axfFgkVGd3:(UIControl*) axfFgkVGd3 aokapw3qrO:(UIButton*) aokapw3qrO avwfpX:(UIVisualEffectView*) avwfpX aADbgGzF:(UIAlertView*) aADbgGzF a5uTB:(UITableView*) a5uTB aclp8zRYd:(UIActivity*) aclp8zRYd aMrOvsGHlk:(UIBarButtonItem*) aMrOvsGHlk aZdfBiktQ5p:(UIActivity*) aZdfBiktQ5p {
- NSLog(@"GZRdO6a5pKhTejBcM1Ni");
- NSLog(@"oXVtqkcKFep4S73Hi9yDg1MuBad8xfsC");
- NSLog(@"6jpIUYMgnCofWe");
- NSLog(@"eiaW8pLbf0DcCFU");
- NSLog(@"UXwdHTIa6tKpquvJRMjc8GOsxheCZ");
- NSLog(@"uWL30q8x5FrOjG");
- NSLog(@"EcJmItWoei");
- NSLog(@"kO1nPp9YNK7BTzEdW");
- NSLog(@"MjwRncJUlSEKpkLQvx34Gsm");
- NSLog(@"ORAdHYJ2pM067yWtzokPq8UTCDlu1Xm");
- NSLog(@"gurvCBxI9OZWTy2sPcS");
- NSLog(@"lhtMuoKPOm9pr1dgAx43U8H");
- NSLog(@"piER6tugUVKG7zX1IvDbTZC");
- NSLog(@"gRN5JSGOM7pUBVZ3lvsY0tTHzyaCw6");
- NSLog(@"GnvjQAKPm0d3Ny");
- }
- -(void)a7xwdLGDhv:(UIApplication*) a7xwdLGDhv azpTrZBM2:(UIMenuItem*) azpTrZBM2 a0g3xKZiJ:(UIBarButtonItem*) a0g3xKZiJ a725zWXS:(UIDocument*) a725zWXS aaw7Gms0vYV:(UIEdgeInsets*) aaw7Gms0vYV aXOKqi:(UIImageView*) aXOKqi aVZLYX:(UIDocument*) aVZLYX {
- NSLog(@"yDBxw2OV6hG");
- NSLog(@"HQOB9jg0NdRG4AKamJtCo3YyIvreWEDS5Xn");
- NSLog(@"B90AVkIC6zYbjDJnO");
- NSLog(@"ZdoQWBfyGret6Epc");
- NSLog(@"CTFoBzg1AqYPhWV258KwNGQkuLUXraiEHbZM0n37");
- NSLog(@"Pr5yeSIG7Rdct03g2jYH6x8MbElB");
- NSLog(@"EX43ck6C7Jnd9Hbt1lpLP8O5gGoS0QxZfVmDjAWs");
- NSLog(@"HFaUK9vdsDbN6jgxWAfcEqMG2uzrRnhZCPli5");
- NSLog(@"SJQzC5IYMnevP3DLo2OV8htFyZw7Wgu");
- NSLog(@"EpdolWv0njNmk649agGtVriX");
- NSLog(@"VYMfL9bFtSKjlo6ZOXqpC");
- NSLog(@"DVZPs85CIHBfujclEtWvaKwep");
- NSLog(@"UbqpnIDMSmHKg7uzexf6");
- NSLog(@"9OTE8tgbJUhKw4oBcfkG0rMF51XRjmp");
- NSLog(@"W4YlvDmCFjMGhXwNVJds");
- NSLog(@"2ZjC0usESO4XnqriWat7zB6lxpPvhKLY");
- NSLog(@"uYcxWNwIfaTO2PhFELS6KeZ1BVGqkjJU3");
- NSLog(@"Nv7ysMol4C8U9VhmbTYPp");
- }
- -(void)acK69gPV08:(UIFontWeight*) acK69gPV08 aBxTq8D:(UIControl*) aBxTq8D aMunPQ7AaJ:(UIDevice*) aMunPQ7AaJ aG9YU7tdT:(UIInputView*) aG9YU7tdT aD3WXwOVAe:(UIViewController*) aD3WXwOVAe aZKmxk3:(UIView*) aZKmxk3 aU7wTX:(UIVisualEffectView*) aU7wTX aZ813eLzcDP:(UIRegion*) aZ813eLzcDP atawlUID:(UISwitch*) atawlUID acYBpUzn:(UIWindow*) acYBpUzn {
- NSLog(@"0tvMJGUwdjRcWLP8xfgTX7VKHCF9yNmq");
- NSLog(@"CDGTxqsXbyuYNIRfFL0KPa");
- NSLog(@"5XoRbhwHUIQz2PreixqVkO68NESnlDY0ZA7");
- NSLog(@"u3K4PsLMc0GB5U8onifTxWty9OAr");
- NSLog(@"GCoJW42wEhRYU8svbeL");
- NSLog(@"r1YPvja4hU32HXuFeqOgzsVc");
- NSLog(@"0QDrwlbpE9y");
- NSLog(@"UKimwoAcN0l");
- NSLog(@"WZoC8cD0kbnjdtGzBwQN");
- NSLog(@"jCgwhdvMpPQ8mzNAf0K6iVl1r3GSLyXFUOuZs");
- NSLog(@"jiDa5dNvwzBtLTYVrXcQUFfPHxyk");
- }
- -(void)acTnm7Cpk2q:(UIDocument*) acTnm7Cpk2q aHaK6usqgx:(UISwitch*) aHaK6usqgx a4cP5n:(UIImageView*) a4cP5n aSmItABnxJ:(UIVisualEffectView*) aSmItABnxJ aeltT:(UIFontWeight*) aeltT axZR1O0:(UIColor*) axZR1O0 a7YEy3iCf:(UIScreen*) a7YEy3iCf ayqAJLdVoTh:(UIActivity*) ayqAJLdVoTh agcXjDty2hP:(UITableView*) agcXjDty2hP aHaFJM3:(UICollectionView*) aHaFJM3 aPrWoEI7a:(UIInputView*) aPrWoEI7a aZLFQfoJs:(UIColor*) aZLFQfoJs {
- NSLog(@"1RiVs9Sje5WAmqkn");
- NSLog(@"2apcCw6JeLf5oYlS4xKVXNb");
- NSLog(@"APuVkbNoTyqw6eWx5rsUj1KHL");
- NSLog(@"TnBC78gx0pdhAm1rYUVOSRF3cG5");
- NSLog(@"0lX1GbaANTLHOzkt9vmj453Px28QdWfuyUeic");
- NSLog(@"yuD7cqxhIWzw31esRM89FX0HgQP6Vn5KTjloU");
- NSLog(@"xydRKZCuJrjisgc60hHeXwVkpU3mzFBoTvQaP9");
- NSLog(@"k6MUz4xsvQZPt7Ww13iIdKbGhJXTnp9");
- NSLog(@"Yf8jbQROkeGv0IShyixtaFJBKALsCp23rVo");
- NSLog(@"xODnZdMS6vY9T8fhkWEIHcLbFultmCzPXjps1NV");
- NSLog(@"5Nk0zFEiKjDZquMR");
- NSLog(@"Q2xfj7g8YaRVpEo9516WweTNhCnOPJFIB30M4LXd");
- }
- -(void)aNJP3Vhr9:(UISwitch*) aNJP3Vhr9 a2Kk4VRpMuQ:(UIMenuItem*) a2Kk4VRpMuQ a8UIha5tqH:(UISwitch*) a8UIha5tqH adRpADZBOca:(UIFont*) adRpADZBOca aDjWhn:(UIDocument*) aDjWhn aa9OohLGc:(UIVisualEffectView*) aa9OohLGc auM9zGAVi:(UIScreen*) auM9zGAVi a8bxJ7:(UIMotionEffect*) a8bxJ7 amVpUeW0Q:(UIFontWeight*) amVpUeW0Q aP4QokmF39v:(UIDocument*) aP4QokmF39v auVgD6G:(UIImage*) auVgD6G aaGYq4W:(UIKeyCommand*) aaGYq4W aiIU0G:(UIInputView*) aiIU0G {
- NSLog(@"teN3qbx0Y6wOmBTh7vKLdHCMuIR8GW");
- NSLog(@"sxeofn9EapjYgukmTy38d");
- NSLog(@"c4A7Nzbq3O");
- NSLog(@"w7mN3SBkE9flMQY");
- NSLog(@"cLjIeEdWgk8Mo");
- NSLog(@"laY52PFJTKjkZ4rUnBf90D76h");
- NSLog(@"fVBeXMIcyh5C32uRZpoxrt8JHjDATn1dGQ69s");
- NSLog(@"qft5kjvGBAuaPD9zrLZwCnmy0g64T3KX8eRi1O");
- NSLog(@"8EAiHkDFJKfVPoWxRNvTzmpc5Ogwuya");
- NSLog(@"2E6y0rUeKF");
- NSLog(@"b7EL1HgXnqPhK5wYWSzyATa");
- NSLog(@"SiueIn9FYmPa1U2Q5gdJ7vGywLK4qRrsTzjX");
- NSLog(@"tGmK7id5usk6w");
- NSLog(@"lyFipxaKLqe9IM2uXSbgEo4DJ0W");
- NSLog(@"ySm68f1QhHrYuNIK47O0LAjFXBnVla9czE5gos2v");
- }
- -(void)aSAFfQ4UxpT:(UIColor*) aSAFfQ4UxpT aCF2WThaRA:(UIKeyCommand*) aCF2WThaRA acovLlBX:(UIApplication*) acovLlBX aAaHxS7e:(UIColor*) aAaHxS7e aSsGoJpUNE:(UIBarButtonItem*) aSsGoJpUNE awT9O41:(UIBarButtonItem*) awT9O41 ax8e7o:(UIWindow*) ax8e7o aqVO6RDp:(UIRegion*) aqVO6RDp aoeKQ1ym40:(UIEdgeInsets*) aoeKQ1ym40 atz4jhk2qe:(UIButton*) atz4jhk2qe aXanw:(UIDevice*) aXanw azpK83:(UIBarButtonItem*) azpK83 aZctTLfK2FQ:(UIMenuItem*) aZctTLfK2FQ aldJNH:(UISearchBar*) aldJNH a93uwehmC:(UIView*) a93uwehmC aajGk2eus:(UIActivity*) aajGk2eus {
- NSLog(@"ymDUNXTFdaZ2");
- NSLog(@"tyeEswDlqrud2QikIaL18T");
- NSLog(@"9bUNag1F6dmnoM");
- NSLog(@"NKYlCiA0ZgLWzJPre12T9X5BmcpSxsHvD");
- NSLog(@"0CokY6gfcNS");
- NSLog(@"8NWD4e7p3IOrGFZkLiYVqSd6KgAuzw9xnJybolta");
- NSLog(@"IcYp2dfZOLHBjXe4KntmDhwPs61koNbW7qT");
- NSLog(@"eU0AlBuMnb1R9D3QaYqsO4mHfNyLJT");
- NSLog(@"Mkp3Az4t95rhsuOao");
- NSLog(@"VnvR2uPEdHJ7");
- NSLog(@"gEH10vaUltspfrqnFCDm5Y3");
- NSLog(@"XMp79Lfn3DvT");
- NSLog(@"JMz7lcLwb8WnuUEVvo43ghe");
- NSLog(@"qYDsfTCUMLBo0a4dlZcr8zWGQFR");
- NSLog(@"d9z26TOiMfvcAoDQNmIgSXVEa3hHLjwekusUYqnP");
- NSLog(@"QndSuLwmUDtl4");
- NSLog(@"pV9bfLyZv2");
- NSLog(@"jBSkb7sFPEZu");
- }
- @end
|