Prechádzať zdrojové kódy

移除个人消息相关无用代码文件

culturetown 1 deň pred
rodič
commit
af596907e3

+ 0 - 32
Koala/Koala.xcodeproj/project.pbxproj

@@ -754,11 +754,7 @@
 		6C4AFB2929A2723B00508EA7 /* AssetsHistoryViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C4AFB2829A2723B00508EA7 /* AssetsHistoryViewModel.swift */; };
 		6C4AFB2B29A273F800508EA7 /* AssetsHistoryHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C4AFB2A29A273F800508EA7 /* AssetsHistoryHeaderView.swift */; };
 		6C4AFB2D29A2744200508EA7 /* AssetsHistoryHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6C4AFB2C29A2744200508EA7 /* AssetsHistoryHeaderView.xib */; };
-		6C4AFB3029A7B57B00508EA7 /* MessageViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C4AFB2F29A7B57B00508EA7 /* MessageViewController.swift */; };
 		6C4AFB3229A7B5AA00508EA7 /* MessageViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C4AFB3129A7B5AA00508EA7 /* MessageViewModel.swift */; };
-		6C4AFB3529A7B5D700508EA7 /* MessageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C4AFB3429A7B5D700508EA7 /* MessageView.swift */; };
-		6C4AFB3729A7B8B600508EA7 /* MessageHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C4AFB3629A7B8B600508EA7 /* MessageHeaderView.swift */; };
-		6C4AFB3929A7B8D400508EA7 /* MessageHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6C4AFB3829A7B8D400508EA7 /* MessageHeaderView.xib */; };
 		6C4AFB3B29A7C4A400508EA7 /* MineModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C4AFB3A29A7C4A400508EA7 /* MineModels.swift */; };
 		6C4AFB3E29A7CB2C00508EA7 /* MessageCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C4AFB3C29A7CB2C00508EA7 /* MessageCell.swift */; };
 		6C4AFB3F29A7CB2C00508EA7 /* MessageCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6C4AFB3D29A7CB2C00508EA7 /* MessageCell.xib */; };
@@ -1062,8 +1058,6 @@
 		6CD5EB7329D864240053325F /* GuideViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CD5EB7129D864240053325F /* GuideViewCell.swift */; };
 		6CD5EB7429D864240053325F /* GuideViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6CD5EB7229D864240053325F /* GuideViewCell.xib */; };
 		6CD5EB7629D9BBDB0053325F /* JDLanguageSelectAlert.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CD5EB7529D9BBDB0053325F /* JDLanguageSelectAlert.swift */; };
-		6CD5EB7F29D9DDA20053325F /* CommunityHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CD5EB7E29D9DDA20053325F /* CommunityHeaderView.swift */; };
-		6CD5EB8129D9DE870053325F /* CommunityHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6CD5EB8029D9DE870053325F /* CommunityHeaderView.xib */; };
 		6CD6DF8324372EDB0025AF78 /* LaunchScreenVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CD6DF8224372EDB0025AF78 /* LaunchScreenVC.swift */; };
 		6CD6DF88243C29950025AF78 /* TTimer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CD6DF87243C29950025AF78 /* TTimer.swift */; };
 		6CDC5AEF29CC9C7600E60730 /* AFiatDepositsPayWayPopView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CDC5AEE29CC9C7600E60730 /* AFiatDepositsPayWayPopView.swift */; };
