     let joinedIndicator = EURefreshControl()
     let createdIndicator = EURefreshControl()
     
+    let indicator = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width / 2, height: 2))
+    
     // 是否为第一页判断
     var isFirstPageSelected = true{
         didSet{

            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)
            
        }
        
    }
    
}


        scrollView.addSubview(joinedtableView)
        scrollView.addSubview(createdtableView)
        
        
        indicator.backgroundColor = UIColor.green
        indicatorView.contentSize = CGSize(width: swidth , height: 2)
        indicatorView.addSubview(indicator)
        view.addSubview(indicatorView)
       
