     var models: [CourseModel] = [] {
         didSet {
             if models.count == studentCourses.count {
+                // 加载课程页面
                 dispatch_async(dispatch_get_main_queue()) { [weak self] () -> Void in
+                    // 隐藏loading指示器
+                    self?.activityIndicator.stopAnimating()
+                    self?.scrollEnabled = true
                     self?.setupCoursePanels()
                 }
             }

    
    // MARK: - Private
    private func configure() {
        self.scrollEnabled = true
        self.pagingEnabled = true
        self.delegate = self
        self.bounces = true

        backgroundColor = UIColor.whiteColor()
        
        // SubViews
        addSubview(activityIndicator)
        
        // Autolayout
        activityIndicator.snp_makeConstraints { (make) -> Void in
            make.center.equalTo(self.snp_center)
        }
    }
    
    ///  根据课程id获取课程详细信息
