 extension RecommendCycleView:UICollectionViewDataSource{
 
     func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
-        return cycleModel?.count ?? 0
+        return (cycleModel?.count ?? 0) * 10000
     }
 
     func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
         
         let cell = collectionView.dequeueReusableCell(withReuseIdentifier: kCycleCellID, for: indexPath) as! CollectionViewCycelCell
         
-        let cycleModelsingel = cycleModel?[indexPath.row]
+        let cycleModelsingel = cycleModel?[indexPath.row % (cycleModel?.count)!]
         cell.cycleModel = cycleModelsingel
         
         return cell

        let offsetX = scrollView.contentOffset.x + scrollView.bounds.width * 0.5
        
        //2。计算pagecontroller  currentIndex
        pagecontrollr.currentPage = Int(offsetX/scrollView.bounds.width)
        
    }


    @IBOutlet weak var collectionView: UICollectionView!
    @IBOutlet weak var pagecontrollr: UIPageControl!
    
    var cycelTimer  : Timer?              // 定时器隔断时间滚动广告栏
    var cycleModel:[CyceleModel]?{
    
        didSet{
