Bladeren bron

删除了无用的类

南鑫林 6 jaren geleden
bovenliggende
commit
c26f8ae88c

BIN
.DS_Store


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

@@ -160,13 +160,10 @@
 		A73911B0229E4D970033177E /* PGYManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A73911AF229E4D970033177E /* PGYManager.swift */; };
 		A73911B3229ECE340033177E /* UICollectionViewLeftAlignedLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = A73911B1229ECE340033177E /* UICollectionViewLeftAlignedLayout.m */; };
 		A73911B6229EDAC80033177E /* ListTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = A73911B5229EDAC80033177E /* ListTransform.swift */; };
-		A7391218229F75F50033177E /* PagingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7391210229F75F50033177E /* PagingViewController.swift */; };
-		A7391219229F75F50033177E /* PagingListBaseView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7391211229F75F50033177E /* PagingListBaseView.swift */; };
 		A739121A229F75F50033177E /* JXPagingMainTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7391213229F75F50033177E /* JXPagingMainTableView.swift */; };
 		A739121B229F75F50033177E /* JXPagingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7391214229F75F50033177E /* JXPagingView.swift */; };
 		A739121C229F75F50033177E /* JXPagingListRefreshView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7391215229F75F50033177E /* JXPagingListRefreshView.swift */; };
 		A739121D229F75F50033177E /* JXPagingListContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7391216229F75F50033177E /* JXPagingListContainerView.swift */; };
-		A739121E229F75F50033177E /* PagingViewTableHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7391217229F75F50033177E /* PagingViewTableHeaderView.swift */; };
 		A73D7C682268A032002A4CE3 /* SwiftyStarRatingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A73D7C672268A032002A4CE3 /* SwiftyStarRatingView.swift */; };
 		A75414FD224B5F28002480B5 /* MobileLoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A75414FB224B5F28002480B5 /* MobileLoginViewController.swift */; };
 		A7541502224C5ECB002480B5 /* BaiduMapManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7541501224C5ECA002480B5 /* BaiduMapManager.swift */; };
