Explorar o código

视频播放 - 底部视图

Chris %!s(int64=5) %!d(string=hai) anos
pai
achega
5a75137346
Modificáronse 18 ficheiros con 440 adicións e 3 borrados
  1. 8 0
      RainbowPlanet/RainbowPlanet.xcodeproj/project.pbxproj
  2. 172 2
      RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/View/CommunityVideoCoverCollectionCell.swift
  3. 1 1
      RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/View/CommunityVideoPlayView.swift
  4. 79 0
      RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/View/CommunityVideoSelTopicCell.swift
  5. 79 0
      RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/View/CommunityVideoTopicView.swift
  6. 13 0
      RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/ViewController/CommunityVideoListController.swift
  7. 22 0
      RainbowPlanet/RainbowPlanet/Supporting Files/Assets.xcassets/NavigationBarIcons/nav_share_white.imageset/Contents.json
  8. BIN=BIN
      RainbowPlanet/RainbowPlanet/Supporting Files/Assets.xcassets/NavigationBarIcons/nav_share_white.imageset/nav_share_white@2x.png
  9. BIN=BIN
      RainbowPlanet/RainbowPlanet/Supporting Files/Assets.xcassets/NavigationBarIcons/nav_share_white.imageset/nav_share_white@3x.png
  10. 22 0
      RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_collect_white.imageset/Contents.json
  11. BIN=BIN
      RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_collect_white.imageset/video_btn_collect_white@2x.png
  12. BIN=BIN
      RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_collect_white.imageset/video_btn_collect_white@3x.png
  13. 22 0
      RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_note_white.imageset/Contents.json
  14. BIN=BIN
      RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_note_white.imageset/video_btn_note_white@2x.png
  15. BIN=BIN
      RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_note_white.imageset/video_btn_note_white@3x.png
  16. 22 0
      RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_praise_white.imageset/Contents.json
  17. BIN=BIN
      RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_praise_white.imageset/video_btn_praise_white@2x.png
  18. BIN=BIN
      RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_praise_white.imageset/video_btn_praise_white@3x.png

+ 8 - 0
RainbowPlanet/RainbowPlanet.xcodeproj/project.pbxproj

@@ -524,6 +524,8 @@
 		BD2FCBE622B2586C0006D974 /* CommunityTagCollectionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD2FCBE522B2586C0006D974 /* CommunityTagCollectionCell.swift */; };
 		BD2FCBEA22B267280006D974 /* RecommendNoneCommentCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD2FCBE922B267280006D974 /* RecommendNoneCommentCell.swift */; };
 		BD3474F522857B85000908C5 /* CommonPayHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD3474F422857B85000908C5 /* CommonPayHeader.swift */; };
+		BD37E38322CDF5BA003A14A2 /* CommunityVideoTopicView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD37E38222CDF5BA003A14A2 /* CommunityVideoTopicView.swift */; };
+		BD37E38522CDF91A003A14A2 /* CommunityVideoSelTopicCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD37E38422CDF91A003A14A2 /* CommunityVideoSelTopicCell.swift */; };
 		BD3AA45822AE63EC00EF4F20 /* MessageMainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD3AA45722AE63EC00EF4F20 /* MessageMainViewController.swift */; };
 		BD477F6322C23D66008BE2CB /* AliyunReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = BD477F6222C23D66008BE2CB /* AliyunReachability.m */; };
 		BD4B50AC22BC7DEA0073B516 /* FilterResource.bundle in Resources */ = {isa = PBXBuildFile; fileRef = BD4B50AB22BC7DEA0073B516 /* FilterResource.bundle */; };
