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

            
            // 设置 pagecontrollr 的个数
            pagecontrollr.numberOfPages = cycleModel?.count ?? 0
        
        }
    
    }
    
    override func awakeFromNib() {

extension RecommendCycleView:UICollectionViewDataSource{

    func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
        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 % (cycleModel?.count)!]
        cell.cycleModel = cycleModelsingel
        
        return cell
