Przeglądaj źródła

个人设置无用代码清除。

culturetown 17 godzin temu
rodzic
commit
e5b104e942

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

@@ -576,8 +576,6 @@
 		6C0C4993295DDC77000BFEEB /* ChangePasswordViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C4992295DDC77000BFEEB /* ChangePasswordViewController.swift */; };
 		6C0C4995295DDC91000BFEEB /* ChangePasswordViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C4994295DDC91000BFEEB /* ChangePasswordViewModel.swift */; };
 		6C0C4998295DDCB2000BFEEB /* ChangePasswordView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C4997295DDCB2000BFEEB /* ChangePasswordView.swift */; };
-		6C0C499B295DDD86000BFEEB /* ChangePasswordCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C4999295DDD86000BFEEB /* ChangePasswordCell.swift */; };
-		6C0C499C295DDD86000BFEEB /* ChangePasswordCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6C0C499A295DDD86000BFEEB /* ChangePasswordCell.xib */; };
 		6C0C499E295F2826000BFEEB /* BindAccountViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C499D295F2825000BFEEB /* BindAccountViewController.swift */; };
 		6C0C49A0295F2842000BFEEB /* BindAccountViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C499F295F2842000BFEEB /* BindAccountViewModel.swift */; };
 		6C0C49A3295F2860000BFEEB /* BindAccountView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C49A2295F2860000BFEEB /* BindAccountView.swift */; };
@@ -776,8 +774,6 @@
 		6C584E3E295C687000CE1D2C /* UIImage+CategoryClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C584E3D295C686F00CE1D2C /* UIImage+CategoryClass.swift */; };
 		6C584E40295C687A00CE1D2C /* UIStackView+CategoryClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C584E3F295C687900CE1D2C /* UIStackView+CategoryClass.swift */; };
 		6C584E46295C7BB800CE1D2C /* BaseTabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C584E45295C7BB800CE1D2C /* BaseTabBarController.swift */; };
-		6C584E4A295CA3DA00CE1D2C /* ModifyNicknameViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C584E48295CA3DA00CE1D2C /* ModifyNicknameViewController.swift */; };
-		6C584E4B295CA3DB00CE1D2C /* ModifyNicknameViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6C584E49295CA3DA00CE1D2C /* ModifyNicknameViewController.xib */; };
 		6C66AB682AE165E2005C471D /* MDOptionsPeriodCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C66AB662AE165E2005C471D /* MDOptionsPeriodCell.swift */; };
 		6C66AB692AE165E2005C471D /* MDOptionsPeriodCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6C66AB672AE165E2005C471D /* MDOptionsPeriodCell.xib */; };
 		6C66AB6E2AE187FE005C471D /* MDOptionsPeriodListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C66AB6C2AE187FE005C471D /* MDOptionsPeriodListCell.swift */; };
@@ -1746,8 +1742,6 @@
 		6C0C4992295DDC77000BFEEB /* ChangePasswordViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChangePasswordViewController.swift; sourceTree = "<group>"; };
 		6C0C4994295DDC91000BFEEB /* ChangePasswordViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChangePasswordViewModel.swift; sourceTree = "<group>"; };
 		6C0C4997295DDCB2000BFEEB /* ChangePasswordView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChangePasswordView.swift; sourceTree = "<group>"; };
-		6C0C4999295DDD86000BFEEB /* ChangePasswordCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChangePasswordCell.swift; sourceTree = "<group>"; };
-		6C0C499A295DDD86000BFEEB /* ChangePasswordCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ChangePasswordCell.xib; sourceTree = "<group>"; };
 		6C0C499D295F2825000BFEEB /* BindAccountViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BindAccountViewController.swift; sourceTree = "<group>"; };
 		6C0C499F295F2842000BFEEB /* BindAccountViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BindAccountViewModel.swift; sourceTree = "<group>"; };
 		6C0C49A2295F2860000BFEEB /* BindAccountView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BindAccountView.swift; sourceTree = "<group>"; };
@@ -1946,8 +1940,6 @@
 		6C584E3D295C686F00CE1D2C /* UIImage+CategoryClass.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIImage+CategoryClass.swift"; sourceTree = "<group>"; };
 		6C584E3F295C687900CE1D2C /* UIStackView+CategoryClass.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIStackView+CategoryClass.swift"; sourceTree = "<group>"; };
 		6C584E45295C7BB800CE1D2C /* BaseTabBarController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BaseTabBarController.swift; sourceTree = "<group>"; };
-		6C584E48295CA3DA00CE1D2C /* ModifyNicknameViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ModifyNicknameViewController.swift; sourceTree = "<group>"; };
-		6C584E49295CA3DA00CE1D2C /* ModifyNicknameViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ModifyNicknameViewController.xib; sourceTree = "<group>"; };
 		6C66AB662AE165E2005C471D /* MDOptionsPeriodCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MDOptionsPeriodCell.swift; sourceTree = "<group>"; };
 		6C66AB672AE165E2005C471D /* MDOptionsPeriodCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MDOptionsPeriodCell.xib; sourceTree = "<group>"; };
 		6C66AB6C2AE187FE005C471D /* MDOptionsPeriodListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MDOptionsPeriodListCell.swift; sourceTree = "<group>"; };
@@ -3637,8 +3629,6 @@
 			isa = PBXGroup;
 			children = (
 				6C00A93C2431BEF800CE9ADB /* MineViewController.swift */,
