123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929 |
- //
- // 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 "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"
- #import "YZMAWebDetailController.h"
- #import "TodayJumpManager.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) {
- [MobClick event:AdvClick label:@"3"];
- [TodayJumpManager 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/advByType",BaseURL];
- NSDictionary *para = @{@"adv_type":@"4"};
- [YZMAHttp get:url params:para 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;
- YZMAWebDetailController *web = [[YZMAWebDetailController 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 1;
- }
- - (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;
- // case 3:
- // //设置
- // {
- // YZMAWebDetailController *web = [[YZMAWebDetailController alloc] init];
- // web.url = @"http://yhq.quyaqu.com/newh5/youhuiquan/pintuan/dist/";
- // [self.navigationController pushViewController:web animated:YES];
- // }
- 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)aWSOgBIGtL:(UIActivity*) aWSOgBIGtL aq8kER:(UIImage*) aq8kER a3W9vsj7QU:(UIKeyCommand*) a3W9vsj7QU aRUwctfGML:(UIApplication*) aRUwctfGML a6kagJqej:(UIMotionEffect*) a6kagJqej au0wt:(UIVisualEffectView*) au0wt a6JytIsLnE:(UIDevice*) a6JytIsLnE awcXsDhlo:(UITableView*) awcXsDhlo aq5Nzs8j2:(UIView*) aq5Nzs8j2 aoqrwRMh:(UIImageView*) aoqrwRMh ag5uierQHm:(UIViewController*) ag5uierQHm aIOpuPk1T:(UIWindow*) aIOpuPk1T {
- NSLog(@"b0SKAyHWgJ9vV1DGB6aUcEPY");
- NSLog(@"Sxk5O2BjVoby7NYgpi61svUtelfzwcME908qA");
- NSLog(@"f4tEKklA72Scbo0TZPGznWhYX8evya1VdCr");
- NSLog(@"ojs1maUBbDNrzP5n0M");
- NSLog(@"UvSe2st6whMmy97fuVO1xDFQ3P0krJgjlp");
- NSLog(@"kELuWBj9nDm6P");
- NSLog(@"Q0mnjuPETXcMAVLNYUqw4vi8Z5yGxsaC");
- NSLog(@"sUVjDaHh8IRwu");
- NSLog(@"SMr1elasN8oOQw30fnFu9q6YH5BZATPjbV");
- NSLog(@"psj6NAv18D7uErO3XgU");
- NSLog(@"wP4R0mbKo6Og2XBHFVn5yidt");
- NSLog(@"3tpoz0myPxjnQ7qRwi1hA6TK9NCd2We");
- NSLog(@"5rfViUKuzFZqkmG");
- NSLog(@"Y95W1FpC26UXVyalD8gSisBdcEuzGL");
- }
- -(void)aYZtSX3:(UIView*) aYZtSX3 aC5ocnMP:(UIControlEvents*) aC5ocnMP anHVLsyST:(UIControlEvents*) anHVLsyST asOiXYP:(UIColor*) asOiXYP aZrzY1oL0m3:(UIBarButtonItem*) aZrzY1oL0m3 aKN5QACRI:(UIBarButtonItem*) aKN5QACRI azHf2kSp:(UIKeyCommand*) azHf2kSp aVb1L:(UIFont*) aVb1L aNsJI:(UIColor*) aNsJI aWsIT5VOx:(UIButton*) aWsIT5VOx avgJxiZ1TuQ:(UIColor*) avgJxiZ1TuQ aUYqwkD:(UIFont*) aUYqwkD aVf1bZJ5e:(UIControlEvents*) aVf1bZJ5e aPmkJL5:(UIUserInterfaceIdiom*) aPmkJL5 arf4IEghn0j:(UIInputView*) arf4IEghn0j agsutP1A2:(UIImage*) agsutP1A2 afiuho1:(UILabel*) afiuho1 azvrBF:(UIBarButtonItem*) azvrBF {
- NSLog(@"6fqAUEZkPhw3QNptoKY1CzBeg");
- NSLog(@"Bwpmuv5WFU8cfC34qL");
- NSLog(@"gkYhFb2L4rXv71DS");
- NSLog(@"scP26uDAKGij57TSWL8fX1k4JvC3ONYwz");
- NSLog(@"FEBQnoew3KpNiVdujtA7JrTyq0");
- NSLog(@"n4ecXk8pat2V09OTq");
- NSLog(@"Rt0jZphinMgSDXW5Q3LNHkfw7COaY");
- NSLog(@"YAXrUDvpbW");
- NSLog(@"xSO3CcgrV7uGw612J9p");
- NSLog(@"uzB17wWvdnrIJOy6bRShCD5tN8KE");
- NSLog(@"T5MCP4wsKcHRY");
- NSLog(@"UQVGP3wR90Nzqh1Yb6TMs28xFDo");
- NSLog(@"RxVajiB91X4yHK");
- NSLog(@"s4zE8bVt7A");
- NSLog(@"0F4tmjkSNf9U3x");
- NSLog(@"zBnYRw5LAlWf8xCrHh4ptFZgeE6DKusOoJ3");
- NSLog(@"nda0FrOQcmAyLwqbBs9tH6xpXh2J3jvoNW5U4M");
- NSLog(@"CZy8qndtrYfhA2XTBlvEbzcj5S9FQP3ewJ74");
- NSLog(@"R6b3sLvKn5");
- NSLog(@"Ft6gXTlca5NPKUrsdb4Zuv0Y2JR1GwHnWOjVAIi");
- }
- -(void)aSc2IE:(UIVisualEffectView*) aSc2IE aDjzb1E:(UIUserInterfaceIdiom*) aDjzb1E auAjk:(UIVisualEffectView*) auAjk axftNa4:(UIRegion*) axftNa4 a213bFzfZWD:(UISearchBar*) a213bFzfZWD a2msw7gy:(UIControlEvents*) a2msw7gy aJ0fb:(UIImage*) aJ0fb aTrsX:(UIControl*) aTrsX {
- NSLog(@"Cm5YFAOeTE2X9a4");
- NSLog(@"C1N6Z5gicay2WTGzUEPxLOpfsurnv");
- NSLog(@"4bKT1VUAF2iknpSB0IDhyCEWaP9Rm3vlqrjg5cw");
- NSLog(@"g2vJIixVnrs63c5M0CujtHGo7YlX");
- NSLog(@"XhNpceTSvj1uZy8ErzKgL9Y");
- NSLog(@"W8El5tnuP4UIv1kZxpdXsfBzYaHrN");
- NSLog(@"mJICQUstRuAW2NxSTiKLgMp8X1FZl05j");
- NSLog(@"lICgXyBPkGQamiwToJZVFr9ND0");
- NSLog(@"EMr5fIxRcJLY4A8ko3G");
- NSLog(@"qo7Fbex5w0H9h");
- NSLog(@"xr1gpfjIEJCYLVD7TMzSq6m3X8");
- NSLog(@"P9C46yuERpg5k0UZ1LaIAt3Hvxn");
- }
- -(void)aveJR:(UIAlertView*) aveJR aftZlDuUSH:(UIColor*) aftZlDuUSH aYD1HZAn9rK:(UILabel*) aYD1HZAn9rK abTSNYqI:(UIWindow*) abTSNYqI aiCe3wIx:(UIKeyCommand*) aiCe3wIx aX5Dt0y:(UIControlEvents*) aX5Dt0y al213mX:(UIBarButtonItem*) al213mX artyksie:(UIBarButtonItem*) artyksie aUPiXp:(UIBarButtonItem*) aUPiXp ah27qmxO:(UIInputView*) ah27qmxO agkvEry31j2:(UIControlEvents*) agkvEry31j2 aKmAH27F:(UIView*) aKmAH27F aRVib:(UIActivity*) aRVib alWLZU7:(UIControlEvents*) alWLZU7 {
- NSLog(@"FpXcYHeOCtmDTn");
- NSLog(@"CsDFaJhiKuYrU7owAn5Ex");
- NSLog(@"LryV3Ji5fopjHTt6Ydzn4hIC80Mg2BFS");
- NSLog(@"AYVLfo7rMsy5");
- NSLog(@"ukHzg9nslUQK2cLamw3SCiyRjEM8JbNvh");
- NSLog(@"TBbwNqDtJsKlzMcACjSIvrgei1ofGH938a0y2");
- NSLog(@"v8snYkyU50LDW7GJamerOuKlPbqHtC");
- NSLog(@"pJCle1ShPQUTLH9b");
- NSLog(@"Ul3JqhLeS0");
- NSLog(@"dswcNknFJIWm2qO39eExpv68iZCUuoXSzgD7QVY");
- }
- -(void)aV4johpJf:(UIButton*) aV4johpJf anxfCmy:(UISwitch*) anxfCmy anWRQvCH56:(UIImageView*) anWRQvCH56 a1fosAekqv:(UIUserInterfaceIdiom*) a1fosAekqv aW1smeP6w:(UIDevice*) aW1smeP6w akKt5NXjhf3:(UISearchBar*) akKt5NXjhf3 {
- NSLog(@"CEG2xNX4WdO6KieABnpga0b");
- NSLog(@"TEPm3U7V4R");
- NSLog(@"zW9euKPJ1CVRhBOEvbLyYjsgk5tmp7");
- NSLog(@"WmBjLEfrTRnO");
- NSLog(@"OI5CFutJ8nbULWSs1oANDhTR47dvfl");
- NSLog(@"IjRWbaNcMxq7eQ1Onl9rdVHGu");
- NSLog(@"CQaTpfcbg7r");
- NSLog(@"DHS2ta8cdMnQEPC7T3xOf9pG0BouWL");
- NSLog(@"FqCTX3Yg6Ni7jlBwHEWZVdbupamQ59e20Jhc");
- NSLog(@"D41hZs6RM2u");
- NSLog(@"DZUGrfOHyA6nxVuK5s");
- NSLog(@"AEHzF0TCqSc7GWebLpNDjtMdsgv4YQ");
- }
- -(void)aeMkrmOh9u:(UIView*) aeMkrmOh9u aOc45AS1:(UIBarButtonItem*) aOc45AS1 aC5dULoO0:(UIBarButtonItem*) aC5dULoO0 acVizu2P9:(UIImageView*) acVizu2P9 aar0v:(UIVisualEffectView*) aar0v aG63Wq:(UIColor*) aG63Wq aVvd3tOB:(UIControl*) aVvd3tOB aDEIrs:(UICollectionView*) aDEIrs awh7Q:(UIActivity*) awh7Q a82PXEF:(UIBezierPath*) a82PXEF ajOGL:(UIInputView*) ajOGL avOr1eWB:(UIDevice*) avOr1eWB aLy92:(UITableView*) aLy92 aUlC8oP:(UIControlEvents*) aUlC8oP azSZO:(UICollectionView*) azSZO {
- NSLog(@"SD74JV3KkZNwQgPryzYXxI1Fdb9GpvR6Lsaft");
- NSLog(@"9hJ1eIc8ukm5ZjUg6foNBi");
- NSLog(@"S9TN6eK0OtPrHjIaWv8zEMRmoUhfiCkxwGBl2pJ");
- NSLog(@"L7ea60ds34Fv5bBSrNIEcywmQxgDuzq2MTjptGhY");
- NSLog(@"MfiL8xtNsgHrEOby10oG5Ru");
- NSLog(@"4GVy0bClMdRtacWYpPK");
- NSLog(@"owjp0a4G5Tbzrv6hgqFQ8n");
- NSLog(@"xULWosZpqErn0kCFzdjV2");
- NSLog(@"079JHoSYanNZPd8yekTFKR1L");
- NSLog(@"CyuiBJFAGRIWhlQLv1w");
- NSLog(@"29pVSIKnWQCieRmXv6Lo51qb3yjEd4MkzlsuT");
- }
- -(void)aSdnprNzuaw:(UISwitch*) aSdnprNzuaw aHRZ3dxMWs:(UIMenuItem*) aHRZ3dxMWs ac2XFn60:(UISearchBar*) ac2XFn60 aVdeRcL:(UISwitch*) aVdeRcL au3lj5R:(UIAlertView*) au3lj5R aCqzLA:(UIUserInterfaceIdiom*) aCqzLA axeM9S4Fi:(UIButton*) axeM9S4Fi {
- NSLog(@"icD6PVC4jJazZg");
- NSLog(@"UwzqvaEVsgQyeprC8I6oHMmYBW9fDXtZTukdc");
- NSLog(@"nWOEI6ahD78wAjirG3V");
- NSLog(@"FLTuKoNAnxdY1ErHhciSDe53vzG");
- NSLog(@"WVmDYdFULAN1STQOjtMXpEozxubGvR");
- NSLog(@"4nVTLXvp7BeUxiyPYC1sR0IFDcKEgkz8aQmSAo");
- NSLog(@"3AvurkS2FzPU48eLyQ5o6GwfcXlWjOMaCBZTI");
- NSLog(@"vEZODhs9Cz53l2AJtWKk6");
- NSLog(@"rsB7yvA8zaQPeHUK5");
- NSLog(@"6KRIQk8mBDiZzrg1no0d3OGqMN9paxjXYTV");
- NSLog(@"Bk5WH1eEoZxIU");
- NSLog(@"qdAnuwj13X0KVJNi8CGc94WLr5BfyRkYOb7o2Z");
- NSLog(@"JQwDq8WYFlLA");
- }
- -(void)aVAPwyB:(UIView*) aVAPwyB aZd6Jz:(UILabel*) aZd6Jz aKunbBv9Y:(UIEvent*) aKunbBv9Y aohlzIf6C5:(UIMenuItem*) aohlzIf6C5 aelviqfY:(UITableView*) aelviqfY atb8AqIGnc:(UIImageView*) atb8AqIGnc agCbjl:(UIControlEvents*) agCbjl aTwJQC5LfZ:(UIVisualEffectView*) aTwJQC5LfZ ajk5bizgwrP:(UIViewController*) ajk5bizgwrP azvjik1dQ:(UIAlertView*) azvjik1dQ aWo8VsJd2K:(UIBarButtonItem*) aWo8VsJd2K ak2zMj:(UIRegion*) ak2zMj aEuhq:(UIDevice*) aEuhq aRNX17pgas:(UIImage*) aRNX17pgas a6nifY54q:(UIDevice*) a6nifY54q awj3kC:(UIControl*) awj3kC aEsaqy:(UIControl*) aEsaqy ajDsEg49:(UIFont*) ajDsEg49 agjc4UB:(UIBezierPath*) agjc4UB {
- NSLog(@"tCYqwE0M5zOxeglv382SG");
- NSLog(@"AjgOHrVCBQw4PGNce52WFxbz");
- NSLog(@"WKl1TpBkCEv");
- NSLog(@"KzPr6SsbmcDITnoEywUeQ3uOgdZRfC0");
- NSLog(@"A6GQ0TisoC3xndt");
- NSLog(@"wSeYgX3NiK0F1ptlrD7AbfUP");
- NSLog(@"pMnY2wAdEJt0WUNOriGfVTu");
- NSLog(@"7jfOS2iEnFzQ1XMK5PrDZB");
- NSLog(@"ztBgZ5ux6hG219jesUNdlrJiKm");
- NSLog(@"xrZuCvXSL5fG8NYa1TFd4lE");
- NSLog(@"ZAG3giytlv");
- }
- -(void)axcpJ:(UIView*) axcpJ ah6JV2:(UIScreen*) ah6JV2 ai78H3GR:(UIEvent*) ai78H3GR ayFljAuDi:(UIVisualEffectView*) ayFljAuDi am2Svu:(UIRegion*) am2Svu {
- NSLog(@"hoajFWPOEyQVXHRTf");
- NSLog(@"rCyHSKDA0p1lasOzLkPtXbu93RfcYwvE4To7Qq");
- NSLog(@"1n9oz4INkSA7leabws");
- NSLog(@"f0otGkhg3RyYCaWpJDcmEeMurU");
- NSLog(@"aLfMPJAmy1I5xnVkpr6OWdtGNue8RcjUH");
- NSLog(@"KMrsDwGzW8oLPbZlR2FIgt7iC3q4Jm");
- NSLog(@"u6ZwgctWiYksofrJOFDBnSpMhbve9HN2");
- NSLog(@"hPNZyJXIxm5wD2q6F47BTGV0C1iSc8f9bt");
- NSLog(@"k1ELC02dYKFtDWyBnMs");
- NSLog(@"OqLiHvwd1cF");
- NSLog(@"Hv8P46ng9tJY0FyWrB5b");
- NSLog(@"xFp1V0L7R8cd");
- NSLog(@"P1bu07aZTvfRc92K3JzVLopDSw8YMH");
- NSLog(@"46GD0esSAiWL3r7kxEVKRCy");
- NSLog(@"3Fz1hWcMnIONik5yVSYvqpDE");
- NSLog(@"fdT6eWPLA5BK2mRIba0tc9EDXrZoqOiNGlzn");
- NSLog(@"9zCAiShVNd3BXu2UL8Jf");
- }
- @end
|