重庆迈尖科技有限公司
2021-08-13 5d5b8e7baea4926689082b8a4eae7e994210fa29
BuWanVideo2.0/LeftViewController.m
@@ -14,6 +14,7 @@
#import "MymessageContrlloer.h"
#import "LookNoteController.h"
#import "CollectionController.h"
#import "BuyVipController.h"
//#import "PublishGoodsViewController.h"
#import "MyRegardController.h"
#import "Share.h"
@@ -144,10 +145,10 @@
 */
-(void)creatData{
    if (!_iconArr) {
        _iconArr=[NSArray arrayWithObjects:@"我的收藏",@"观看记录",@"我的关注",@"我的消息",@"帮助和反馈",@"隐私政策",@"设置", nil];
        _iconArr=[NSArray arrayWithObjects:@"会员中心",@"我的收藏",@"观看记录",@"我的关注",@"我的消息",@"帮助和反馈",@"隐私政策",@"设置", nil];
    }
    if (!_dataArr) {
        _dataArr=[NSArray arrayWithObjects:@"我的收藏",@"观看记录",@"我的关注",@"我的消息",@"帮助与反馈",@"隐私政策",@"设置", nil];
        _dataArr=[NSArray arrayWithObjects:@"会员中心",@"我的收藏",@"观看记录",@"我的关注",@"我的消息",@"帮助与反馈",@"隐私政策",@"设置", nil];
    }
}
/**
@@ -179,7 +180,22 @@
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    
    switch (indexPath.row) {
        case 0:{
            if([[NSUserDefaults standardUserDefaults] boolForKey:@"userOnLine"]){//判断用户是否登录
                BuyVipController *vc = [[BuyVipController alloc] init];
                vc.url =[[NSUserDefaults standardUserDefaults] objectForKey:VIPLINK];
                [self.navigationController pushViewController:vc animated:YES];
            }else{
                LoggingViewController *loginVC=[LoggingViewController new];
                [loginVC setHidesBottomBarWhenPushed:YES];
                [self.navigationController pushViewController:loginVC animated:YES];
            }
        }
            break;
        case 1:{
//        if([[NSUserDefaults standardUserDefaults] boolForKey:@"userOnLine"]){
//
                CollectionController * cc = [CollectionController new];
@@ -197,14 +213,14 @@
          
        }
            break;
        case 1:{
        case 2:{
            LookNoteController * note = [LookNoteController new];
            [note setHidesBottomBarWhenPushed:YES];
            [self.navigationController pushViewController:note animated:YES];
        }
            break;
        case 2:{
        case 3:{
            if([[NSUserDefaults standardUserDefaults] boolForKey:@"userOnLine"]){//判断用户是否登录
                MyRegardController * nr = [MyRegardController new];
                [nr setHidesBottomBarWhenPushed:YES];
@@ -216,7 +232,7 @@
            }
        }
            break;
        case 3:{
        case 4:{
            if([[NSUserDefaults standardUserDefaults] boolForKey:@"userOnLine"]){//判断用户是否登录
                MymessageContrlloer *message = [MymessageContrlloer new];
                [message setHidesBottomBarWhenPushed:YES];
@@ -229,7 +245,7 @@
        }
            break;
        case 4:{
        case 5:{
            //帮助与反馈
            HelpViewController *Help = [HelpViewController new];
            [Help setHidesBottomBarWhenPushed:YES];
@@ -237,7 +253,7 @@
        }
            break;
        
        case 5:{
        case 6:{
            NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/api_control_ios.jsp",iconImageUrl]];
            SFSafariViewController *safariVC = [[SFSafariViewController alloc] initWithURL:url];
//            safariVC.delegate = self;
@@ -255,7 +271,7 @@
        }
        break;
            
        case 6:{
        case 7:{
            //设置
            SettingController * setting = [SettingController new];
            [setting setHidesBottomBarWhenPushed:YES];
@@ -308,7 +324,7 @@
    cell.Icon.image=[UIImage imageNamed:_iconArr[indexPath.row]];
    cell.titleText.text=_dataArr[indexPath.row];
    //当有新消息时,显示小红点
    if(indexPath.row == 3){
    if(indexPath.row == 4){
        if([[NSUserDefaults standardUserDefaults] boolForKey:@"HaveMessage"]){
        UIView * red = [[UIView alloc]initWithFrame:CGRectMake(cell.titleText.frame.origin.x + 100, 21, 8, 8)];
        red.backgroundColor = [UIColor redColor];