 //MARK:- 设置导航条
 extension BTHomeViewController {
     func setupNaviBar() {
-        
-        navigationController?.navigationBar.setBackgroundImage(UIImage(color: UIColor(white: 1.0, alpha: 0.0)), forBarMetrics: .Default)
-        navigationController?.navigationBar.shadowImage = UIImage()
-        
+
         //签到按钮
         navigationItem.rightBarButtonItem = UIBarButtonItem(image: UIImage(named: "home_sign_icon_33x33_"), highlightImage: UIImage(named: "home_sign_highlight_icon_33x33_"), target: self, action: #selector(signClick))
         //搜索按钮

        
        if offSetY < -(defaultOffSetY - headViewHeight + naviBarHeight) {
            
            var alpha: CGFloat = currentOffsetY * 1 / 98.0
            
            
            if alpha <= 0 {
                
            }
            
            if alpha >= 1 {
                alpha = 0.99
                navigationItem.rightBarButtonItem = UIBarButtonItem(image: UIImage(named: "home_sign_top_icon_19x19_"), highlightImage: nil, target: self, action: #selector(signClick))
            } else {
                navigationItem.rightBarButtonItem = UIBarButtonItem(image: UIImage(named: "home_sign_icon_33x33_"), highlightImage: UIImage(named: "home_sign_highlight_icon_33x33_"), target: self, action: #selector(signClick))
            }
            
            navigationController?.navigationBar.setBackgroundImage(UIImage(color: UIColor(white: 1.0, alpha: alpha)), forBarMetrics: .Default)
            
        }
        
        
        if offSetY > -(defaultOffSetY - headViewHeight + naviBarHeight) {
            if topView.frame.origin.y == naviBarHeight {
                return
            }
            // 使滑块停在navigationBar下面
            self.scrollView.frame.origin.y = naviBarHeight - headViewHeight
            topView.frame.origin.y = naviBarHeight
            navigationController?.navigationBar.setBackgroundImage(UIImage(color: UIColor(white: 1.0, alpha: 1.0)), forBarMetrics: .Default)
            
            return
        } else if offSetY < -defaultOffSetY {

        return scrollView
    }()
    
    //MARK: - 视图加载
    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = UIColor.whiteColor()
        // 这个是必要的设置, 如果没有设置导致显示内容不正常, 请尝试设置这个属性
        automaticallyAdjustsScrollViewInsets = false
        setupNaviBar()
        
        
        
        setChildVcs()
        
        addSubviews()