@@ -557,13 +554,10 @@
 		A73911B1229ECE340033177E /* UICollectionViewLeftAlignedLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UICollectionViewLeftAlignedLayout.m; sourceTree = "<group>"; };
 		A73911B2229ECE340033177E /* UICollectionViewLeftAlignedLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UICollectionViewLeftAlignedLayout.h; sourceTree = "<group>"; };
 		A73911B5229EDAC80033177E /* ListTransform.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListTransform.swift; sourceTree = "<group>"; };
-		A7391210229F75F50033177E /* PagingViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PagingViewController.swift; sourceTree = "<group>"; };
-		A7391211229F75F50033177E /* PagingListBaseView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PagingListBaseView.swift; sourceTree = "<group>"; };
 		A7391213229F75F50033177E /* JXPagingMainTableView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JXPagingMainTableView.swift; sourceTree = "<group>"; };
 		A7391214229F75F50033177E /* JXPagingView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JXPagingView.swift; sourceTree = "<group>"; };
 		A7391215229F75F50033177E /* JXPagingListRefreshView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JXPagingListRefreshView.swift; sourceTree = "<group>"; };
 		A7391216229F75F50033177E /* JXPagingListContainerView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JXPagingListContainerView.swift; sourceTree = "<group>"; };
-		A7391217229F75F50033177E /* PagingViewTableHeaderView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PagingViewTableHeaderView.swift; sourceTree = "<group>"; };
 		A73D7C672268A032002A4CE3 /* SwiftyStarRatingView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftyStarRatingView.swift; sourceTree = "<group>"; };
 		A75414FB224B5F28002480B5 /* MobileLoginViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MobileLoginViewController.swift; sourceTree = "<group>"; };
 		A7541501224C5ECA002480B5 /* BaiduMapManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BaiduMapManager.swift; sourceTree = "<group>"; };
@@ -1755,16 +1749,6 @@
 			path = ListTransform;
 			sourceTree = "<group>";
 		};
-		A739120F229F75F50033177E /* Personal */ = {
-			isa = PBXGroup;
-			children = (
-				A7391210229F75F50033177E /* PagingViewController.swift */,
-				A7391211229F75F50033177E /* PagingListBaseView.swift */,
-				A7391217229F75F50033177E /* PagingViewTableHeaderView.swift */,
-			);
-			path = Personal;
-			sourceTree = "<group>";
-		};
 		A7391212229F75F50033177E /* JXPagingView-Swift */ = {
 			isa = PBXGroup;
 			children = (
@@ -2110,7 +2094,6 @@
 		A77F2CA32232010F001BD3F6 /* ShoppingMallModule */ = {
 			isa = PBXGroup;
 			children = (
-				A739120F229F75F50033177E /* Personal */,
 				A77F2CA42232010F001BD3F6 /* ShoppingMall */,
 				A7FF1550228AC22700A85748 /* ProductAllComment */,
 				A70B2C122286B14C00B2449F /* ProductView */,
@@ -3429,7 +3412,6 @@
 				A7B4E738228191CC0012914A /* CommondModel.swift in Sources */,
 				BD7AB841228438C80030646A /* OrderPaySelfPickAddressCell.swift in Sources */,
 				BDF862AC228E5112000DEF84 /* OrderCommentAddImgCollectionCell.swift in Sources */,
-				A7391219229F75F50033177E /* PagingListBaseView.swift in Sources */,
 				A7CC74D4226FF1AA003C4F38 /* MineView.swift in Sources */,
 				A71AA5152272160A008FF1A5 /* ExpressAddressListTableViewCell.swift in Sources */,
 				A72A72B722321DE000B21995 /* Extension+NSMutableAttributedString.swift in Sources */,
@@ -3595,7 +3577,6 @@
 				A71738AB22898660000AEA6A /* ShopModel.swift in Sources */,
 				A7FF1557228AC3E800A85748 /* ProductAllCommentViewController.swift in Sources */,
 				A7A98E02227E8900005306E9 /* ProductSearchListModel.swift in Sources */,
-				A739121E229F75F50033177E /* PagingViewTableHeaderView.swift in Sources */,
 				A7A98E17227EED76005306E9 /* SpecialViewController.swift in Sources */,
 				A7778CB32244D73400C7C47A /* RegisterLoginViewController.swift in Sources */,
 				BD7AB8432284390B0030646A /* OrderPaySelfPickInfoCell.swift in Sources */,
@@ -3665,7 +3646,6 @@
 				A7A98E1B227EEE49005306E9 /* SpecialView.swift in Sources */,
 				BDF47D7A228271F600941AB9 /* ShoppingCartView.swift in Sources */,
 				A7824AFB2271EA2600ABA381 /* SelfMentionContactsListView.swift in Sources */,
-				A7391218229F75F50033177E /* PagingViewController.swift in Sources */,
 				A72A72AB22321DE000B21995 /* SwiftProgressHUD.swift in Sources */,
 				BDF862B1228E6690000DEF84 /* OrderApplyRefundProductCell.swift in Sources */,
 				A7CC751C22716426003C4F38 /* SetLogoutTableViewCell.swift in Sources */,

+ 0 - 87
RainbowPlanet/RainbowPlanet/Modules/ShoppingMallModule/Personal/PagingListBaseView.swift

@@ -1,87 +0,0 @@
-//
-//  PagingListBaseView.swift
-//  JXPagingView
-//
-//  Created by jiaxin on 2018/5/28.
-//  Copyright © 2018年 jiaxin. All rights reserved.
-//
-
-import UIKit
-
-@objc public class PagingListBaseView: UIView {
-    @objc public var tableView: UITableView!
-    @objc public var dataSource: [String]?
-    var listViewDidScrollCallback: ((UIScrollView) -> ())?
-    private var isHeaderRefreshed: Bool = false
-    deinit {
-        listViewDidScrollCallback = nil
-    }
-
-    override init(frame: CGRect) {
-        super.init(frame: frame)
-
-        tableView = UITableView(frame: frame, style: .plain)
-        tableView.backgroundColor = UIColor.white
-        tableView.tableFooterView = UIView()
-        tableView.dataSource = self
-        tableView.delegate = self
-        tableView.register(UITableViewCell.classForCoder(), forCellReuseIdentifier: "cell")
-        addSubview(tableView)
-    }
-
-    func beginFirstRefresh() {
-        if !isHeaderRefreshed {
-            self.isHeaderRefreshed = true
-            self.tableView.reloadData()
-        }
-    }
-
-
-    required public init?(coder aDecoder: NSCoder) {
-        fatalError("init(coder:) has not been implemented")
-    }
-
-    override public func layoutSubviews() {
-        super.layoutSubviews()
-
-        tableView.frame = self.bounds
-    }
-
-}
-
-extension PagingListBaseView: UITableViewDataSource, UITableViewDelegate {
-    public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
-        if isHeaderRefreshed {
-            return dataSource?.count ?? 0
-        }
-        return 0
-    }
-
-    public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
-        let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
-        cell.textLabel?.text = dataSource?[indexPath.row]
-        return cell
-    }
-
-    public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
-        return 50
-    }
-
-    public func scrollViewDidScroll(_ scrollView: UIScrollView) {
-        self.listViewDidScrollCallback?(scrollView)
-    }
-}
-
-extension PagingListBaseView: JXPagingViewListViewDelegate {
-    public func listView() -> UIView {
-        return self
-    }
-    
-    public func listViewDidScrollCallback(callback: @escaping (UIScrollView) -> ()) {
-        self.listViewDidScrollCallback = callback
-    }
-
-    public func listScrollView() -> UIScrollView {
-        return self.tableView
-    }
-}

+ 0 - 118
RainbowPlanet/RainbowPlanet/Modules/ShoppingMallModule/Personal/PagingViewController.swift

@@ -1,118 +0,0 @@
-//
-//  PagingViewController.swift
-//  JXPagingView
-//
-//  Created by jiaxin on 2018/8/10.
-//  Copyright © 2018年 jiaxin. All rights reserved.
-//
-
-import UIKit
-import JXSegmentedView
-
-class PagingViewController: UIViewController {
-    var pagingView: JXPagingView!
-    var userHeaderView: PagingViewTableHeaderView!
-    var userHeaderContainerView: UIView!
-    var segmentedViewDataSource: JXSegmentedTitleDataSource!
-    var segmentedView: JXSegmentedView!
-    var titles = ["能力", "爱好", "队友"]
-    var JXTableHeaderViewHeight: Int = 0
-    var JXheightForHeaderInSection: Int = 50
-
-    override func viewDidLoad() {
-        super.viewDidLoad()
-
-        self.title = "个人中心"
-        self.navigationController?.navigationBar.isTranslucent = false
-
-        userHeaderContainerView = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.size.width, height: CGFloat(JXTableHeaderViewHeight)))
-        userHeaderView = PagingViewTableHeaderView(frame: userHeaderContainerView.bounds)
-        userHeaderContainerView.addSubview(userHeaderView)
-
-        //segmentedViewDataSource一定要通过属性强持有!!!!!!!!!
-        segmentedViewDataSource = JXSegmentedTitleDataSource()
-        segmentedViewDataSource.titles = titles
-        segmentedViewDataSource.titleSelectedColor = UIColor(red: 105/255, green: 144/255, blue: 239/255, alpha: 1)
-        segmentedViewDataSource.titleNormalColor = UIColor.black
-        segmentedViewDataSource.isTitleColorGradientEnabled = true
-        segmentedViewDataSource.isTitleZoomEnabled = true
-        segmentedViewDataSource.reloadData(selectedIndex: 0)
-
-        segmentedView = JXSegmentedView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.size.width, height: CGFloat(JXheightForHeaderInSection)))
-        segmentedView.backgroundColor = UIColor.white
-        segmentedView.dataSource = segmentedViewDataSource
-        segmentedView.isContentScrollViewClickTransitionAnimationEnabled = false
-
-        let lineView = JXSegmentedIndicatorLineView()
-        lineView.indicatorColor = UIColor(red: 105/255, green: 144/255, blue: 239/255, alpha: 1)
-        lineView.indicatorWidth = 30
-        segmentedView.indicators = [lineView]
-
-        let lineWidth = 1/UIScreen.main.scale
-        let lineLayer = CALayer()
-        lineLayer.backgroundColor = UIColor.lightGray.cgColor
-        lineLayer.frame = CGRect(x: 0, y: segmentedView.bounds.height - lineWidth, width: segmentedView.bounds.width, height: lineWidth)
-        segmentedView.layer.addSublayer(lineLayer)
-
-        pagingView = JXPagingView(delegate: self)
-        pagingView.mainTableView.addHeaderWithHeader(withBeginRefresh: true, animation: false) { (page) in
-            self.segmentedViewDataSource.reloadData(selectedIndex: 1)
-            
-            self.segmentedView.defaultSelectedIndex = 1
-            self.segmentedView.reloadData()
-    
-            self.pagingView.listContainerView.reloadData()
-            self.pagingView.reloadData()
-        }
-
-        self.view.addSubview(pagingView)        
-        segmentedView.contentScrollView = pagingView.listContainerView.collectionView
-    }
-
-    override func viewDidLayoutSubviews() {
-        super.viewDidLayoutSubviews()
-
-        pagingView.frame = self.view.bounds
-    }
-}
-
-extension PagingViewController: JXPagingViewDelegate {
-
-    func tableHeaderViewHeight(in pagingView: JXPagingView) -> Int {
-        return JXTableHeaderViewHeight
-    }
-
-    func tableHeaderView(in pagingView: JXPagingView) -> UIView {
-        return userHeaderContainerView
-    }
-
-    func heightForPinSectionHeader(in pagingView: JXPagingView) -> Int {
-        return JXheightForHeaderInSection
-    }
-
-    func viewForPinSectionHeader(in pagingView: JXPagingView) -> UIView {
-        return segmentedView
-    }
-
-    func numberOfLists(in pagingView: JXPagingView) -> Int {
-        return titles.count
-    }
-
-    func pagingView(_ pagingView: JXPagingView, initListAtIndex index: Int) -> JXPagingViewListViewDelegate {
-        let list = PagingListBaseView()
-        if index == 0 {
-            list.dataSource = ["橡胶火箭", "橡胶火箭炮", "橡胶机关枪", "橡胶子弹", "橡胶攻城炮", "橡胶象枪", "橡胶象枪乱打", "橡胶灰熊铳", "橡胶雷神象枪", "橡胶猿王枪", "橡胶犀·榴弹炮", "橡胶大蛇炮", "橡胶火箭", "橡胶火箭炮", "橡胶机关枪", "橡胶子弹", "橡胶攻城炮", "橡胶象枪", "橡胶象枪乱打", "橡胶灰熊铳", "橡胶雷神象枪", "橡胶猿王枪", "橡胶犀·榴弹炮", "橡胶大蛇炮"]
-        }else if index == 1 {
-            list.dataSource = ["吃烤肉", "吃鸡腿肉", "吃牛肉", "各种肉"]
-        }else {
-            list.dataSource = ["【剑士】罗罗诺亚·索隆", "【航海士】娜美", "【狙击手】乌索普", "【厨师】香吉士", "【船医】托尼托尼·乔巴", "【船匠】 弗兰奇", "【音乐家】布鲁克", "【考古学家】妮可·罗宾"]
-        }
-        list.beginFirstRefresh()
-        return list
-    }
-
-//    func mainTableViewDidScroll(_ scrollView: UIScrollView) {
-//        userHeaderView?.scrollViewDidScroll(contentOffsetY: scrollView.contentOffset.y)
-//    }
-}
-