@@ -1232,6 +1234,8 @@
 		BD2FCBE522B2586C0006D974 /* CommunityTagCollectionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommunityTagCollectionCell.swift; sourceTree = "<group>"; };
 		BD2FCBE922B267280006D974 /* RecommendNoneCommentCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RecommendNoneCommentCell.swift; sourceTree = "<group>"; };
 		BD3474F422857B85000908C5 /* CommonPayHeader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommonPayHeader.swift; sourceTree = "<group>"; };
+		BD37E38222CDF5BA003A14A2 /* CommunityVideoTopicView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommunityVideoTopicView.swift; sourceTree = "<group>"; };
+		BD37E38422CDF91A003A14A2 /* CommunityVideoSelTopicCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommunityVideoSelTopicCell.swift; sourceTree = "<group>"; };
 		BD3AA45722AE63EC00EF4F20 /* MessageMainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageMainViewController.swift; sourceTree = "<group>"; };
 		BD477F6122C23D65008BE2CB /* AliyunReachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AliyunReachability.h; sourceTree = "<group>"; };
 		BD477F6222C23D66008BE2CB /* AliyunReachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AliyunReachability.m; sourceTree = "<group>"; };
@@ -4659,6 +4663,8 @@
 			children = (
 				BD27F0AF22CC929800A6514D /* CommunityVideoCoverCollectionCell.swift */,
 				BD27F0B122CC9E2A00A6514D /* CommunityVideoPlayView.swift */,
+				BD37E38222CDF5BA003A14A2 /* CommunityVideoTopicView.swift */,
+				BD37E38422CDF91A003A14A2 /* CommunityVideoSelTopicCell.swift */,
 			);
 			path = View;
 			sourceTree = "<group>";
@@ -6075,6 +6081,7 @@
 				A71CAB3922C9DF0600D908A8 /* CommunityTopicDetailModel.swift in Sources */,
 				BD6122D322C364E400D3F513 /* AliyunMusicPickCell.m in Sources */,
 				A71AF0BC226F099B001730FE /* ProductHBigTableViewCell.swift in Sources */,
+				BD37E38522CDF91A003A14A2 /* CommunityVideoSelTopicCell.swift in Sources */,
 				BD108C9622A60C2100837DAB /* HGImagePickerCell.swift in Sources */,
 				A7A98E3C228036D7005306E9 /* ShoppingMallCategoryCollectionViewCell.swift in Sources */,
 				A7C0FDEB22B4C6C300BC1E86 /* CardContentCommentListFooterView.swift in Sources */,
@@ -6217,6 +6224,7 @@
 				A72A733522325A4B00B21995 /* AppDelegate+HandleOpen.swift in Sources */,
 				A7FF156E228C6EAE00A85748 /* OrderDeliveryModeTableViewCell.swift in Sources */,
 				BD0FAA6422C4C35E00DDFB37 /* AliyunCropThumbnailView.m in Sources */,
+				BD37E38322CDF5BA003A14A2 /* CommunityVideoTopicView.swift in Sources */,
 				BD61230622C36C6900D3F513 /* AlivcPushBeautyParams.m in Sources */,
 				A72A72AC22321DE000B21995 /* Regex.swift in Sources */,
 				BD12B67422B4EC9700AEB10B /* KSMediaPickerController.swift in Sources */,

+ 172 - 2
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/View/CommunityVideoCoverCollectionCell.swift

@@ -4,7 +4,7 @@
 //
 //  Created by Christopher on 2019/7/3.
 //  Copyright © 2019 RainbowPlanet. All rights reserved.
-//
+//  视频播放列表のCell
 
 import UIKit
 import RxSwift
@@ -27,6 +27,9 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
     typealias ShareClosure = () -> Void
     var shareClosure : ShareClosure?
     
