             let vc = EUCreatedActivityViewController()
             vc.viewmodel = activitylistviewmodel.createdlist[indexPath.row]
             navigationController?.pushViewController(vc, animated: true)
+            
         }else if tableView.tag == 0{
             
             let vc = EUActivityViewController()
             vc.viewmodel = activitylistviewmodel.participatedlist[indexPath.row]
             navigationController?.pushViewController(vc, animated: true)
             
-        }
-        
-    }
+            
+        }
+        
+    }
+    
+    
     
 }
 

        setupNavBar()
        setupUI()
        
        EUNetworkManager.shared.getParticipatedActivityList { (_, z) in
            
        }

    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    // 加载我参加的活动数据

    func scrollViewDidScroll(_ scrollView: UIScrollView) {
        
        let offsetX = scrollView.contentOffset.x
        print(offsetX)
        if offsetX > 0 {
            indicatorView?.setContentOffset(CGPoint(x: -offsetX/2, y: indicatorView?.contentOffset.y ?? 44), animated: true)

