             
             // 2,设置pageControl的个数
             pageControl.numberOfPages = cycleModels?.count ?? 0
+            
+            
+            // 3,默认滚动到中间某一位置
+            let indexPath = IndexPath(item: (cycleModels?.count ?? 0) * 10, section: 0)
+            collectionView.scrollToItem(at: indexPath, at: .left, animated: false)
+            
+            // 4,添加定时器
+            removeCycleTimer()
+            addCycleTimer()
         }
     }
 

        let offsetX = scrollView.contentOffset.x + scrollView.bounds.width * 0.5
        
        // 2,计算pageControl的currentIndex
        pageControl.currentPage = Int(offsetX / scrollView.bounds.width)
    }
}

class RecommendCycleView: UIView {
    
    // 定义属性
    var cycleTimer : Timer?
    var cycleModels : [CycleModel]? {
        didSet {
            // 1,刷新collectionView
