Browse Source

音乐列表 - to be continued

Chris 5 years ago
parent
commit
d1131a2326

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

@@ -471,8 +471,6 @@
 		BD108C9722A60C2100837DAB /* HGImagePickerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD108C9222A60C2100837DAB /* HGImagePickerController.swift */; };
 		BD108C9A22A60C3300837DAB /* HGImage.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BD108C9822A60C3200837DAB /* HGImage.xcassets */; };
 		BD108C9B22A60C3300837DAB /* HGImage.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BD108C9922A60C3300837DAB /* HGImage.storyboard */; };
-		BD10CD0822BFC1C20040796E /* PublishMusicItemCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD10CD0722BFC1C20040796E /* PublishMusicItemCell.swift */; };
-		BD10CD0A22BFC5E40040796E /* PublishMusicHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD10CD0922BFC5E40040796E /* PublishMusicHeader.swift */; };
 		BD10CD0C22BFCC7C0040796E /* PublishMusicView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD10CD0B22BFCC7C0040796E /* PublishMusicView.swift */; };
 		BD10FBFE22C6F7D90096A34E /* AliyunPublishService.m in Sources */ = {isa = PBXBuildFile; fileRef = BD10FBFB22C6F7D80096A34E /* AliyunPublishService.m */; };
 		BD10FBFF22C6F7D90096A34E /* AlivcShortVideoPublishManager.m in Sources */ = {isa = PBXBuildFile; fileRef = BD10FBFD22C6F7D90096A34E /* AlivcShortVideoPublishManager.m */; };
@@ -643,6 +641,8 @@
 		BDD54A2822C31D60005BBE19 /* LocalFilter.json in Resources */ = {isa = PBXBuildFile; fileRef = BDD54A2322C31D5F005BBE19 /* LocalFilter.json */; };
 		BDD54A2922C31D60005BBE19 /* LocalMV.json in Resources */ = {isa = PBXBuildFile; fileRef = BDD54A2422C31D5F005BBE19 /* LocalMV.json */; };
 		BDD54A2B22C31D78005BBE19 /* filter in Resources */ = {isa = PBXBuildFile; fileRef = BDD54A2A22C31D78005BBE19 /* filter */; };
+		BDD9377322DEF2E8002D11B3 /* PublishMusicListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDD9377222DEF2E8002D11B3 /* PublishMusicListView.swift */; };
+		BDD9377522DEF371002D11B3 /* PublishMusicListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDD9377422DEF371002D11B3 /* PublishMusicListCell.swift */; };
 		BDDF3B28228EBB72003A7D16 /* ProductRefundReasonModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDDF3B27228EBB72003A7D16 /* ProductRefundReasonModel.swift */; };
 		BDE3045D22851E4F001D050F /* ProductCartListModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDE3045C22851E4F001D050F /* ProductCartListModel.swift */; };
 		BDE3045F228554CA001D050F /* ProductCartAmountModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDE3045E228554CA001D050F /* ProductCartAmountModel.swift */; };
@@ -1189,8 +1189,6 @@
 		BD108C9222A60C2100837DAB /* HGImagePickerController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HGImagePickerController.swift; sourceTree = "<group>"; };
 		BD108C9822A60C3200837DAB /* HGImage.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = HGImage.xcassets; sourceTree = "<group>"; };
 		BD108C9922A60C3300837DAB /* HGImage.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = HGImage.storyboard; sourceTree = "<group>"; };
-		BD10CD0722BFC1C20040796E /* PublishMusicItemCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PublishMusicItemCell.swift; sourceTree = "<group>"; };
-		BD10CD0922BFC5E40040796E /* PublishMusicHeader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PublishMusicHeader.swift; sourceTree = "<group>"; };
 		BD10CD0B22BFCC7C0040796E /* PublishMusicView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PublishMusicView.swift; sourceTree = "<group>"; };
 		BD10FBFA22C6F7D70096A34E /* AlivcShortVideoPublishManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AlivcShortVideoPublishManager.h; sourceTree = "<group>"; };
 		BD10FBFB22C6F7D80096A34E /* AliyunPublishService.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AliyunPublishService.m; sourceTree = "<group>"; };
@@ -1421,6 +1419,8 @@
 		BDD54A2322C31D5F005BBE19 /* LocalFilter.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = LocalFilter.json; sourceTree = "<group>"; };
 		BDD54A2422C31D5F005BBE19 /* LocalMV.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = LocalMV.json; sourceTree = "<group>"; };
 		BDD54A2A22C31D78005BBE19 /* filter */ = {isa = PBXFileReference; lastKnownFileType = folder; path = filter; sourceTree = "<group>"; };
