Ver código fonte

移除加入DDSE社区相关代码

culturetown 1 dia atrás
pai
commit
4a145019f2

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

@@ -1062,8 +1062,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 */; };
-		6CD5EB7B29D9D8E30053325F /* CommunityViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CD5EB7929D9D8E30053325F /* CommunityViewController.swift */; };
-		6CD5EB7C29D9D8E30053325F /* CommunityViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6CD5EB7A29D9D8E30053325F /* CommunityViewController.xib */; };
 		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 */; };
@@ -2256,8 +2254,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>"; };
-		6CD5EB7929D9D8E30053325F /* CommunityViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommunityViewController.swift; sourceTree = "<group>"; };
-		6CD5EB7A29D9D8E30053325F /* CommunityViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CommunityViewController.xib; 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>"; };
@@ -3695,8 +3691,6 @@
 				04CEE2A12ABC247300FAA760 /* JDMessageViewController.swift */,
 				04CEE2A32ABC257900FAA760 /* JDMessageListViewController.swift */,
 				6C4AFB2F29A7B57B00508EA7 /* MessageViewController.swift */,
-				6CD5EB7929D9D8E30053325F /* CommunityViewController.swift */,
-				6CD5EB7A29D9D8E30053325F /* CommunityViewController.xib */,
 			);
 			path = VC;
 			sourceTree = "<group>";
@@ -5370,7 +5364,6 @@
 				6CDC5B1329D01A2B00E60730 /* AssetsTotalRecordCell.xib in Resources */,
 				6C10F0EB29DB08D900B79491 /* updateAPP102.png in Resources */,
 				6C10F0F829DB08D900B79491 /* updateAPP070.png in Resources */,
-				6CD5EB7C29D9D8E30053325F /* CommunityViewController.xib in Resources */,
 				6CA71313295717990047F450 /* MineViewCell.xib in Resources */,
 				6C10F0D729DB08D900B79491 /* updateAPP056.png in Resources */,
 				6C10F0F729DB08D900B79491 /* updateAPP064.png in Resources */,
@@ -6425,7 +6418,6 @@
 				04CEE2792AB603C100FAA760 /* InformationDetailViewController.swift in Sources */,
 				6C3717CF29AA3D3C000DDD8B /* MyCopyingHeaderView.swift in Sources */,
 				654B898D2B8F6E2200A8D587 /* JDwithdrawRecieveHeaderCell.swift in Sources */,
-				6CD5EB7B29D9D8E30053325F /* CommunityViewController.swift in Sources */,
 				6C2EAD7F29E3110800E03AF8 /* AInvestNowViewController.swift in Sources */,
 				049F2E4B2C5A13FF00649DCA /* JDPhotoFileProofInputCell.swift in Sources */,
 				651D1CD42B9EF6D300ED1661 /* MarketShareCertificateVC.swift in Sources */,

+ 1 - 1
Koala/Koala.xcworkspace/xcuserdata/mac.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -1208,7 +1208,7 @@
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "338"
             endingLineNumber = "338"
-            landmarkName = "showPopupView(modelDict:complete:)"
+            landmarkName = "getHotStockList(symbol_string:)"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>

+ 0 - 6
Koala/Koala/Modular/Mine/M/MineModels.swift

@@ -50,12 +50,6 @@ class NoticsContentModel: MineModels {
     public var type: String! = ""
 }
 
-class MediumModel: MineModels {
-    public var id: String! = ""
-    public var name: String! = ""
-    public var url: String! = ""
-    public var image: String! = ""
-}
 
 class ReviewCommentListModel: MineModels {
     public var comment: String! = ""

+ 0 - 11
Koala/Koala/Modular/Mine/V/Mine/MineViewCell.swift

@@ -66,15 +66,4 @@ class MineViewCell: BaseTableViewCell {
         }
     }
     
-    func updateMediumCellWithModel(model: MediumModel) {
-        self.titleLab.text = model.name
-        self.hintLab.text = ""
-        if let url = URL(string: fileLinkPackage(path: model.image)) {
-            let hammock = UIView(SVGURL: url) { svgLayer in
-                // svgLayer.fillColor = UIColor.red.cgColor
-                svgLayer.resizeToFit(self.imgView.bounds)
-            }
-            self.imgView.addSubview(hammock)
-        }
-    }
 }

+ 0 - 102
Koala/Koala/Modular/Mine/VC/CommunityViewController.swift