@@ -1945,11 +1939,7 @@
 		6C4AFB2829A2723B00508EA7 /* AssetsHistoryViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AssetsHistoryViewModel.swift; sourceTree = "<group>"; };
 		6C4AFB2A29A273F800508EA7 /* AssetsHistoryHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AssetsHistoryHeaderView.swift; sourceTree = "<group>"; };
 		6C4AFB2C29A2744200508EA7 /* AssetsHistoryHeaderView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AssetsHistoryHeaderView.xib; sourceTree = "<group>"; };
-		6C4AFB2F29A7B57B00508EA7 /* MessageViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageViewController.swift; sourceTree = "<group>"; };
 		6C4AFB3129A7B5AA00508EA7 /* MessageViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageViewModel.swift; sourceTree = "<group>"; };
-		6C4AFB3429A7B5D700508EA7 /* MessageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageView.swift; sourceTree = "<group>"; };
-		6C4AFB3629A7B8B600508EA7 /* MessageHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageHeaderView.swift; sourceTree = "<group>"; };
-		6C4AFB3829A7B8D400508EA7 /* MessageHeaderView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MessageHeaderView.xib; sourceTree = "<group>"; };
 		6C4AFB3A29A7C4A400508EA7 /* MineModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MineModels.swift; sourceTree = "<group>"; };
 		6C4AFB3C29A7CB2C00508EA7 /* MessageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageCell.swift; sourceTree = "<group>"; };
 		6C4AFB3D29A7CB2C00508EA7 /* MessageCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MessageCell.xib; sourceTree = "<group>"; };
@@ -2254,8 +2244,6 @@
 		6CD5EB7129D864240053325F /* GuideViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GuideViewCell.swift; sourceTree = "<group>"; };
 		6CD5EB7229D864240053325F /* GuideViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GuideViewCell.xib; sourceTree = "<group>"; };
 		6CD5EB7529D9BBDB0053325F /* JDLanguageSelectAlert.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JDLanguageSelectAlert.swift; sourceTree = "<group>"; };
-		6CD5EB7E29D9DDA20053325F /* CommunityHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommunityHeaderView.swift; sourceTree = "<group>"; };
-		6CD5EB8029D9DE870053325F /* CommunityHeaderView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CommunityHeaderView.xib; sourceTree = "<group>"; };
 		6CD6DF8224372EDB0025AF78 /* LaunchScreenVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LaunchScreenVC.swift; sourceTree = "<group>"; };
 		6CD6DF87243C29950025AF78 /* TTimer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TTimer.swift; sourceTree = "<group>"; };
 		6CDC5AEE29CC9C7600E60730 /* AFiatDepositsPayWayPopView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AFiatDepositsPayWayPopView.swift; sourceTree = "<group>"; };
@@ -3690,7 +3678,6 @@
 				6C031B172962C4950043BECF /* RealNameFileViewController.swift */,
 				04CEE2A12ABC247300FAA760 /* JDMessageViewController.swift */,
 				04CEE2A32ABC257900FAA760 /* JDMessageListViewController.swift */,
-				6C4AFB2F29A7B57B00508EA7 /* MessageViewController.swift */,
 			);
 			path = VC;
 			sourceTree = "<group>";