+		BDD9377222DEF2E8002D11B3 /* PublishMusicListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PublishMusicListView.swift; sourceTree = "<group>"; };
+		BDD9377422DEF371002D11B3 /* PublishMusicListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PublishMusicListCell.swift; sourceTree = "<group>"; };
 		BDDF3B27228EBB72003A7D16 /* ProductRefundReasonModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductRefundReasonModel.swift; sourceTree = "<group>"; };
 		BDE3045C22851E4F001D050F /* ProductCartListModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductCartListModel.swift; sourceTree = "<group>"; };
 		BDE3045E228554CA001D050F /* ProductCartAmountModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductCartAmountModel.swift; sourceTree = "<group>"; };
@@ -4529,8 +4529,6 @@
 				BD01B1FE22BC677900CE9F36 /* PublishFilterView.swift */,
 				BD4B50AD22BC815F0073B516 /* PublishFilterCollectionCell.swift */,
 				BD10CD0B22BFCC7C0040796E /* PublishMusicView.swift */,
-				BD10CD0922BFC5E40040796E /* PublishMusicHeader.swift */,
-				BD10CD0722BFC1C20040796E /* PublishMusicItemCell.swift */,
 			);
 			path = PublishTakeVideo;
 			sourceTree = "<group>";
@@ -5060,6 +5058,8 @@
 			isa = PBXGroup;
 			children = (
 				BDBC0AF122DDD7E800CA788E /* PublishMusicChooseView.swift */,
+				BDD9377222DEF2E8002D11B3 /* PublishMusicListView.swift */,
+				BDD9377422DEF371002D11B3 /* PublishMusicListCell.swift */,
 				BD5CA89122DD73A500364A67 /* PublishMusicVolumnView.swift */,
 				BDBC0AF522DDEA4E00CA788E /* PublishRecommendMusicController.swift */,
 			);
@@ -6007,6 +6007,7 @@
 				BDF7C5DB22D72405007F3B79 /* CommunityVideoSubCommentController.swift in Sources */,
 				A7F2D6C122B0D1CB0093000B /* CommunityFollowTableHeaderView.swift in Sources */,
 				A7C0FE0022B66E5A00BC1E86 /* CommunityFeaturedTopicsViewController.swift in Sources */,
+				BDD9377522DEF371002D11B3 /* PublishMusicListCell.swift in Sources */,
 				A7A98E12227ECA11005306E9 /* ProductSearchModel.swift in Sources */,
 				BD61225E22C3561C00D3F513 /* AlivcRecordFocusView.m in Sources */,
 				A71AF0B0226EF185001730FE /* SearchCollectionViewCell.swift in Sources */,
@@ -6160,6 +6161,7 @@
 				A7BF203122B47CC000396DB3 /* CardContentCommnetTableViewCell.swift in Sources */,
 				A7D07CDA22B7DFAE00186014 /* OtherPersonalCenterHeaderView.swift in Sources */,
 				A72A72AF22321DE000B21995 /* AppInfo.swift in Sources */,
+				BDD9377322DEF2E8002D11B3 /* PublishMusicListView.swift in Sources */,
 				BD6122D122C364E400D3F513 /* AliyunMusicPickTopView.m in Sources */,
 				A70B843422911AF600882BC5 /* ProductDetailView.swift in Sources */,
 				A72623D722C26A2A00AEF875 /* MessageListModel.swift in Sources */,