@@ -1,102 +0,0 @@
-//
-//  CommunityViewController.swift
-//  Koala
-//
-//  Created by 刘千军 on 2023/4/2.
-//  Copyright © 2023 刘千军. All rights reserved.
-//
-
-import SafariServices
-import UIKit
-
-class CommunityViewController: BaseViewController {
-    @IBOutlet var tableView: UITableView!
-    
-    lazy var headerView: CommunityHeaderView = {
-        let view = CommunityHeaderView(frame: CGRect(x: 0, y: 0, width: SCREEN_WIDTH, height: 290))
-        
-        return view
-    }()
-    
-    lazy var listData: [MediumModel] = {
-        let arr = [MediumModel]()
-        return arr
-    }()
-
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        myNavigationBar.title_Label.text = switchLanguage("加入DDSE社区")
-        
-        tableView.delegate = self
-        tableView.dataSource = self
-        tableView.separatorStyle = .none
-        tableView.backgroundColor = .clear
-        tableView.tableFooterView = UIView()
-        tableView.tableHeaderView = headerView
-        tableView.showsVerticalScrollIndicator = false
-        tableView.showsVerticalScrollIndicator = false
-
-        tableView.register(UINib(nibName: "MineViewCell", bundle: nil), forCellReuseIdentifier: "MineViewCell")
-        
-        getIndexMedium()
-    }
-
-    func getIndexMedium() {
-        NetWork.NetWorkInstance.requestData(requestType: .Post, URLString: netForIndexMedium, success: { _, result in
-            ProgressHUD.hideHud()
-            if let list: [NSDictionary] = result as? [NSDictionary] {
-                self.listData.removeAll()
-                for dic in list {
-                    let model = MediumModel.deserialize(from: dic)!
-                    self.listData.append(model)
-                }
-                self.tableView.reloadData()
-            } else {}
-            
-        }) { _, result in
-            ProgressHUD.showError(status: result as! String)
-        }
-    }
-}
-
-// 代理
-extension CommunityViewController: UITableViewDelegate, UITableViewDataSource {
-    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
-        return listData.count
-    }
-    
-    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
-        let cell: MineViewCell = tableView.dequeueReusableCell(withIdentifier: "MineViewCell") as! MineViewCell
-        let model = listData[indexPath.row]
-        cell.updateMediumCellWithModel(model: model)
-        return cell
-    }
-    
-    func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
-        return 54
-    }
-    
-    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 2
-    }
-    
-    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
-        let model = listData[indexPath.row]
-        if let url = URL(string: model.url) {
-            let safariVC = SFSafariViewController(url: url)
-            currentVc()?.navigationController?.present(safariVC, animated: true, completion: nil)
-        }
-    }
-}

+ 0 - 44
Koala/Koala/Modular/Mine/VC/CommunityViewController.xib

@@ -1,44 +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" useSafeAreas="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="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="CommunityViewController" customModule="Koala" customModuleProvider="target">
-            <connections>
-                <outlet property="tableView" destination="zld-OD-GfB" id="6B8-hL-0cj"/>
-                <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="393" height="852"/>
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-            <subviews>
-                <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="zld-OD-GfB">
-                    <rect key="frame" x="0.0" y="59" width="393" height="759"/>
-                    <color key="backgroundColor" systemColor="systemBackgroundColor"/>
-                </tableView>
-            </subviews>
-            <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
-            <color key="backgroundColor" systemColor="systemBackgroundColor"/>
-            <constraints>
-                <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="zld-OD-GfB" secondAttribute="trailing" id="IW2-1o-qhd"/>
-                <constraint firstItem="zld-OD-GfB" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="ShQ-sV-197"/>
-                <constraint firstItem="zld-OD-GfB" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="gCL-yc-sPG"/>
-                <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="zld-OD-GfB" secondAttribute="bottom" id="mpd-zb-4oe"/>
-            </constraints>
-            <point key="canvasLocation" x="89" y="20"/>
-        </view>
-    </objects>
-    <resources>
-        <systemColor name="systemBackgroundColor">
-            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-        </systemColor>
-    </resources>
-</document>

+ 0 - 4
Koala/Koala/Modular/Mine/VC/MineViewController.swift

@@ -253,10 +253,6 @@ class MineViewController: BaseViewController {
                 let vc = JDFeedBackViewController()
                 self.navigationController?.pushViewController(vc, animated: true)
             }
-            else if action == 4002 { // 加入DDSE社区
-                let vc = CommunityViewController()
-                self.navigationController?.pushViewController(vc, animated: true)
-            }
             
             NotificationCenter.default.post(name: NSNotification.Name("MineHideNotification"), object: nil, userInfo: nil)
         }

+ 0 - 4
Koala/Koala/Modular/Mine/VM/MineViewModel.swift

@@ -175,10 +175,6 @@ extension MineViewModel {
                  "text": "",
                  "image": _image("Mine_W_Feedback&Mine_W_Feedback"),
                  "hiddenArrow": false],
-//               ["title": switchLanguage("加入DDSE社区"),
-//                "text": "",
-//                "image":_image("Mine_W_Community&Mine_W_Community"),
-//                "hiddenArrow": false],
             ],
         ]