+ 0 - 45
RainbowPlanet/RainbowPlanet/Modules/ShoppingMallModule/Personal/PagingViewTableHeaderView.swift

@@ -1,45 +0,0 @@
-//
-//  PagingViewTableHeaderView.swift
-//  JXPagingView
-//
-//  Created by jiaxin on 2018/5/28.
-//  Copyright © 2018年 jiaxin. All rights reserved.
-//
-
-import UIKit
-
-class PagingViewTableHeaderView: UIView {
-    var imageView: UIImageView!
-    var imageViewFrame: CGRect!
-
-    override init(frame: CGRect) {
-        super.init(frame: frame)
-
-        imageView = UIImageView(image: UIImage(named: "lufei.jpg"))
-        imageView.clipsToBounds = true
-        imageView.contentMode = .scaleAspectFill
-        imageView.frame = CGRect(x: 0, y: 0, width: frame.size.width, height: frame.size.height)
-        self.addSubview(imageView)
-
-        imageViewFrame = imageView.frame
-
-//        let label = UILabel(frame: CGRect(x: 10, y: frame.size.height - 30, width: 200, height: 30))
-//        label.font = UIFont.systemFont(ofSize: 20)
-//        label.text = "Monkey·D·路飞"
-//        label.textColor = UIColor.red
-//        label.autoresizingMask = AutoresizingMask(rawValue: AutoresizingMask.flexibleRightMargin.rawValue | AutoresizingMask.flexibleTopMargin.rawValue)
-//        self.addSubview(label)
-    }
-
-    func scrollViewDidScroll(contentOffsetY: CGFloat) {
-        var frame = imageViewFrame!
-        frame.size.height -= contentOffsetY
-        frame.origin.y = contentOffsetY
-        imageView.frame = frame
-    }
-
-    required init?(coder aDecoder: NSCoder) {
-        fatalError("init(coder:) has not been implemented")
-    }
-
-}