@@ -6285,7 +6287,6 @@
 				A7DF50E322A55AB600998908 /* BrowsePicturesPagerViewCell.swift in Sources */,
 				A77F2CC822320627001BD3F6 /* WRCustomNavigationBar.swift in Sources */,
 				A72623DB22C2FC3C00AEF875 /* MessageHomeTwoCollectionViewCell.swift in Sources */,
-				BD10CD0822BFC1C20040796E /* PublishMusicItemCell.swift in Sources */,
 				A7FF1564228C696B00A85748 /* OrderListView.swift in Sources */,
 				A70B2C072284305400B2449F /* ProductModel.swift in Sources */,
 				A72A72BC22321DE000B21995 /* Extension+UIAlertController.swift in Sources */,
@@ -6467,7 +6468,6 @@
 				BD13B6E422BA0546008BB323 /* PublishAddressPOICell.swift in Sources */,
 				BDE376E922C22D4E0055E2EA /* AlivcUIConfig.m in Sources */,
 				A7C2567C22CD8EEE00420828 /* CommunityPostCommentsModel.swift in Sources */,
-				BD10CD0A22BFC5E40040796E /* PublishMusicHeader.swift in Sources */,
 				A7541502224C5ECB002480B5 /* BaiduMapManager.swift in Sources */,
 				A773D02F229FDC3B007A5751 /* DIYEmptyView.swift in Sources */,
 				BD6122B022C3638300D3F513 /* AliyunEffectInfo.m in Sources */,

+ 1 - 1
RainbowPlanet/RainbowPlanet/Model/CommunityModel/CommunityRecommendMusicListModel.swift

@@ -9,7 +9,7 @@
 import Foundation
 import ObjectMapper
 
