//
//  MineHeadTableViewCell+RibbonView.swift
//  MobilePortal
//
//  Created by caiyang on 2020/4/3.
//  Copyright © 2020 yin chen. All rights reserved.
//

import UIKit

extension MineHeadTableViewCell {
    func addRibbonItemView(){
        self.ribbonView.updatePageData(modelArray: self.xinfo.ribbonItemModelArry)
//        if (self.ribbonView.subviews.count != 0) {
//            return
//        }
//        let rubbonItemViewW:CGFloat = (SCREEN_WHIDTH()-44)/4
//        for index in 0..<self.xinfo.ribbonItemModelArry.count {
//            let itemModel = self.xinfo.ribbonItemModelArry[index] as! MineHeadTableViewCellRibbonModel
//            let rubbonItemView = RibbonItemView.init(frame: CGRect(x:22+rubbonItemViewW*CGFloat(index), y: 30, width:rubbonItemViewW , height:self.height ))
//            rubbonItemView.title = itemModel.titleStr
//            rubbonItemView.imageName = itemModel.imageName
//            rubbonItemView.biaojiNum = itemModel.biaojiNum
//            rubbonItemView.block = itemModel.block
//            self.ribbonView.addSubview(rubbonItemView)
//        }
    }
}