@@ -3714,7 +3701,6 @@
 		6C00A93A2431BDD200CE9ADB /* V */ = {
 			isa = PBXGroup;
 			children = (
-				6CD5EB7D29D9DD7E0053325F /* Community */,
 				6C4AFB3329A7B5B400508EA7 /* Message */,
 				6C2FFCCE2961C3A4005B8180 /* RealName */,
 				6C2FFCBD2961825D005B8180 /* FreezeAccount */,
@@ -4227,10 +4213,7 @@
 		6C4AFB3329A7B5B400508EA7 /* Message */ = {
 			isa = PBXGroup;
 			children = (
-				6C4AFB3429A7B5D700508EA7 /* MessageView.swift */,
 				04CEE2A52ABC275800FAA760 /* JDMessageView.swift */,
-				6C4AFB3629A7B8B600508EA7 /* MessageHeaderView.swift */,
-				6C4AFB3829A7B8D400508EA7 /* MessageHeaderView.xib */,
 				6C4AFB3C29A7CB2C00508EA7 /* MessageCell.swift */,
 				045E7DD22B57EEC6008987BA /* JDMessageCell.swift */,
 				6C4AFB3D29A7CB2C00508EA7 /* MessageCell.xib */,
@@ -5000,15 +4983,6 @@
 			path = GuideView;
 			sourceTree = "<group>";
 		};
-		6CD5EB7D29D9DD7E0053325F /* Community */ = {
-			isa = PBXGroup;
-			children = (
-				6CD5EB7E29D9DDA20053325F /* CommunityHeaderView.swift */,
-				6CD5EB8029D9DE870053325F /* CommunityHeaderView.xib */,
-			);
-			path = Community;
-			sourceTree = "<group>";
-		};
 		6CD6DF8124372EA00025AF78 /* LaunchScreen */ = {
 			isa = PBXGroup;
 			children = (
@@ -5344,7 +5318,6 @@
 				406673292C1856500090561B /* CTKLineFooterView.xib in Resources */,
 				6CA7133A2958781C0047F450 /* CountryCode.json in Resources */,
 				6C4AFAF3299FE37300508EA7 /* APaymentMethodCell.xib in Resources */,
-				6C4AFB3929A7B8D400508EA7 /* MessageHeaderView.xib in Resources */,
 				6CDC5B1B29D08CA600E60730 /* AssetsProxyListCell.xib in Resources */,
 				6C6B7DB0296B1D9700067FA3 /* BaseCurrencyListCell.xib in Resources */,
 				6C10F0E029DB08D900B79491 /* updateAPP050.png in Resources */,
@@ -5377,7 +5350,6 @@
 				6CC37FC3298971030079FA5C /* DealHintListCell.xib in Resources */,
 				6C031B202962C4DA0043BECF /* RealNameFileCell.xib in Resources */,
 				6CBB62BC2AD427F00045A4C9 /* MarketListCell.xib in Resources */,
-				6CD5EB8129D9DE870053325F /* CommunityHeaderView.xib in Resources */,
 				6C10F0E229DB08D900B79491 /* updateAPP078.png in Resources */,
 				6C8652F729AA6E9D00A2E7FB /* TDStatisticsProfitCell.xib in Resources */,
 				6C2FFCB629617471005B8180 /* KSelectBottonPopView.xib in Resources */,
@@ -5952,7 +5924,6 @@
 				406672F62C1852630090561B /* KLineIndicatorsView.swift in Sources */,
 				93AA37592C00E9E500359AB0 /* ImageStickerContainerView.swift in Sources */,
 				0452C27E2AE226E700B63048 /* JXPagingSmoothView.swift in Sources */,
-				6C4AFB3529A7B5D700508EA7 /* MessageView.swift in Sources */,
 				0452C27F2AE226E700B63048 /* JXPagingView.swift in Sources */,
 				6C00A903242D918D00CE9ADB /* UIView+CategoryClass.swift in Sources */,
 				04D38E5D2A9EE8A10047EF9C /* JXSegmentedTitleOrImageCell.swift in Sources */,
@@ -6222,7 +6193,6 @@
 				6CDC5B1229D01A2B00E60730 /* AssetsTotalRecordCell.swift in Sources */,
 				CC2CC72B2B022AC600645541 /* MDDeatilRuleCell.swift in Sources */,
 				6C4AFB4629A8FCDD00508EA7 /* DealTalentViewModel.swift in Sources */,
-				6C4AFB3729A7B8B600508EA7 /* MessageHeaderView.swift in Sources */,
 				6C2FFCCB2961C379005B8180 /* RealNameViewController.swift in Sources */,
 				6C50AB602A07FACC00699557 /* FiatWithdrawalRecordCell.swift in Sources */,
 				65C3398B2BA2A0D4007D2E51 /* MarketShareCertificateViewModel.swift in Sources */,
@@ -6367,7 +6337,6 @@
 				6C4AFAE5299E6AC100508EA7 /* AFiatWithdrawalsCell.swift in Sources */,
 				041D4F242AD2CB04008ABDF7 /* JDMineActiveViewController.swift in Sources */,
 				04D38E5B2A9EE8A10047EF9C /* JXSegmentedTitleOrImageItemModel.swift in Sources */,
-				6C4AFB3029A7B57B00508EA7 /* MessageViewController.swift in Sources */,
 				04D38EA62AA8242F0047EF9C /* MarketFinancesViewController.swift in Sources */,
 				4066732A2C1856500090561B /* CTKLineUpsDownsCell.swift in Sources */,
 				6C7A1ADD29F3E9EF004CFBE3 /* APaymentMethodCodeCell.swift in Sources */,
@@ -6464,7 +6433,6 @@
 				6C00A912242D918D00CE9ADB /* PublicMacro.swift in Sources */,
 				0475955A2B397DC60043D0FF /* JDMineInviteBoxCell.swift in Sources */,
 				6CBB63512AE034750045A4C9 /* MDPStructSectionView.swift in Sources */,
-				6CD5EB7F29D9DDA20053325F /* CommunityHeaderView.swift in Sources */,
 				0409CA072AFE3C2E00103E9B /* CalenderCell.swift in Sources */,
 				406673262C1856500090561B /* CTKLineChartsCell.swift in Sources */,
 				04BE17DF2B0C897C006B8FB2 /* SPIndicatorIconPreset.swift in Sources */,

+ 0 - 43
Koala/Koala/Modular/Mine/V/Community/CommunityHeaderView.swift

@@ -1,43 +0,0 @@
-//
-//  CommunityHeaderView.swift
-//  Koala
-//
-//  Created by 刘千军 on 2023/4/2.
-//  Copyright © 2023 刘千军. All rights reserved.
-//
-
-import UIKit
-
-class CommunityHeaderView: BaseView {
-    @IBOutlet var bgView: UIView!
-    @IBOutlet var imgView: UIImageView!
-    @IBOutlet var hintLab: UILabel!
-    
-    var headerView: UIView!
-    
-    func loadFromNib() -> UIView {
-        return Bundle.main.loadNibNamed("CommunityHeaderView", owner: self, options: nil)?.first as! UIView
-    }
-
-    override init(frame: CGRect) {
-        super.init(frame: frame)
-        headerView = loadFromNib()
-        addSubview(headerView)
-        headerView.snp.makeConstraints { make in
-            make.edges.equalToSuperview()
-        }
-        
-        backgroundColor = ViewBorderColor
-        headerView.backgroundColor = ALLBackGroundColor
-        
-        imgView.image = _image("Mine_W_Community_Bg&Mine_W_Community_Bg")
-       
-        hintLab.text = switchLanguage("加入社区,提高交易技术")
-        hintLab.textColor = TitleTextColor
-        hintLab.setTextFont(.PFSR, 14)
-    }
-    
-    required init?(coder aDecoder: NSCoder) {
-        super.init(coder: aDecoder)
-    }
-}

+ 0 - 66
Koala/Koala/Modular/Mine/V/Community/CommunityHeaderView.xib

@@ -1,66 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
-    <device id="retina6_12" orientation="portrait" appearance="light"/>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
-        <capability name="System colors in document resources" minToolsVersion="11.0"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="CommunityHeaderView" customModule="Koala" customModuleProvider="target">
-            <connections>
-                <outlet property="bgView" destination="F85-8J-ni6" id="qLP-CI-oL8"/>
-                <outlet property="hintLab" destination="WUa-dG-PKa" id="75l-5s-c5N"/>
-                <outlet property="imgView" destination="7wg-Z0-jJe" id="2e3-R7-edg"/>
-            </connections>
-        </placeholder>
-        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
-        <view contentMode="scaleToFill" id="iN0-l3-epB">
-            <rect key="frame" x="0.0" y="0.0" width="404" height="330"/>
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-            <subviews>
-                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="F85-8J-ni6">
-                    <rect key="frame" x="0.0" y="2" width="404" height="326"/>
-                    <subviews>
-                        <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="7wg-Z0-jJe">
-                            <rect key="frame" x="102" y="20" width="200" height="200"/>
-                            <constraints>
-                                <constraint firstAttribute="height" constant="200" id="Bn0-ka-E4F"/>
-                                <constraint firstAttribute="width" constant="200" id="gs0-JH-yD1"/>
-                            </constraints>
-                        </imageView>
-                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WUa-dG-PKa">
-                            <rect key="frame" x="20" y="240" width="364" height="21"/>
-                            <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                            <nil key="textColor"/>
-                            <nil key="highlightedColor"/>
-                        </label>
-                    </subviews>
-                    <color key="backgroundColor" systemColor="systemBackgroundColor"/>
-                    <constraints>
-                        <constraint firstAttribute="trailing" secondItem="WUa-dG-PKa" secondAttribute="trailing" constant="20" id="CI1-RP-iEy"/>
-                        <constraint firstItem="7wg-Z0-jJe" firstAttribute="centerX" secondItem="F85-8J-ni6" secondAttribute="centerX" id="QEG-ao-kNz"/>
-                        <constraint firstItem="7wg-Z0-jJe" firstAttribute="top" secondItem="F85-8J-ni6" secondAttribute="top" constant="20" id="QfZ-cB-IqY"/>
-                        <constraint firstItem="WUa-dG-PKa" firstAttribute="leading" secondItem="F85-8J-ni6" secondAttribute="leading" constant="20" id="aOe-6S-Kwl"/>
-                        <constraint firstItem="WUa-dG-PKa" firstAttribute="top" secondItem="7wg-Z0-jJe" secondAttribute="bottom" constant="20" id="big-qi-dmM"/>
-                    </constraints>
-                </view>
-            </subviews>
-            <color key="backgroundColor" systemColor="systemBackgroundColor"/>
-            <constraints>
-                <constraint firstItem="F85-8J-ni6" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="7aN-nU-B64"/>
-                <constraint firstAttribute="trailing" secondItem="F85-8J-ni6" secondAttribute="trailing" id="GTW-tE-B2R"/>
-                <constraint firstAttribute="bottom" secondItem="F85-8J-ni6" secondAttribute="bottom" constant="2" id="HnV-v0-b6S"/>
-                <constraint firstItem="F85-8J-ni6" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="2" id="vih-a9-Nzm"/>
-            </constraints>
-            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
-            <point key="canvasLocation" x="-340" y="-255"/>
-        </view>
-    </objects>
-    <resources>
-        <systemColor name="systemBackgroundColor">
-            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-        </systemColor>
-    </resources>
-</document>

+ 0 - 119
Koala/Koala/Modular/Mine/V/Message/MessageHeaderView.swift

@@ -1,119 +0,0 @@
-//
-//  MessageHeaderView.swift
-//  Koala
-//
-//  Created by 刘千军 on 2023/2/23.
-//  Copyright © 2023 刘千军. All rights reserved.
-//
-
-import UIKit
-
-class MessageHeaderView: BaseView {
-    @IBOutlet var lineView: UIView!
-    @IBOutlet var titleLab: UILabel!
-    @IBOutlet var btn1: UIButton!
-    @IBOutlet var btn2: UIButton!
-    @IBOutlet var btn3: UIButton!
-    @IBOutlet var btn4: UIButton!
-    
-    var headerView: UIView!
-    
-    var clickBlock: ((_ category: String) -> Void)?
-    
-    func loadFromNib() -> UIView {
-        return Bundle.main.loadNibNamed("MessageHeaderView", owner: self, options: nil)?.first as! UIView
-    }
-
-    override init(frame: CGRect) {
-        super.init(frame: frame)
-        self.headerView = self.loadFromNib()
-        addSubview(self.headerView)
-        self.headerView.snp.makeConstraints { make in
-            make.edges.equalToSuperview()
-        }
-        
-        self.backgroundColor = .clear
-        self.headerView.backgroundColor = .clear
-       
-        self.titleLab.setTextFont(.PFSR, 12)
-        
-        self.btn1.setTextFont(.PFSR, 10)
-        self.btn1.setViewLayerBorderColor(myColor: .clear, borderWidth: 0, maskBounds: 4)
-        self.btn1.contentEdgeInsets = UIEdgeInsets(top: 0, left: 10, bottom: 0, right: 10)
-        self.btn1.addTarget(self, action: #selector(clickBtnAction(_:)), for: .touchUpInside)
-        
-        self.btn2.setTextFont(.PFSR, 10)
-        self.btn2.setViewLayerBorderColor(myColor: .clear, borderWidth: 0, maskBounds: 4)
-        self.btn2.contentEdgeInsets = UIEdgeInsets(top: 0, left: 10, bottom: 0, right: 10)
-        self.btn2.addTarget(self, action: #selector(clickBtnAction(_:)), for: .touchUpInside)
-        
-        self.btn3.setTextFont(.PFSR, 10)
-        self.btn3.setViewLayerBorderColor(myColor: .clear, borderWidth: 0, maskBounds: 4)
-        self.btn3.contentEdgeInsets = UIEdgeInsets(top: 0, left: 10, bottom: 0, right: 10)
-        self.btn3.addTarget(self, action: #selector(clickBtnAction(_:)), for: .touchUpInside)
-        
-        self.btn4.setTextFont(.PFSR, 10)
-        self.btn4.setViewLayerBorderColor(myColor: .clear, borderWidth: 0, maskBounds: 4)
-        self.btn4.contentEdgeInsets = UIEdgeInsets(top: 0, left: 10, bottom: 0, right: 10)
-        self.btn4.addTarget(self, action: #selector(clickBtnAction(_:)), for: .touchUpInside)
-        
-        self.mySwitchLanguage()
-        self.mySwitchSkin()
-    }
-    
-    override func mySwitchLanguage() {
-        self.titleLab.text = switchLanguage("通知")
-        self.btn1.setTitle(switchLanguage("全部"), for: .normal)
-        self.btn2.setTitle(switchLanguage("资产动态"), for: .normal)
-        self.btn3.setTitle(switchLanguage("合约交易"), for: .normal)
-        self.btn4.setTitle(switchLanguage("其他"), for: .normal)
-    }
-    
-    override func mySwitchSkin() {
-        self.titleLab.textColor = TitleTextColor
-        
-        self.lineView.backgroundColor = ViewBorderColor
-        
-        self.btn1.backgroundColor = _color("#f4f5f7&#f4f5f7")
-        
-        self.btn2.backgroundColor = _color("#f4f5f7&#f4f5f7")
-        
-        self.btn3.backgroundColor = _color("#f4f5f7&#f4f5f7")
-        
-        self.btn4.backgroundColor = _color("#f4f5f7&#f4f5f7")
-    }
-    
-    required init?(coder aDecoder: NSCoder) {
-        super.init(coder: aDecoder)
-    }
-}
-
-extension MessageHeaderView {
-    func updateBtnLayer(btn: UIButton) {
-        self.btn1.setTitleColor(TitleTextColor, for: .normal)
-       
-        self.btn2.setTitleColor(TitleTextColor, for: .normal)
-       
-        self.btn3.setTitleColor(TitleTextColor, for: .normal)
-       
-        self.btn4.setTitleColor(TitleTextColor, for: .normal)
-       
-        btn.setTitleColor(MainBackGroundColor, for: .normal)
-    }
-    
-    @objc func clickBtnAction(_ sender: UIButton) {
-        self.updateBtnLayer(btn: sender)
-        if self.btn1 == sender {
-            self.clickBlock?("")
-        }
-        else if self.btn2 == sender {
-            self.clickBlock?("1")
-        }
-        else if self.btn3 == sender {
-            self.clickBlock?("2")
-        }
-        else if self.btn4 == sender {
-            self.clickBlock?("3")
-        }
-    }
-}

+ 0 - 84
Koala/Koala/Modular/Mine/V/Message/MessageHeaderView.xib

@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
-    <device id="retina6_0" orientation="portrait" appearance="light"/>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
-        <capability name="System colors in document resources" minToolsVersion="11.0"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MessageHeaderView" customModule="Koala" customModuleProvider="target">
-            <connections>
-                <outlet property="btn1" destination="bK0-7Q-bqD" id="ms2-kI-1Si"/>
-                <outlet property="btn2" destination="u0x-2r-P63" id="KVt-0k-PsW"/>
-                <outlet property="btn3" destination="XN3-nQ-7W0" id="msR-9S-QG3"/>
-                <outlet property="btn4" destination="fNN-3R-fCp" id="TX3-E9-xUv"/>
-                <outlet property="lineView" destination="SZg-Gp-32r" id="cY0-a6-Wch"/>
-                <outlet property="titleLab" destination="dVz-MU-QB4" id="Pad-Qq-oJo"/>
-            </connections>
-        </placeholder>
-        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
-        <view contentMode="scaleToFill" id="iN0-l3-epB">
-            <rect key="frame" x="0.0" y="0.0" width="390" height="132"/>
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-            <subviews>
-                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="SZg-Gp-32r">
-                    <rect key="frame" x="0.0" y="0.0" width="390" height="0.66666666666666663"/>
-                    <color key="backgroundColor" systemColor="systemBackgroundColor"/>
-                    <constraints>
-                        <constraint firstAttribute="height" constant="0.5" id="2pK-Lq-PDY"/>
-                    </constraints>
-                </view>
-                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dVz-MU-QB4">
-                    <rect key="frame" x="5" y="20.666666666666668" width="41.333333333333336" height="51.333333333333329"/>
-                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                    <nil key="textColor"/>
-                    <nil key="highlightedColor"/>
-                </label>
-                <stackView opaque="NO" contentMode="scaleToFill" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="RaH-of-FQd">
-                    <rect key="frame" x="5" y="92" width="150" height="20"/>
-                    <subviews>
-                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bK0-7Q-bqD">
-                            <rect key="frame" x="0.0" y="0.0" width="30" height="20"/>
-                            <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
-                        </button>
-                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="u0x-2r-P63">
-                            <rect key="frame" x="40" y="0.0" width="30" height="20"/>
-                            <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
-                        </button>
-                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="XN3-nQ-7W0">
-                            <rect key="frame" x="80" y="0.0" width="30" height="20"/>
-                            <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
-                        </button>
-                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="fNN-3R-fCp">
-                            <rect key="frame" x="120" y="0.0" width="30" height="20"/>
-                            <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
-                        </button>
-                    </subviews>
-                    <constraints>
-                        <constraint firstAttribute="height" constant="20" id="GCm-3D-wJP"/>
-                    </constraints>
-                </stackView>
-            </subviews>
-            <color key="backgroundColor" systemColor="systemBackgroundColor"/>
-            <constraints>
-                <constraint firstItem="RaH-of-FQd" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="5" id="CUd-Xs-Ydr"/>
-                <constraint firstAttribute="bottom" secondItem="RaH-of-FQd" secondAttribute="bottom" constant="20" id="KUA-W8-n0k"/>
-                <constraint firstItem="dVz-MU-QB4" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="5" id="N9Y-Ez-LOT"/>
-                <constraint firstAttribute="trailing" secondItem="SZg-Gp-32r" secondAttribute="trailing" id="fIy-s2-f8h"/>
-                <constraint firstItem="SZg-Gp-32r" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="ghT-vQ-JWW"/>
-                <constraint firstItem="SZg-Gp-32r" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="rcN-MD-EBU"/>
-                <constraint firstItem="dVz-MU-QB4" firstAttribute="top" secondItem="SZg-Gp-32r" secondAttribute="bottom" constant="20" id="w9y-Tf-5gh"/>
-                <constraint firstItem="RaH-of-FQd" firstAttribute="top" secondItem="dVz-MU-QB4" secondAttribute="bottom" constant="20" id="xXJ-zI-uUf"/>
-            </constraints>
-            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
-            <point key="canvasLocation" x="96.92307692307692" y="273.69668246445497"/>
-        </view>
-    </objects>
-    <resources>
-        <systemColor name="systemBackgroundColor">
-            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-        </systemColor>
-    </resources>
-</document>

+ 0 - 154
Koala/Koala/Modular/Mine/V/Message/MessageView.swift

@@ -1,154 +0,0 @@
-//
-//  MessageView.swift
-//  Koala
-//
-//  Created by 刘千军 on 2023/2/23.
-//  Copyright © 2023 刘千军. All rights reserved.
-//
-
-import MJRefresh
-import UIKit
-
-class MessageView: BaseView {
-    var VM: MessageViewModel?
-    
-    lazy var headerView: MessageHeaderView = {
-        let view = MessageHeaderView(frame: CGRect(x: 0, y: 0, width: SCREEN_WIDTH, height: 100))
-        view.clickBlock = { str in
-            self.VM?.category = str
-        }
-        return view
-    }()
-    
-    lazy var tableView: BaseTableView = { [weak self] in
-        let tableView = BaseTableView(frame: .zero, style: .plain)
-        tableView.separatorStyle = .none
-        tableView.delegate = self
-        tableView.dataSource = self
-        tableView.backgroundColor = .clear
-        tableView.estimatedRowHeight = 100
-        tableView.tableHeaderView = UIView(frame: CGRect(x: 0, y: 0, width: SCREEN_WIDTH, height: 1))
-        tableView.tableFooterView = UIView()
-        tableView.showsHorizontalScrollIndicator = false
-        tableView.showsVerticalScrollIndicator = false
-        
-        tableView.register(UINib(nibName: "MessageCell", bundle: nil), forCellReuseIdentifier: "MessageCell")
-        
-        tableView.contentInsetAdjustmentBehavior = .never
-        
-        tableView.ly_emptyView = showEmptyView()
-        
-        tableView.mj_header = MJRefreshHeader(refreshingBlock: { [weak self] in
-            self?.VM?.netNoticsList(isUp: false)
-        })
-        tableView.mj_footer = MJRefreshAutoFooter(refreshingBlock: { [weak self] in
-            self?.VM?.netNoticsList(isUp: true)
-        })
-        
-        return tableView
-    }()
-    
-    override func subView() {
-        self.addSubview(self.headerView)
-        self.addSubview(self.tableView)
-       
-        self.mySwitchLanguage()
-        self.mySwitchSkin()
-    }
-    
-    override func layoutSubviews() {
-        super.layoutSubviews()
-        self.tableView.snp.makeConstraints { make in
-            make.top.equalTo(100)
-            make.left.right.bottom.equalToSuperview()
-        }
-    }
-    
-    override func setViewModel(viewmodel: AnyObject) {
-        guard viewmodel is MessageViewModel else {
-            return
-        }
-        self.VM = viewmodel as? MessageViewModel
-        super.setViewModel(viewmodel: viewmodel)
-    }
-    
-    override func mySwitchLanguage() {}
-    
-    override func mySwitchSkin() {
-        self.backgroundColor = ALLBackGroundColor
-    }
-    
-    override func blindModel() {
-        self.VM?.noticsListAction.values.observeValues { [weak self] success in
-            guard let self = self else { return }
-            DispatchQueue.main.async {
-                self.tableView.reloadData()
-                self.tableView.mj_header!.endRefreshing()
-                self.tableView.mj_footer!.endRefreshing()
-                if success {
-                    self.tableView.mj_footer!.endRefreshingWithNoMoreData()
-                }
-            }
-        }
-        
-        self.VM?.deleteMessageAction.values.observeValues { [weak self] _ in
-            guard let self = self else { return }
-            self.VM?.netNoticsList(isUp: false)
-        }
-        
-        self.VM?.readMessageAction.values.observeValues { [weak self] _ in
-            guard let self = self else { return }
-            self.VM?.netNoticsList(isUp: false)
-        }
-    }
-}
-
-// 代理
-extension MessageView: UITableViewDelegate, UITableViewDataSource {
-    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
-        return self.VM?.listData.count ?? 0
-    }
-    
-    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
-        let cell: MessageCell = tableView.dequeueReusableCell(withIdentifier: "MessageCell") as! MessageCell
-        let model = self.VM?.listData[indexPath.row]
-        cell.updateCellDataWith(model: model!, index: indexPath.row)
-        cell.clickDeleteBlock = { index in
-            let m = self.VM?.listData[index]
-            let pop = JDBaseVerifyAlertView()
-            pop.showPopupView(title: switchLanguage("删除消息"), content: switchLanguage("您确定要删除该消息")) { [weak self] index in
-                if index == 1 {
-                    self?.VM?.deleteId = m!.id
-                }
-            }
-        }
-        return cell
-    }
-    
-    func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
-        return -1
-    }
-    
-    func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
-        return UIView()
-    }
-    
-    func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
-        return UIView()
-    }
-
-    func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
-        return 0
-    }
-    
-    func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
-        return 0
-    }
-    
-    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
-        let model = self.VM?.listData[indexPath.row]
-        if model!.status == "0" {
-            self.VM?.readId = model!.id
-        }
-    }
-}