-				6C584E48295CA3DA00CE1D2C /* ModifyNicknameViewController.swift */,
-				6C584E49295CA3DA00CE1D2C /* ModifyNicknameViewController.xib */,
 				6CA9FF30295DCEB80097ABA6 /* SecuritySettingsViewController.swift */,
 				6C0C4992295DDC77000BFEEB /* ChangePasswordViewController.swift */,
 				6C0C499D295F2825000BFEEB /* BindAccountViewController.swift */,
@@ -3834,8 +3824,6 @@
 				6C0C4997295DDCB2000BFEEB /* ChangePasswordView.swift */,
 				04B46A942AD8EA4500421177 /* JDChangePasswordCell.swift */,
 				04B46A962AD9176F00421177 /* JDChangePasswordInputView.swift */,
-				6C0C4999295DDD86000BFEEB /* ChangePasswordCell.swift */,
-				6C0C499A295DDD86000BFEEB /* ChangePasswordCell.xib */,
 			);
 			path = ChangePassword;
 			sourceTree = "<group>";
@@ -5324,7 +5312,6 @@
 				6C86531229B47ED000A2E7FB /* TDOrderListCell.xib in Resources */,
 				6CC37FFB299286700079FA5C /* AssetsSavingHeaderView.xib in Resources */,
 				6CBB63212ADC37280045A4C9 /* MDNewsListCell.xib in Resources */,
-				6C0C499C295DDD86000BFEEB /* ChangePasswordCell.xib in Resources */,
 				6CBB62F62AD83CD00045A4C9 /* MDAuoteInfoCell.xib in Resources */,
 				6C10F11B29E1C02700B79491 /* AFinanceRedemptionViewController.xib in Resources */,
 				6CC380032992B8A80079FA5C /* AssetsDealCell.xib in Resources */,
@@ -5407,7 +5394,6 @@
 				6C7A1ADE29F3E9EF004CFBE3 /* APaymentMethodCodeCell.xib in Resources */,
 				6C3717D929AA4961000DDD8B /* MCHeaderView.xib in Resources */,
 				6CBB63372ADD77AE0045A4C9 /* MSHotListCell.xib in Resources */,
-				6C584E4B295CA3DB00CE1D2C /* ModifyNicknameViewController.xib in Resources */,
 				04BA6F402B0F177A00BB8704 /* loading.gif in Resources */,
 				6C10F0D129DB08D900B79491 /* updateAPP026.png in Resources */,
 				6C10F0D429DB08D900B79491 /* updateAPP030.png in Resources */,
@@ -6117,7 +6103,6 @@
 				6C66AB992AE5507A005C471D /* HomeIndexListCell.swift in Sources */,
 				0409C9AD2AEB705900103E9B /* JDTradeOptionOrderWaitViewController.swift in Sources */,
 				6C00A9422431EF5900CE9ADB /* ShowBigImgView.swift in Sources */,
-				6C0C499B295DDD86000BFEEB /* ChangePasswordCell.swift in Sources */,
 				6CBB633E2ADD9A1D0045A4C9 /* MSearchListCell.swift in Sources */,
 				0409C9E32AF5FA7B00103E9B /* JDTradeWalletInOutDetailViewController.swift in Sources */,
 				04D38E7A2A9EE8A10047EF9C /* JXSegmentedTitleGradientCell.swift in Sources */,