-// 热门推荐ModelList
+// 推荐&&分类のModelList
 class CommunityRecommendMusicListModel : NSObject, Mappable{
     
     var data : [CommunityMusicItemModel]?

+ 54 - 31
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishTakeVideo/PublishMusicItemCell.swift

@@ -1,25 +1,32 @@
 //
-//  PublishMusicItemCell.swift
+//  PublishMusicListCell.swift
 //  RainbowPlanet
 //
-//  Created by Christopher on 2019/6/23.
+//  Created by Christopher on 2019/7/17.
 //  Copyright © 2019 RainbowPlanet. All rights reserved.
 //
 
+
 import UIKit
 import RxSwift
 
-class PublishMusicItemCell: UITableViewCell {
+class PublishMusicListCell: UITableViewCell {
+    
+    var musicItemMdl: CommunityMusicItemModel? {
+        didSet {
+            titleLabel.text = self.musicItemMdl?.name
+        }
+    }
     
     let disposeBag = DisposeBag()
     
     typealias BtnClickClosure = () -> Void
     var btnClickClosure : BtnClickClosure?
     
-    class func cellWith(tableView:UITableView,indexPath:IndexPath) -> PublishMusicItemCell {
-        let ID = "PublishMusicItemCell"
-        tableView.register(PublishMusicItemCell.self, forCellReuseIdentifier: ID)
-        let cell : PublishMusicItemCell = tableView.dequeueReusableCell(withIdentifier: ID, for: indexPath) as! PublishMusicItemCell
+    class func cellWith(tableView:UITableView,indexPath:IndexPath) -> PublishMusicListCell {
+        let ID = "PublishMusicListCell"
+        tableView.register(PublishMusicListCell.self, forCellReuseIdentifier: ID)
+        let cell : PublishMusicListCell = tableView.dequeueReusableCell(withIdentifier: ID, for: indexPath) as! PublishMusicListCell
         cell.indexPath = indexPath
         return cell
     }
@@ -43,37 +50,47 @@ class PublishMusicItemCell: UITableViewCell {
     //MRAK: - 设置View
     private func setupViews() {
         self.selectionStyle = .none
-        backgroundColor = UIColor.clear
+        backgroundColor = kffffffColor
         
-        addSubview(playImageView)
+        addSubview(iconImageView)
         addSubview(titleLabel)
+        addSubview(curPlayImageView)
         addSubview(useButton)
     }
     
     private func setupLayouts() {
-        playImageView.snp.makeConstraints { (make) in
-            make.centerY.equalToSuperview()
+        iconImageView.snp.makeConstraints { (make) in
             make.left.equalTo(14)
+            make.centerY.equalToSuperview()
             make.size.equalTo(18)
         }
-        useButton.snp.makeConstraints { (make) in
+        
+        titleLabel.snp.makeConstraints { (make) in
+            make.left.equalTo(iconImageView.snp_right).offset(8)
+            make.centerY.equalToSuperview()
+            make.height.equalTo(20)
+            make.right.equalTo(-86)
+        }
+        
+        curPlayImageView.snp.makeConstraints { (make) in
+            make.right.equalTo(-37)
             make.centerY.equalToSuperview()
+            make.size.equalTo(18)
+        }
+        
+        useButton.snp.makeConstraints { (make) in
             make.right.equalTo(-14)
+            make.centerY.equalToSuperview()
             make.width.equalTo(64)
             make.height.equalTo(26)
         }
-        titleLabel.snp.makeConstraints { (make) in
-            make.left.equalTo(playImageView.snp_right).offset(8)
-            make.right.equalTo(useButton.snp_left).offset(-10)
-            make.centerY.equalTo(playImageView)
-            make.height.equalTo(20)
-        }
+        
     }
     
-    lazy var playImageView : UIImageView = {
-        let playImageView = UIImageView()
-        playImageView.image = kImage(name: "music_btn_play")
-        return playImageView
+    private lazy var iconImageView: UIImageView = {
+        let iconImageView = UIImageView()
+        iconImageView.image = kImage(name: "music_btn_play")
+        return iconImageView
     }()
     
     private lazy var titleLabel: UILabel = {
@@ -85,20 +102,26 @@ class PublishMusicItemCell: UITableViewCell {
         return titleLabel
     }()
     
+    private lazy var curPlayImageView: UIImageView = {
+        let curPlayImageView = UIImageView()
+        curPlayImageView.image = kImage(name: "music_ico_selected")
+        return curPlayImageView
+        //        music_btn_pause
+    }()
+    
     private lazy var useButton: UIButton = {
         let useButton = UIButton(type: UIButton.ButtonType.custom)
         useButton.setTitle("使用", for: UIControl.State.normal)
-        useButton.setTitleColor(kffffffColor, for: UIControl.State.normal)
-        useButton.backgroundColor = k62CC74Color
-        useButton.titleLabel?.font = kMediumFont13
-        useButton.cornerRadius = 16
-        useButton.masksToBounds = true
-        useButton.rx.tap.subscribe(onNext: { [weak self] (data) in
-            if let btnClickClosure = self?.btnClickClosure {
-                btnClickClosure()
-            }
+        useButton.titleLabel?.font = kRegularFont13
+        useButton.setBackgroundImage(UIImage.imageWithColor(color: k62CC74Color), for: UIControl.State.normal)
+        useButton.setTitleColor(kEnabledTitleColor, for: UIControl.State.normal)
+        useButton.layer.cornerRadius = kScaleValue(value: 13)
+        useButton.layer.masksToBounds = true
+        useButton.rx.tap.subscribe(onNext: { [weak self] in
+            print("----点击了-使用")
         }).disposed(by: disposeBag)
         return useButton
     }()
     
 }
+

+ 123 - 0
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishMusicAbout/PublishMusicListView.swift

@@ -0,0 +1,123 @@
+//
+//  PublishMusicListView.swift
+//  RainbowPlanet
+//
+//  Created by Christopher on 2019/7/17.
+//  Copyright © 2019 RainbowPlanet. All rights reserved.
+//
+
+import UIKit
+
+class PublishMusicListView: BaseView {
+    
+    var listViewDidScrollCallback: ((UIScrollView) -> ())?
+    deinit {
+        listViewDidScrollCallback = nil
+    }
+    
+    var categoryItemMdl : MusicCategoryItemModel? {
+        didSet {
+            
+        }
+    }
+            
+    var musicItemMdlArr : Array<CommunityMusicItemModel>?
+    
+//    /// 获取首页数据
+//    func cmsTemplateSetPreviewApi() {
+//        SwiftMoyaNetWorkServiceCMS.shared().cmsTemplateSetPreviewApi(type: shoppingMallListVCType) {
+//            [weak self] (cmsModel) -> (Void) in
+//            let cmsModel = cmsModel as! CMSModel
+//            self?.cmsSectionModels = cmsModel.content
+//            self?.tableView.reloadData()
+//
+//        }
+//    }
+    
+    
+    
+    override func setupViews() {
+        addSubview(tableView)
+        let emptyView = DIYEmptyView.empty(with: kImage(name: "default_page_data"), titleStr: nil, detailStr: "当前暂无数据")
+        emptyView!.contentViewY = kScaleValue(value: 182)
+        tableView.ly_emptyView = emptyView
+        tableView.ly_startLoading()
+    }
+    
+    override func setupLayouts() {
+        tableView.snp.makeConstraints { (make) in
+            make.edges.equalToSuperview()
+        }
+    }
+    
+    lazy var tableView: UITableView = {
+        let tableView = UITableView(frame: CGRect.zero, style: UITableView.Style.grouped)
+        tableView.separatorStyle = .none
+        tableView.backgroundColor = UIColor.black
+        tableView.dataSource = self
+        tableView.delegate = self
+        tableView.estimatedRowHeight = 0.000001
+        tableView.estimatedSectionFooterHeight = 0.000001
+        tableView.estimatedSectionHeaderHeight = 0.000001
+        return tableView
+    }()
+    
+}
+
+extension PublishMusicListView : UITableViewDelegate, UITableViewDataSource {
+    func numberOfSections(in tableView: UITableView) -> Int {
+        return 1
+    }
+    
+    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
+//        return cmsSectionModels?.isEmpty ?? true ? 0 : (cmsSectionModels?.count)!
+        return 5
+    }
+    
+    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
+        
+//        let cmsSectionModel = cmsSectionModels?[indexPath.section]
+        
+        let cell = PublishMusicListCell.cellWith(tableView: tableView, indexPath: indexPath)
+//        cell.musicItemMdl =
+        return cell
+    }
+    
+    func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
+        return 50
+    }
+    
+    func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
+        return 0
+    }
+    
+    func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
+        return nil
+    }
+    
+    func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
+        return 0.000001
+    }
+    func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
+        return nil
+    }
+    
+    public func scrollViewDidScroll(_ scrollView: UIScrollView) {
+        self.listViewDidScrollCallback?(scrollView)
+    }
+    
+}
+
+extension PublishMusicListView: JXPagingViewListViewDelegate {
+    public func listView() -> UIView {
+        return self
+    }
+    
+    public func listViewDidScrollCallback(callback: @escaping (UIScrollView) -> ()) {
+        self.listViewDidScrollCallback = callback
+    }
+    
+    public func listScrollView() -> UIScrollView {
+        return self.tableView
+    }
+}

+ 0 - 59
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishTakeVideo/PublishMusicHeader.swift

@@ -1,59 +0,0 @@
-//
-//  PublishMusicHeader.swift
-//  RainbowPlanet
-//
-//  Created by Christopher on 2019/6/23.
-//  Copyright © 2019 RainbowPlanet. All rights reserved.
-//
-
-import UIKit
-import RxSwift
-
-class PublishMusicHeader: BaseView {
-    
-    typealias DismissClosure = () -> Void
-    var dismissClosure : DismissClosure?
-    
-    override func setupViews() {
-        self.backgroundColor = UIColor.clear
-        
-        addSubview(titleLabel)
-        addSubview(dismissBtn)
-    }
-    
-    override func setupLayouts() {
-        
-        titleLabel.snp.makeConstraints { (make) in
-            make.center.equalToSuperview()
-            make.width.equalTo(64)
-            make.height.equalTo(23)
-        }
-        
-        dismissBtn.snp.makeConstraints { (make) in
-            make.left.equalTo(9)
-            make.centerY.equalToSuperview()
-            make.size.equalTo(32)
-        }
-    }
-    
-    private lazy var titleLabel: UILabel = {
-        let titleLabel = UILabel()
-        titleLabel.text = "推荐音乐"
-        titleLabel.textColor = kffffffColor
-        titleLabel.font = kRegularFont16
-        titleLabel.textAlignment = .center
-        return titleLabel
-    }()
-    
-    private lazy var dismissBtn: UIButton = {
-        let dismissBtn = UIButton(type: UIButton.ButtonType.custom)
-        dismissBtn.setImage(kImage(name: "video_btn_close_white"), for: UIControl.State.normal)
-        dismissBtn.rx.tap.subscribe(onNext: { [weak self] (data) in
-            if let dismissClosure = self?.dismissClosure {
-                dismissClosure()
-            }
-        }).disposed(by: disposeBag)
-        return dismissBtn
-    }()
-    
-}

+ 2 - 21
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishTakeVideo/PublishMusicView.swift

@@ -22,34 +22,16 @@ class PublishMusicView: BaseView {
         blurEffectView.frame = CGRect(x: CGFloat(0), y: kNavBarTotalHeight, width: kScreenWidth, height: kScreenHeight-kNavBarTotalHeight)
         addSubview(blurEffectView)
         
-        addSubview(headerView)
         addSubview(tableView)
     }
     
     override func setupLayouts() {
-        headerView.snp.makeConstraints { (make) in
-            make.top.equalToSuperview().offset(kNavBarTotalHeight)
-            make.left.right.equalTo(0)
-            make.height.equalTo(48)
-        }
         tableView.snp.makeConstraints { (make) in
-            make.top.equalTo(headerView.snp_bottom)
+            make.top.equalToSuperview()
             make.left.right.bottom.equalTo(0)
         }
     }
     
-    lazy var headerView: PublishMusicHeader = {
-        let headerView = PublishMusicHeader()
-        headerView.backgroundColor = UIColor.clear
-        headerView.dismissClosure = {
-            [weak self] in
-            if let dismissViewClosure = self?.dismissViewClosure {
-                dismissViewClosure()
-            }
-        }
-        return headerView
-    }()
-    
     lazy var tableView: UITableView = {
         let tableView = UITableView(frame: CGRect.zero, style: UITableView.Style.grouped)
         tableView.separatorStyle = .none
@@ -69,8 +51,7 @@ extension PublishMusicView: UITableViewDataSource, UITableViewDelegate {
     }
     
     func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
-        let cell = PublishMusicItemCell.cellWith(tableView: tableView, indexPath: indexPath)
-        return cell
+        return UITableViewCell()
     }
     
     func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {

+ 22 - 0
RainbowPlanet/RainbowPlanet/Supporting Files/PublishModule.xcassets/music_btn_loading.imageset/Contents.json

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

BIN
RainbowPlanet/RainbowPlanet/Supporting Files/PublishModule.xcassets/music_btn_loading.imageset/music_btn_loading@2x.png


BIN
RainbowPlanet/RainbowPlanet/Supporting Files/PublishModule.xcassets/music_btn_loading.imageset/music_btn_loading@3x.png


+ 22 - 0
RainbowPlanet/RainbowPlanet/Supporting Files/PublishModule.xcassets/music_ico_selected.imageset/Contents.json

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

BIN
RainbowPlanet/RainbowPlanet/Supporting Files/PublishModule.xcassets/music_ico_selected.imageset/music_ico_selected@2x.png


BIN
RainbowPlanet/RainbowPlanet/Supporting Files/PublishModule.xcassets/music_ico_selected.imageset/music_ico_selected@3x.png