+    typealias BottomClickClosure = (_ clickType: BottomClickType) -> Void
+    var bottomClickClosure : BottomClickClosure?
+    
     class func cellWith(collectionView:UICollectionView,indexPath:IndexPath) -> CommunityVideoCoverCollectionCell {
         let ID = "CommunityVideoCoverCollectionCell"
         collectionView.register(CommunityVideoCoverCollectionCell.self, forCellWithReuseIdentifier: ID)
@@ -56,14 +59,28 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
     //MARK: - 设置View
     private func setupViews() {
         
+        // 视频播放
         addSubview(videoPlayView)
         videoPlayView.addTapGesture(1, target: self, action: #selector(videoTapAction))
         
+        // 顶部
         addSubview(navBackView)
         navBackView.addSubview(navBackBtn)
         navBackView.addSubview(shareBtnRight)
         navBackView.addSubview(shareBtnLeft)
         
+        // 底部
+        addSubview(bottomCommentView)
+        bottomCommentView.addSubview(bottomSepView)
+        bottomCommentView.addSubview(commentBtn)
+        bottomCommentView.addSubview(collectBtn)
+        bottomCommentView.addSubview(likeBtn)
+        bottomCommentView.addSubview(commentView)
+        commentView.addSubview(commentLabel)
+        commentView.addSubview(textBtn)
+        
+        addSubview(topicView)
+        
         addSubview(playStatusImageView)
         
         
@@ -72,10 +89,12 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
     
     private func setupLayouts() {
         
+        // 视频播放
         videoPlayView.snp.makeConstraints { (make) in
             make.edges.equalToSuperview()
         }
         
+        // 顶部
         navBackView.snp.makeConstraints { (make) in
             make.top.equalTo(20)
             make.left.right.equalToSuperview()
@@ -98,6 +117,64 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
             make.height.equalTo(35)
         }
         
+        // 底部
+        bottomCommentView.snp.makeConstraints { (make) in
+            make.bottom.equalTo(-kSafeTabBarHeight)
+            make.left.right.equalToSuperview()
+            make.height.equalTo(60)
+        }
+        bottomSepView.snp.makeConstraints { (make) in
+            make.top.left.right.equalToSuperview()
+            make.height.equalTo(1)
+        }
+        
+        commentBtn.snp.makeConstraints { (make) in
+            make.right.equalToSuperview().offset(-14)
+            make.centerY.equalToSuperview()
+            make.height.equalTo(24)
+        }
+        commentBtn.layoutButton(edgeInsetsStyle: ButtonEdgeInsetsStyle.left, imageTitleSpace: 5)
+        
+        collectBtn.snp.makeConstraints { (make) in
+            make.right.equalTo(commentBtn.snp_left).offset(-15)
+            make.centerY.equalToSuperview()
+            make.height.equalTo(37)
+        }
+        collectBtn.layoutButton(edgeInsetsStyle: ButtonEdgeInsetsStyle.left, imageTitleSpace: 5)
+        
+        likeBtn.snp.makeConstraints { (make) in
+            make.right.equalTo(collectBtn.snp_left).offset(-15)
+            make.centerY.equalToSuperview()
+            make.height.equalTo(37)
+        }
+        likeBtn.layoutButton(edgeInsetsStyle: ButtonEdgeInsetsStyle.left, imageTitleSpace: 5)
+        
+        commentView.snp.makeConstraints { (make) in
+            make.centerY.equalToSuperview()
+            make.left.equalToSuperview().offset(14)
+            make.right.equalTo(likeBtn.snp_left).offset(-10)
+            make.height.equalTo(28)
+        }
+        commentLabel.snp.makeConstraints { (make) in
+            make.left.equalTo(15)
+            make.centerY.equalToSuperview()
+            make.width.equalTo(70)
+            make.height.equalTo(28)
+        }
+        textBtn.snp.makeConstraints { (make) in
+            make.edges.equalToSuperview()
+        }
+        
+        //
+        topicView.snp.makeConstraints { (make) in
+            make.bottom.equalTo(bottomCommentView.snp_top)
+            make.left.right.equalToSuperview()
+            make.height.equalTo(45)
+        }
+        
+        
+        
+        //
         playStatusImageView.snp.makeConstraints { (make) in
             make.center.equalToSuperview()
             make.width.equalTo(50)
@@ -133,7 +210,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
     
     private lazy var shareBtnRight: UIButton = {
         let shareBtnRight = UIButton(type: UIButton.ButtonType.custom)
-        shareBtnRight.setImage(kImage(name: "btn_share_gray"), for: UIControl.State.normal)
+        shareBtnRight.setImage(kImage(name: "nav_share_white"), for: UIControl.State.normal)
         shareBtnRight.rx.tap.subscribe(onNext: {
             [weak self] (data) in
             if let shareClosure = self?.shareClosure {
@@ -155,6 +232,99 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
         return shareBtnLeft
     }()
     
+    private lazy var bottomCommentView: UIView = {
+        let bottomCommentView = UIView()
+        bottomCommentView.backgroundColor = UIColor.clear
+        return bottomCommentView
+    }()
+    
+    private lazy var bottomSepView: UIView = {
+        let bottomSepView = UIView()
+        bottomSepView.backgroundColor = kDDDDDDColor
+        return bottomSepView
+    }()
+    
+    private lazy var commentBtn: UIButton = {
+        let commentBtn = UIButton(type: UIButton.ButtonType.custom)
+        commentBtn.setTitle("5178", for: UIControl.State.normal)
+        commentBtn.setTitleColor(kffffffColor, for: UIControl.State.normal)
+        commentBtn.setImage(kImage(name: "video_btn_note_white"), for: UIControl.State.normal)
+        commentBtn.titleLabel?.font = kRegularFont14
+        commentBtn.rx.tap.subscribe(onNext: { [weak self] (data) in
+            if let bottomClickClosure = self?.bottomClickClosure {
+                bottomClickClosure(BottomClickType.typeComment)
+            }
+        }).disposed(by: disposeBag)
+        return commentBtn
+    }()
+    
+    private lazy var collectBtn: UIButton = {
+        let collectBtn = UIButton(type: UIButton.ButtonType.custom)
+        collectBtn.setTitle("6124", for: UIControl.State.normal)
+        collectBtn.setTitleColor(kffffffColor, for: UIControl.State.normal)
+        collectBtn.setImage(kImage(name: "video_btn_collect_white"), for: UIControl.State.normal)
+        collectBtn.setImage(kImage(name: "btn_collect_pre"), for: UIControl.State.selected)        
+        collectBtn.titleLabel?.font = kRegularFont14
+        collectBtn.rx.tap.subscribe(onNext: { [weak self] (data) in
+            collectBtn.isSelected = !collectBtn.isSelected
+            if let bottomClickClosure = self?.bottomClickClosure {
+                bottomClickClosure(BottomClickType.typeCollect)
+            }
+        }).disposed(by: disposeBag)
+        return collectBtn
+    }()
+    
+    private lazy var likeBtn: UIButton = {
+        let likeBtn = UIButton(type: UIButton.ButtonType.custom)
+        likeBtn.setTitle("8844", for: UIControl.State.normal)
+        likeBtn.setTitleColor(kffffffColor, for: UIControl.State.normal)
+        likeBtn.setImage(kImage(name: "video_btn_praise_white"), for: UIControl.State.normal)
+        likeBtn.setImage(kImage(name: "btn_praise_pre_36px"), for: UIControl.State.selected)
+        likeBtn.titleLabel?.font = kRegularFont14
+        likeBtn.rx.tap.subscribe(onNext: { [weak self] (data) in
+            likeBtn.isSelected = !likeBtn.isSelected
+            if let bottomClickClosure = self?.bottomClickClosure {
+                bottomClickClosure(BottomClickType.typeLike)
+            }
+        }).disposed(by: disposeBag)
+        return likeBtn
+    }()
+    
+    private lazy var commentView: UIView = {
+        let commentView = UIView()
+        commentView.backgroundColor = kDDDDDDColor
+        commentView.cornerRadius = 15
+        commentView.masksToBounds = true
+        return commentView
+    }()
+    
+    private lazy var commentLabel: UILabel = {
+        let commentLabel = UILabel()
+        commentLabel.text = "添加评论..."
+        commentLabel.textColor = kffffffColor
+        commentLabel.font = kRegularFont14
+        return commentLabel
+    }()
+    
+    private lazy var textBtn: UIButton = {
+        let textBtn = UIButton(type: UIButton.ButtonType.custom)
+        textBtn.rx.tap.subscribe(onNext: { [weak self] (data) in
+            if let bottomClickClosure = self?.bottomClickClosure {
+                bottomClickClosure(BottomClickType.typeComment)
+            }
+        }).disposed(by: disposeBag)
+        return textBtn
+    }()
+    
+    private lazy var topicView: CommunityVideoTopicView = {
+        let topicView = CommunityVideoTopicView()
+        topicView.backgroundColor = UIColor.clear
+        return topicView
+    }()
+    
+    
+    
+    
     
     // 播放暂停icon
     private lazy var playStatusImageView: UIImageView = {

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/View/CommunityVideoPlayView.swift

@@ -4,7 +4,7 @@
 //
 //  Created by Christopher on 2019/7/3.
 //  Copyright © 2019 RainbowPlanet. All rights reserved.
-//
+//  视频播放View
 
 import UIKit
 

+ 79 - 0
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/View/CommunityVideoSelTopicCell.swift

@@ -0,0 +1,79 @@
+//
+//  CommunityVideoSelTopicCell.swift
+//  RainbowPlanet
+//
+//  Created by Christopher on 2019/7/4.
+//  Copyright © 2019 RainbowPlanet. All rights reserved.
+//  话题类别のCell
+
+import UIKit
+import RxSwift
+
+class CommunityVideoSelTopicCell: UICollectionViewCell {
+    
+    let disposeBag = DisposeBag()
+    
+    class func cellWith(collectionView:UICollectionView,indexPath:IndexPath) -> CommunityVideoSelTopicCell {
+        let ID = "CommunityVideoSelTopicCell"
+        collectionView.register(CommunityVideoSelTopicCell.self, forCellWithReuseIdentifier: ID)
+        let cell : CommunityVideoSelTopicCell = collectionView.dequeueReusableCell(withReuseIdentifier: ID, for: indexPath) as! CommunityVideoSelTopicCell
+        cell.indexPath = indexPath
+        return cell
+    }
+    //MARK: - indexPath
+    var indexPath: IndexPath?{
+        didSet {
+            
+        }
+    }
+    //MARK: - 初始化
+    override init(frame: CGRect) {
+        super.init(frame: frame)
+        backgroundColor = kRGBAColor(r: 0/255.0, g: 0/255.0, b: 0/255.0, a: 0.3)
+        cornerRadius = 12
+        masksToBounds = true
+        setupViews()
+        setupLayouts()
+    }
+    
+    required init?(coder aDecoder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
+    }
+    
+    //MRAK: - 设置View
+    private func setupViews() {
+        addSubview(iconImageView)
+        addSubview(titleLabel)
+    }
+    
+    private func setupLayouts() {
+        iconImageView.snp.makeConstraints { (make) in
+            make.top.equalTo(5)
+            make.left.equalTo(6)
+            make.size.equalTo(16)
+        }
+        titleLabel.snp.makeConstraints { (make) in
+            make.top.equalTo(3)
+            make.left.equalTo(iconImageView.snp_right).offset(5)
+            make.right.equalTo(-26)
+            make.height.equalTo(19)
+        }
+    }
+    
+    private lazy var iconImageView: UIImageView = {
+        let iconImageView = UIImageView()
+        iconImageView.image = kImage(name: "edit_ico_topic_pre")
+        return iconImageView
+    }()
+    
+    private lazy var titleLabel: UILabel = {
+        let titleLabel = UILabel()
+        titleLabel.text = "运动健身"
+//        titleLabel.backgroundColor = kRGBAColor(r: 0/255.0, g: 0/255.0, b: 0/255.0, a: 0.3)
+        titleLabel.textColor = kffffffColor
+        titleLabel.font = kRegularFont13
+        titleLabel.textAlignment = .left
+        return titleLabel
+    }()
+    
+}

+ 79 - 0
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/View/CommunityVideoTopicView.swift

@@ -0,0 +1,79 @@
+//
+//  CommunityVideoTopicView.swift
+//  RainbowPlanet
+//
+//  Created by Christopher on 2019/7/4.
+//  Copyright © 2019 RainbowPlanet. All rights reserved.
+//  话题标签View
+
+import UIKit
+
+class CommunityVideoTopicView: BaseView {
+    
+    override func setupViews() {
+        addSubview(collectionView)
+    }
+    
+    override func setupLayouts() {
+        collectionView.snp.remakeConstraints { (make) in
+            make.edges.equalToSuperview()
+        }
+    }
+    
+    private lazy var collectionView: UICollectionView = {
+        let collectionView = UICollectionView.init(frame: CGRect.zero, collectionViewLayout: collectionViewLayout)
+        collectionView.backgroundColor = .clear
+        collectionView.delegate = self;
+        collectionView.dataSource = self;
+        collectionView.showsVerticalScrollIndicator = false
+        collectionView.showsHorizontalScrollIndicator = false
+        collectionView.bounces = false
+        return collectionView
+    }()
+    
+    private lazy var collectionViewLayout: UICollectionViewFlowLayout = {
+        let collectionViewLayout = UICollectionViewLeftAlignedLayout.init()
+        collectionViewLayout.minimumLineSpacing = 10
+        collectionViewLayout.minimumInteritemSpacing =  10
+        collectionViewLayout.scrollDirection = UICollectionView.ScrollDirection.horizontal
+        collectionViewLayout.estimatedItemSize = CGSize(width: ((kScreenWidth - 28) - 3*10)/4, height: 24)
+        return collectionViewLayout
+    }()
+    
+    //加载数据
+    func reloadData() {
+        //collectionView重新加载数据
+        self.collectionView.reloadData()
+        //更新collectionView的高度约束
+        let contentSize = self.collectionView.collectionViewLayout.collectionViewContentSize
+        collectionView.snp.makeConstraints { (make) in
+            make.edges.equalToSuperview()
+            make.height.equalTo(contentSize.height)
+        }
+        self.collectionView.collectionViewLayout.invalidateLayout()
+    }
+}
+
+extension CommunityVideoTopicView: UICollectionViewDelegateFlowLayout,UICollectionViewDataSource {
+    func numberOfSections(in collectionView: UICollectionView) -> Int {
+        return 1
+    }
+    
+    func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
+        return 5
+    }
+    
+    func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
+        let cell = CommunityVideoSelTopicCell.cellWith(collectionView: collectionView, indexPath: indexPath)
+        return cell
+    }
+    
+    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
+        return UIEdgeInsets(top: 6, left: 14, bottom: 15, right: 14)
+    }
+    
+    func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
+        print("点击了collection----\(indexPath.row)")
+    }
+    
+}

+ 13 - 0
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/ViewController/CommunityVideoListController.swift

@@ -123,6 +123,19 @@ extension CommunityVideoListController: UICollectionViewDelegateFlowLayout,UICol
             [weak self] in
             print("------点击了[分享]")
         }
+        cell.bottomClickClosure = {
+            [weak self] (clickType) in
+            switch clickType {
+            case BottomClickType.typeComment:
+                print("添加评论")
+            case BottomClickType.typeLike:
+                print("添加喜欢")
+            case BottomClickType.typeCollect:
+                print("添加收藏")
+            default:
+                print("添加收藏")
+            }
+        }
         return cell
     }
     

+ 22 - 0
RainbowPlanet/RainbowPlanet/Supporting Files/Assets.xcassets/NavigationBarIcons/nav_share_white.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "nav_share_white@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "nav_share_white@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN=BIN
RainbowPlanet/RainbowPlanet/Supporting Files/Assets.xcassets/NavigationBarIcons/nav_share_white.imageset/nav_share_white@2x.png


BIN=BIN
RainbowPlanet/RainbowPlanet/Supporting Files/Assets.xcassets/NavigationBarIcons/nav_share_white.imageset/nav_share_white@3x.png


+ 22 - 0
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_collect_white.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "video_btn_collect_white@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "video_btn_collect_white@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN=BIN
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_collect_white.imageset/video_btn_collect_white@2x.png


BIN=BIN
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_collect_white.imageset/video_btn_collect_white@3x.png


+ 22 - 0
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_note_white.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "video_btn_note_white@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "video_btn_note_white@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN=BIN
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_note_white.imageset/video_btn_note_white@2x.png


BIN=BIN
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_note_white.imageset/video_btn_note_white@3x.png


+ 22 - 0
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_praise_white.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "video_btn_praise_white@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "video_btn_praise_white@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN=BIN
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_praise_white.imageset/video_btn_praise_white@2x.png


BIN=BIN
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/video_btn_praise_white.imageset/video_btn_praise_white@3x.png