@@ -6257,7 +6242,6 @@
 				042809432B4D6837004AE401 /* JDCardCouponModel.swift in Sources */,
 				84F5D9F02C3BAEF2009FF458 /* UserDefault+Extension.swift in Sources */,
 				6CBB62E52AD829360045A4C9 /* MDProfileViewModel.swift in Sources */,
-				6C584E4A295CA3DA00CE1D2C /* ModifyNicknameViewController.swift in Sources */,
 				04CEE2A62ABC275800FAA760 /* JDMessageView.swift in Sources */,
 				654B898E2B8F6E2200A8D587 /* JDWithdrawPayWayCell.swift in Sources */,
 				CC2CC72D2B022AC600645541 /* MDDetailRuleSectionView.swift in Sources */,

+ 0 - 167
Koala/Koala/Modular/Mine/V/ChangePassword/ChangePasswordCell.swift

@@ -1,167 +0,0 @@
-//
-//  ChangePasswordCell.swift
-//  Koala
-//
-//  Created by 刘千军 on 2022/12/29.
-//  Copyright © 2022 刘千军. All rights reserved.
-//
-
-import UIKit
-
-class ChangePasswordCell: BaseTableViewCell {
-    @IBOutlet var oldPWBgView: UIView!
-    @IBOutlet var newPWBgView: UIView!
-    @IBOutlet var repeatNewPWBgView: UIView!
-    
-    var changePasswordVM: ChangePasswordViewModel?
-    
-    lazy var oldPWInputView: BaseInputView = {
-        let inView = BaseInputView()
-        inView.setOpenBtnShow()
-        inView.textField.delegate = self
-        inView.textField.addTarget(self, action: #selector(inputChange(_:)), for: .editingChanged)
-        inView.setTextPlaceholder(text: switchLanguage("旧密码"))
-        return inView
-    }()
-    
-    lazy var newPWInputView: BaseInputView = {
-        let inView = BaseInputView()
-        inView.setOpenBtnShow()
-        inView.textField.delegate = self
-        inView.textField.addTarget(self, action: #selector(inputChange(_:)), for: .editingChanged)
-        inView.setTextPlaceholder(text: switchLanguage("新密码"))
-        return inView
-    }()
-    
-    lazy var repeatNewPWInputView: BaseInputView = {
-        let inView = BaseInputView()
-        inView.setOpenBtnShow()
-        inView.textField.delegate = self
-        inView.textField.addTarget(self, action: #selector(inputChange(_:)), for: .editingChanged)
-        inView.setTextPlaceholder(text: switchLanguage("确认密码"))
-        return inView
-    }()
-    
-    override func awakeFromNib() {
-        super.awakeFromNib()
-        
-        self.backgroundColor = ALLBackGroundColor
-        self.contentView.backgroundColor = .clear
-        self.oldPWBgView.backgroundColor = .clear
-        self.newPWBgView.backgroundColor = .clear
-        self.repeatNewPWBgView.backgroundColor = .clear
-        
-        self.oldPWBgView.addSubview(self.oldPWInputView)
-        
-        self.newPWBgView.addSubview(self.newPWInputView)
-        self.repeatNewPWBgView.addSubview(self.repeatNewPWInputView)
-        
-        self.oldPWInputView.snp.makeConstraints { make in
-            make.edges.equalToSuperview()
-        }
-        
-        self.newPWInputView.snp.makeConstraints { make in
-            make.edges.equalToSuperview()
-        }
-        
-        self.repeatNewPWInputView.snp.makeConstraints { make in
-            make.edges.equalToSuperview()
-        }
-    }
-
-    override func setSelected(_ selected: Bool, animated: Bool) {
-        super.setSelected(selected, animated: animated)
-    }
-}
-
-extension ChangePasswordCell: UITextFieldDelegate {
-    // MARK: - 输入框的变化
-
-    @objc func inputChange(_ textField: UITextField) {
-        let text = textField.text ?? ""
-        if textField == self.oldPWInputView.textField {
-            self.changePasswordVM?.oldPW = text
-        }
-        else if textField == self.newPWInputView.textField {
-            self.changePasswordVM?.newPw = text
-        }
-        else {
-            self.changePasswordVM?.repeatNewPW = text
-        }
-    }
-    
-    // 限制输入
-    func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
-        let existingString: NSString = textField.text as NSString? ?? "" as NSString
-        let candidateString = existingString.replacingCharacters(in: range, with: string)
-        if candidateString.length < existingString.length {
-            return true
-        }
-      
-        return true
-    }
-    
-    // 已经开始编辑
-    func textFieldDidBeginEditing(_ textField: UITextField) {
-        if textField == self.oldPWInputView.textField {
-            self.oldPWInputView.bgView.removeErrorView()
-            self.oldPWInputView.bgView.updateLayerBorderColor(color: MainBackGroundColor)
-        }
-        else if textField == self.newPWInputView.textField {
-            self.newPWInputView.bgView.removeErrorView()
-            self.newPWInputView.bgView.updateLayerBorderColor(color: MainBackGroundColor)
-        }
-        else {
-            self.repeatNewPWInputView.bgView.removeErrorView()
-            self.repeatNewPWInputView.bgView.updateLayerBorderColor(color: MainBackGroundColor)
-        }
-    }
-    
-    // 已经结束编辑
-    func textFieldDidEndEditing(_ textField: UITextField) {
-        let text: String = textField.text ?? ""
-        if textField == self.oldPWInputView.textField {
-            self.oldPWInputView.bgView.updateLayerBorderColor(color: .clear)
-            guard text.length > 0 else {
-                self.oldPWInputView.bgView.addErrorView(switchLanguage("请输入旧密码"))
-                return
-            }
-            let pp = "^(?=.*[0-9])(?=.*[a-zA-Z])[0-9a-zA-Z~!@#$%^&*.?_-]{8,20}$"
-            let predicate = NSPredicate(format: "SELF MATCHES %@", pp)
-        
-            if !predicate.evaluate(with: text) {
-                self.oldPWInputView.bgView.addErrorView(switchLanguage("8-20位字符,必须包含数字和字母"))
-            }
-        }
-        else if textField == self.newPWInputView.textField {
-            self.newPWInputView.bgView.updateLayerBorderColor(color: .clear)
-            
-            guard text.length > 0 else {
-                self.newPWInputView.bgView.addErrorView(switchLanguage("请输入新密码"))
-                return
-            }
-            let pp = "^(?=.*[0-9])(?=.*[a-zA-Z])[0-9a-zA-Z~!@#$%^&*.?_-]{8,20}$"
-            let predicate = NSPredicate(format: "SELF MATCHES %@", pp)
-        
-            if !predicate.evaluate(with: text) {
-                self.newPWInputView.bgView.addErrorView(switchLanguage("8-20位字符,必须包含数字和字母"))
-            }
-        }
-        else {
-            self.repeatNewPWInputView.bgView.updateLayerBorderColor(color: .clear)
-            guard text == self.newPWInputView.textField.text else {
-                self.repeatNewPWInputView.bgView.addErrorView(switchLanguage("两次密码不一致"))
-                return
-            }
-        }
-    }
-}
-
-extension ChangePasswordCell {
-    func ChangePasswordUpdate(vm: ChangePasswordViewModel) {
-        self.changePasswordVM = vm
-        self.oldPWInputView.textField.text = vm.oldPW
-        self.newPWInputView.textField.text = vm.newPw
-        self.repeatNewPWInputView.textField.text = vm.repeatNewPW
-    }
-}

+ 0 - 67
Koala/Koala/Modular/Mine/V/ChangePassword/ChangePasswordCell.xib

@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21225" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
-    <device id="retina6_0" orientation="portrait" appearance="light"/>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21207"/>
-        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
-        <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"/>
-        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
-        <tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" rowHeight="232" id="KGk-i7-Jjw" customClass="ChangePasswordCell" customModule="Koala" customModuleProvider="target">
-            <rect key="frame" x="0.0" y="0.0" width="427" height="232"/>
-            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-            <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" ambiguous="YES" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
-                <rect key="frame" x="0.0" y="0.0" width="427" height="232"/>
-                <autoresizingMask key="autoresizingMask"/>
-                <subviews>
-                    <stackView opaque="NO" contentMode="scaleToFill" ambiguous="YES" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="tZB-TZ-pmu">
-                        <rect key="frame" x="15" y="20" width="397" height="186"/>
-                        <subviews>
-                            <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="CZ5-7s-fWg">
-                                <rect key="frame" x="0.0" y="0.0" width="397" height="62"/>
-                                <color key="backgroundColor" systemColor="systemBackgroundColor"/>
-                                <constraints>
-                                    <constraint firstAttribute="height" constant="62" id="SC7-q5-6W0"/>
-                                </constraints>
-                            </view>
-                            <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="cFH-zT-jmq">
-                                <rect key="frame" x="0.0" y="62" width="397" height="62"/>
-                                <color key="backgroundColor" systemColor="systemBackgroundColor"/>
-                            </view>
-                            <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Hzy-ci-8wk">
-                                <rect key="frame" x="0.0" y="124" width="397" height="62"/>
-                                <color key="backgroundColor" systemColor="systemBackgroundColor"/>
-                            </view>
-                        </subviews>
-                        <constraints>
-                            <constraint firstItem="cFH-zT-jmq" firstAttribute="height" secondItem="CZ5-7s-fWg" secondAttribute="height" id="2Zd-3e-ZyO"/>
-                            <constraint firstItem="Hzy-ci-8wk" firstAttribute="height" secondItem="CZ5-7s-fWg" secondAttribute="height" id="sQl-Pl-tBQ"/>
-                        </constraints>
-                    </stackView>
-                </subviews>
-                <constraints>
-                    <constraint firstItem="tZB-TZ-pmu" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="20" id="Lfs-fi-Kqa"/>
-                    <constraint firstItem="tZB-TZ-pmu" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Xuk-73-GJ4"/>
-                    <constraint firstAttribute="bottom" secondItem="tZB-TZ-pmu" secondAttribute="bottom" constant="20" id="lza-oU-wlN"/>
-                    <constraint firstAttribute="trailing" secondItem="tZB-TZ-pmu" secondAttribute="trailing" constant="15" id="o5d-XO-gMN"/>
-                </constraints>
-            </tableViewCellContentView>
-            <viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
-            <connections>
-                <outlet property="newPWBgView" destination="cFH-zT-jmq" id="uSM-lj-bBb"/>
-                <outlet property="oldPWBgView" destination="CZ5-7s-fWg" id="th0-5a-R40"/>
-                <outlet property="repeatNewPWBgView" destination="Hzy-ci-8wk" id="O97-NM-7vV"/>
-            </connections>
-            <point key="canvasLocation" x="148.46153846153845" y="-184.83412322274881"/>
-        </tableViewCell>
-    </objects>
-    <resources>
-        <systemColor name="systemBackgroundColor">
-            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-        </systemColor>
-    </resources>
-</document>

+ 0 - 2
Koala/Koala/Modular/Mine/V/ChangePassword/ChangePasswordView.swift

@@ -107,8 +107,6 @@ extension ChangePasswordView: UITableViewDelegate, UITableViewDataSource {
     }
     
     func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
-//        let cell:ChangePasswordCell = tableView.dequeueReusableCell(withIdentifier: "ChangePasswordCell") as! ChangePasswordCell
-//        cell.ChangePasswordUpdate(vm: self.VM!)
         
         let cell = tableView.dequeueReusableCell(withIdentifier: JDChangePasswordCell.description()) as! JDChangePasswordCell
         cell.ChangePasswordUpdate(vm: self.VM!)

+ 0 - 86
Koala/Koala/Modular/Mine/VC/ModifyNicknameViewController.swift

@@ -1,86 +0,0 @@
-//
-//  ModifyNicknameViewController.swift
-//  Koala
-//
-//  Created by 刘千军 on 2022/12/29.
-//  Copyright © 2022 刘千军. All rights reserved.
-//
-
-import UIKit
-
-class ModifyNicknameViewController: BaseViewController {
-    @IBOutlet var inputBgView: UIView!
-    @IBOutlet var hintLab: UILabel!
-    
-    lazy var inView: BaseInputView = {
-        let inView = BaseInputView()
-        return inView
-    }()
-    
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        self.myNavigationBar.title_Label.text = switchLanguage("修改昵称")
-        self.myNavigationBar.right_SuperView.isHidden = false
-        self.myNavigationBar.right_Button.setTitle(switchLanguage("保存") + "  ", for: .normal)
-        self.myNavigationBar.right_Button.setTitleColor(MainBackGroundColor, for: .normal)
-        self.myNavigationBar.right_Button.setTextFont(.PFSM, 15)
-        self.myNavigationBar.right_Button.addTarget(self, action: #selector(clickRightBtnAction), for: .touchUpInside)
-        
-        self.inputBgView.addSubview(self.inView)
-        
-        self.inView.snp.makeConstraints { make in
-            make.edges.equalToSuperview()
-        }
-        
-        self.mySwitchLanguage()
-        self.mySwitchSkin()
-    }
-    
-    override func subView() {
-        self.hintLab.setTextFont(.PFSR, 12)
-    }
-    
-    override func updateViewConstraints() {
-        super.updateViewConstraints()
-    }
-    
-    override func mySwitchLanguage() {
-        self.hintLab.text = switchLanguage("昵称包含1-24位字符(包含数字,字符和空格),且每个月只能修改一次")
-        self.inView.setTextPlaceholder(text: switchLanguage("昵称"))
-    }
-    
-    override func mySwitchSkin() {
-        self.hintLab.textColor = MidTextColor
-    }
-}
-
-extension ModifyNicknameViewController {
-    func netUserImName() {
-        let text = self.inView.textField.text ?? ""
-        guard text.length > 0 else {
-            ProgressHUD.showMessage(status: switchLanguage("请输入昵称"))
-            return
-        }
-        let textCount = text.unicodeScalars
-        guard textCount.count < 24 else {
-            ProgressHUD.showMessage(status: switchLanguage("昵称1-24位字符"))
-            return
-        }
-        
-        let paramDict = ["im_name": text]
-        NetWork.NetWorkInstance.requestData(requestType: .Post, URLString: netForUserImName, parameters: paramDict, success: { [weak self] _, _ in
-            ProgressHUD.showSuccess(status: switchLanguage("保存成功"))
-            OperationalUserInfoData.refreshUserInfoComplete {
-                self?.navigationController?.popViewController(animated: true)
-            }
-        }) { _, result in
-            ProgressHUD.showError(status: result as! String)
-        }
-    }
-}
-
-extension ModifyNicknameViewController {
-    @objc func clickRightBtnAction() {
-        self.netUserImName()
-    }
-}

+ 0 - 56
Koala/Koala/Modular/Mine/VC/ModifyNicknameViewController.xib

@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21225" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
-    <device id="retina6_0" orientation="portrait" appearance="light"/>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21207"/>
-        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
-        <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="ModifyNicknameViewController" customModule="Koala" customModuleProvider="target">
-            <connections>
-                <outlet property="hintLab" destination="VVE-0k-peF" id="Kiu-of-YdM"/>
-                <outlet property="inputBgView" destination="ydy-ly-dlb" id="hjA-lW-SmU"/>
-                <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
-            </connections>
-        </placeholder>
-        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
-        <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
-            <rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-            <subviews>
-                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="VVE-0k-peF">
-                    <rect key="frame" x="10" y="154" width="370" height="20.333333333333343"/>
-                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                    <nil key="textColor"/>
-                    <nil key="highlightedColor"/>
-                </label>
-                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ydy-ly-dlb">
-                    <rect key="frame" x="10" y="107" width="370" height="42"/>
-                    <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-                    <constraints>
-                        <constraint firstAttribute="height" constant="42" id="cG9-yt-rBW"/>
-                    </constraints>
-                </view>
-            </subviews>
-            <viewLayoutGuide key="safeArea" id="X3w-HZ-wCF"/>
-            <color key="backgroundColor" systemColor="systemBackgroundColor"/>
-            <constraints>
-                <constraint firstItem="X3w-HZ-wCF" firstAttribute="trailing" secondItem="VVE-0k-peF" secondAttribute="trailing" constant="10" id="3pu-5e-Bma"/>
-                <constraint firstItem="VVE-0k-peF" firstAttribute="leading" secondItem="X3w-HZ-wCF" secondAttribute="leading" constant="10" id="K3w-8C-fO5"/>
-                <constraint firstItem="VVE-0k-peF" firstAttribute="top" secondItem="ydy-ly-dlb" secondAttribute="bottom" constant="5" id="ZKu-Vi-1Q6"/>
-                <constraint firstItem="X3w-HZ-wCF" firstAttribute="trailing" secondItem="ydy-ly-dlb" secondAttribute="trailing" constant="10" id="aWa-63-2T3"/>
-                <constraint firstItem="ydy-ly-dlb" firstAttribute="leading" secondItem="X3w-HZ-wCF" secondAttribute="leading" constant="10" id="fMV-H3-SAg"/>
-                <constraint firstItem="ydy-ly-dlb" firstAttribute="top" secondItem="X3w-HZ-wCF" secondAttribute="top" constant="60" id="wBJ-Oz-PaF"/>
-            </constraints>
-            <point key="canvasLocation" x="100" y="20.616113744075829"/>
-        </view>
-    </objects>
-    <resources>
-        <systemColor name="systemBackgroundColor">
-            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-        </systemColor>
-    </resources>
-</document>