Commit 97370c5b2daf43e155b1111739ac4cf484492366

Authored by “张旭”
1 parent 629643d7

身份管理页面->身份认证页面

metaCode.xcodeproj/project.pbxproj
@@ -105,6 +105,8 @@ @@ -105,6 +105,8 @@
105 1941348E2C2165EE004FC047 /* CNLiveDigitalSecCollectionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1941348D2C2165EE004FC047 /* CNLiveDigitalSecCollectionCell.swift */; }; 105 1941348E2C2165EE004FC047 /* CNLiveDigitalSecCollectionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1941348D2C2165EE004FC047 /* CNLiveDigitalSecCollectionCell.swift */; };
106 194134902C22C25A004FC047 /* CNLiveDigitalMineRealNameController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1941348F2C22C25A004FC047 /* CNLiveDigitalMineRealNameController.swift */; }; 106 194134902C22C25A004FC047 /* CNLiveDigitalMineRealNameController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1941348F2C22C25A004FC047 /* CNLiveDigitalMineRealNameController.swift */; };
107 194134922C22C920004FC047 /* CNLiveDigitalMineRealNameCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 194134912C22C920004FC047 /* CNLiveDigitalMineRealNameCell.swift */; }; 107 194134922C22C920004FC047 /* CNLiveDigitalMineRealNameCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 194134912C22C920004FC047 /* CNLiveDigitalMineRealNameCell.swift */; };
  108 + 194134942C240583004FC047 /* CNLiveDigitalRealManageController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 194134932C240583004FC047 /* CNLiveDigitalRealManageController.swift */; };
  109 + 194134962C2412C7004FC047 /* CNLiveRealManageCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 194134952C2412C7004FC047 /* CNLiveRealManageCell.swift */; };
108 194455A12B6B3310006C5A2A /* CNWebView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 194455A02B6B3310006C5A2A /* CNWebView.swift */; }; 110 194455A12B6B3310006C5A2A /* CNWebView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 194455A02B6B3310006C5A2A /* CNWebView.swift */; };
109 19565EC02AF4DE0E007D6727 /* CNLiveShopDetailBtnsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19565EBF2AF4DE0E007D6727 /* CNLiveShopDetailBtnsCell.swift */; }; 111 19565EC02AF4DE0E007D6727 /* CNLiveShopDetailBtnsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19565EBF2AF4DE0E007D6727 /* CNLiveShopDetailBtnsCell.swift */; };
110 19565EC22AF616CA007D6727 /* CNLiveShopDetailOrderAssetCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19565EC12AF616CA007D6727 /* CNLiveShopDetailOrderAssetCell.swift */; }; 112 19565EC22AF616CA007D6727 /* CNLiveShopDetailOrderAssetCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19565EC12AF616CA007D6727 /* CNLiveShopDetailOrderAssetCell.swift */; };
@@ -409,6 +411,8 @@ @@ -409,6 +411,8 @@
409 1941348D2C2165EE004FC047 /* CNLiveDigitalSecCollectionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalSecCollectionCell.swift; sourceTree = "<group>"; }; 411 1941348D2C2165EE004FC047 /* CNLiveDigitalSecCollectionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalSecCollectionCell.swift; sourceTree = "<group>"; };
410 1941348F2C22C25A004FC047 /* CNLiveDigitalMineRealNameController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalMineRealNameController.swift; sourceTree = "<group>"; }; 412 1941348F2C22C25A004FC047 /* CNLiveDigitalMineRealNameController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalMineRealNameController.swift; sourceTree = "<group>"; };
411 194134912C22C920004FC047 /* CNLiveDigitalMineRealNameCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalMineRealNameCell.swift; sourceTree = "<group>"; }; 413 194134912C22C920004FC047 /* CNLiveDigitalMineRealNameCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalMineRealNameCell.swift; sourceTree = "<group>"; };
  414 + 194134932C240583004FC047 /* CNLiveDigitalRealManageController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveDigitalRealManageController.swift; sourceTree = "<group>"; };
  415 + 194134952C2412C7004FC047 /* CNLiveRealManageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveRealManageCell.swift; sourceTree = "<group>"; };
412 194455A02B6B3310006C5A2A /* CNWebView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNWebView.swift; sourceTree = "<group>"; }; 416 194455A02B6B3310006C5A2A /* CNWebView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNWebView.swift; sourceTree = "<group>"; };
413 19565EBF2AF4DE0E007D6727 /* CNLiveShopDetailBtnsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveShopDetailBtnsCell.swift; sourceTree = "<group>"; }; 417 19565EBF2AF4DE0E007D6727 /* CNLiveShopDetailBtnsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveShopDetailBtnsCell.swift; sourceTree = "<group>"; };
414 19565EC12AF616CA007D6727 /* CNLiveShopDetailOrderAssetCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveShopDetailOrderAssetCell.swift; sourceTree = "<group>"; }; 418 19565EC12AF616CA007D6727 /* CNLiveShopDetailOrderAssetCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveShopDetailOrderAssetCell.swift; sourceTree = "<group>"; };
@@ -1102,6 +1106,7 @@ @@ -1102,6 +1106,7 @@
1102 isa = PBXGroup; 1106 isa = PBXGroup;
1103 children = ( 1107 children = (
1104 19C0F7732BDF71CA0097CC8F /* CNLiveDigitalAuthController.swift */, 1108 19C0F7732BDF71CA0097CC8F /* CNLiveDigitalAuthController.swift */,
  1109 + 194134932C240583004FC047 /* CNLiveDigitalRealManageController.swift */,
1105 19C735CD2C12D19D00CACF4E /* CNLiveRealNameAuthController.swift */, 1110 19C735CD2C12D19D00CACF4E /* CNLiveRealNameAuthController.swift */,
1106 194134772C17F83B004FC047 /* CNLiveFaceAuthController.swift */, 1111 194134772C17F83B004FC047 /* CNLiveFaceAuthController.swift */,
1107 194134872C1FE4E7004FC047 /* CNLiveDigitalAssetsController.swift */, 1112 194134872C1FE4E7004FC047 /* CNLiveDigitalAssetsController.swift */,
@@ -1123,6 +1128,7 @@ @@ -1123,6 +1128,7 @@
1123 children = ( 1128 children = (
1124 19C735C92C10647B00CACF4E /* CNLiveDigitalAuthCell.swift */, 1129 19C735C92C10647B00CACF4E /* CNLiveDigitalAuthCell.swift */,
1125 19C735CB2C11A1F400CACF4E /* CNLiveDigitalThreeCollectCell.swift */, 1130 19C735CB2C11A1F400CACF4E /* CNLiveDigitalThreeCollectCell.swift */,
  1131 + 194134952C2412C7004FC047 /* CNLiveRealManageCell.swift */,
1126 19C735CF2C12F5F600CACF4E /* CNLiveRealNameCell.swift */, 1132 19C735CF2C12F5F600CACF4E /* CNLiveRealNameCell.swift */,
1127 1941347F2C18160C004FC047 /* CNLiveAuthPreviewView.swift */, 1133 1941347F2C18160C004FC047 /* CNLiveAuthPreviewView.swift */,
1128 194134892C200E4E004FC047 /* CNLiveDigitalFirstCell.swift */, 1134 194134892C200E4E004FC047 /* CNLiveDigitalFirstCell.swift */,
@@ -1882,6 +1888,7 @@ @@ -1882,6 +1888,7 @@
1882 1917328E2B032583007BCC04 /* CNLiveRoundedRectView.swift in Sources */, 1888 1917328E2B032583007BCC04 /* CNLiveRoundedRectView.swift in Sources */,
1883 1938BD2E2B48021E00390A34 /* CNHomePageBaseNavigationController.swift in Sources */, 1889 1938BD2E2B48021E00390A34 /* CNHomePageBaseNavigationController.swift in Sources */,
1884 1917332F2B16C7C9007BCC04 /* CNLiveTimer.swift in Sources */, 1890 1917332F2B16C7C9007BCC04 /* CNLiveTimer.swift in Sources */,
  1891 + 194134942C240583004FC047 /* CNLiveDigitalRealManageController.swift in Sources */,
1885 7CD675292A270F6A008354C1 /* WJColorChange.m in Sources */, 1892 7CD675292A270F6A008354C1 /* WJColorChange.m in Sources */,
1886 194134862C196F59004FC047 /* CNLiveAuthTool.swift in Sources */, 1893 194134862C196F59004FC047 /* CNLiveAuthTool.swift in Sources */,
1887 1938BD172B3D6C7F00390A34 /* CNLiveAuthViewController.swift in Sources */, 1894 1938BD172B3D6C7F00390A34 /* CNLiveAuthViewController.swift in Sources */,
@@ -2052,6 +2059,7 @@ @@ -2052,6 +2059,7 @@
2052 796308752B4B90700090D22A /* CNLiveShortVideoHomeModel.swift in Sources */, 2059 796308752B4B90700090D22A /* CNLiveShortVideoHomeModel.swift in Sources */,
2053 19CC4D542ADD163D00308E2A /* CNUpSlideCardPresentationController.swift in Sources */, 2060 19CC4D542ADD163D00308E2A /* CNUpSlideCardPresentationController.swift in Sources */,
2054 790D01A32A2DDBA300C5978D /* CNLiveConfigManager.swift in Sources */, 2061 790D01A32A2DDBA300C5978D /* CNLiveConfigManager.swift in Sources */,
  2062 + 194134962C2412C7004FC047 /* CNLiveRealManageCell.swift in Sources */,
2055 1941347A2C18001A004FC047 /* CGImage+FaceCrop.swift in Sources */, 2063 1941347A2C18001A004FC047 /* CGImage+FaceCrop.swift in Sources */,
2056 7939B0752B47F1B9005AE981 /* CNLiveShortVideoListTableViewCell.swift in Sources */, 2064 7939B0752B47F1B9005AE981 /* CNLiveShortVideoListTableViewCell.swift in Sources */,
2057 794294A72B4D18EC008AAFA0 /* CNLiveShortVideoContentListView.swift in Sources */, 2065 794294A72B4D18EC008AAFA0 /* CNLiveShortVideoContentListView.swift in Sources */,
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/CNLiveDigitalAssetsController.swift
@@ -84,9 +84,11 @@ class CNLiveDigitalAssetsController:CNLiveBaseViewController, UITableViewDataSou @@ -84,9 +84,11 @@ class CNLiveDigitalAssetsController:CNLiveBaseViewController, UITableViewDataSou
84 CNLiveMineViewModel.requestsGETAuthInfoList(page: 1) { [weak self] result, respStatue in 84 CNLiveMineViewModel.requestsGETAuthInfoList(page: 1) { [weak self] result, respStatue in
85 if respStatue == .success { 85 if respStatue == .success {
86 let listBaseModel = result as! MineAuthListBaseModel 86 let listBaseModel = result as! MineAuthListBaseModel
87 - self!.dataArray.addObjects(from: listBaseModel.list)  
88 - self!.dataArray.add(MineAuthListModel())  
89 - self!.tableView.reloadData() 87 + if self != nil{
  88 + self!.dataArray.addObjects(from: listBaseModel.list)
  89 + self!.dataArray.add(MineAuthListModel())
  90 + self!.tableView.reloadData()
  91 + }
90 }else { 92 }else {
91 93
92 } 94 }
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/CNLiveDigitalAuthController.swift
@@ -24,7 +24,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource @@ -24,7 +24,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource
24 titleLabel.adjustsFontSizeToFitWidth=true 24 titleLabel.adjustsFontSizeToFitWidth=true
25 return titleLabel 25 return titleLabel
26 }() 26 }()
27 - 27 +
28 lazy var yuanmaDescLabel: UILabel = { 28 lazy var yuanmaDescLabel: UILabel = {
29 let titleLabel = UILabel() 29 let titleLabel = UILabel()
30 titleLabel.textColor = .white 30 titleLabel.textColor = .white
@@ -60,7 +60,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource @@ -60,7 +60,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource
60 return dataArray 60 return dataArray
61 }() 61 }()
62 let kCNLiveDigitalAuthCellIdentifier = "kCNLiveDuanjuTitleCellIdentifier" 62 let kCNLiveDigitalAuthCellIdentifier = "kCNLiveDuanjuTitleCellIdentifier"
63 - 63 +
64 lazy var tableView : UITableView = { 64 lazy var tableView : UITableView = {
65 let tableView = UITableView(frame: .zero, style: .plain) 65 let tableView = UITableView(frame: .zero, style: .plain)
66 tableView.dataSource = self 66 tableView.dataSource = self
@@ -99,7 +99,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource @@ -99,7 +99,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource
99 nextBtn.addTarget(self, action: #selector(nextBtnAction), for: .touchUpInside) 99 nextBtn.addTarget(self, action: #selector(nextBtnAction), for: .touchUpInside)
100 return nextBtn 100 return nextBtn
101 }() 101 }()
102 - 102 +
103 103
104 var channelId:String = "0" 104 var channelId:String = "0"
105 var vsid:String = "" 105 var vsid:String = ""
@@ -161,7 +161,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource @@ -161,7 +161,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource
161 make.height.equalTo(53) 161 make.height.equalTo(53)
162 make.top.left.right.equalToSuperview() 162 make.top.left.right.equalToSuperview()
163 } 163 }
164 - 164 +
165 self.whiteTopView.addSubview(self.changeLabel) 165 self.whiteTopView.addSubview(self.changeLabel)
166 self.changeLabel.snp.makeConstraints { make in 166 self.changeLabel.snp.makeConstraints { make in
167 make.centerY.equalToSuperview() 167 make.centerY.equalToSuperview()
@@ -200,7 +200,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource @@ -200,7 +200,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource
200 make.left.equalTo(10) 200 make.left.equalTo(10)
201 make.right.equalToSuperview().offset(-10) 201 make.right.equalToSuperview().offset(-10)
202 } 202 }
203 - 203 +
204 } 204 }
205 205
206 func numberOfSections(in tableView: UITableView) -> Int { 206 func numberOfSections(in tableView: UITableView) -> Int {
@@ -235,7 +235,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource @@ -235,7 +235,7 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource
235 } 235 }
236 236
237 func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 237 func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
238 - 238 +
239 } 239 }
240 240
241 func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 241 func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
@@ -253,27 +253,28 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource @@ -253,27 +253,28 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource
253 //进入身份认证页面 253 //进入身份认证页面
254 254
255 }else if collModel.userAuth == -1{//审核失败 255 }else if collModel.userAuth == -1{//审核失败
  256 +// showMessage(message: "审核失败")
256 257
257 } 258 }
  259 + if UserInfoManager.shared.userInfo.userMsgUsers?.verifyUsers.count ?? 0 > 0{
  260 + //实名认证过->身份管理页面
  261 + let listModel = StandListModel()
  262 + listModel.id = Int(self.channelId) ?? 0
  263 + listModel.name = ""
  264 + let vc = CNLiveDigitalRealManageController()
  265 + vc.listModel = listModel
  266 + self.navigationController?.pushViewController(vc, animated: true)
  267 +
  268 + }else{
  269 + //未实名认证->实名认证
  270 + let vc = CNLiveRealNameAuthController()
  271 + vc.channelId = self.channelId
  272 + vc.vsid = self.vsid
  273 + vc.sid = self.sid
  274 + self.navigationController?.pushViewController(vc, animated: true)
  275 + }
258 } 276 }
259 -  
260 - if UserInfoManager.shared.userInfo.userMsgUsers?.verifyUsers.count ?? 0 > 0{  
261 - //实名认证过->身份管理页面  
262 -  
263 - //身份管理页面->身份认证页面  
264 - let listModel = StandListModel()  
265 - listModel.id = Int(self.channelId) ?? 0  
266 - listModel.name = ""  
267 - self.navigationController?.pushViewController(CNLiveMineInputViewController.init(listModel: listModel, authType: .person), animated: pushAnimated)  
268 -  
269 - }else{  
270 - //未实名认证->实名认证  
271 - let vc = CNLiveRealNameAuthController()  
272 - vc.channelId = self.channelId  
273 - vc.vsid = self.vsid  
274 - vc.sid = self.sid  
275 - self.navigationController?.pushViewController(vc, animated: true)  
276 - } 277 +
277 } 278 }
278 279
279 //行业认证列表 280 //行业认证列表
@@ -295,11 +296,12 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource @@ -295,11 +296,12 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource
295 self.dataArray = NSMutableArray(array: totalTwoChildsArr) 296 self.dataArray = NSMutableArray(array: totalTwoChildsArr)
296 self.tableView.reloadData() 297 self.tableView.reloadData()
297 }else{ 298 }else{
298 - 299 + //没有行业列表 ,提示暂无内容
  300 + self.show17Alert()
299 } 301 }
300 } 302 }
301 }else{ 303 }else{
302 - 304 +
303 } 305 }
304 } 306 }
305 } 307 }
@@ -338,4 +340,59 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource @@ -338,4 +340,59 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource
338 } 340 }
339 } 341 }
340 } 342 }
  343 +
  344 + let delegate = UIApplication.shared.delegate as! AppDelegate
  345 + /// 未认证-inputType17时弹窗背景图
  346 + lazy var alertBgImgView:UIImageView = {
  347 + let alertBgImgView:UIImageView = UIImageView()
  348 + alertBgImgView.tag = 20001
  349 + alertBgImgView.isUserInteractionEnabled = true
  350 + let ges = UITapGestureRecognizer(target: self, action: #selector(alertBgImgViewClickAction))
  351 + alertBgImgView.addGestureRecognizer(ges)
  352 +
  353 + return alertBgImgView
  354 + }()
  355 + lazy var alertBgView:UIView = {
  356 + let alertBgView:UIView = UIView(frame: CGRect(x: 0, y: 0, width: KSreenWidth, height: KSreenHeight))
  357 + alertBgView.backgroundColor = HexColor("#000000")
  358 + alertBgView.alpha = 0.6
  359 + alertBgView.isUserInteractionEnabled = true
  360 + alertBgView.tag = 20000
  361 +
  362 + let ges = UITapGestureRecognizer(target: self, action: #selector(alertBgViewClickAction))
  363 + alertBgView.addGestureRecognizer(ges)
  364 +
  365 + return alertBgView
  366 + }()
  367 + // MARK: - 点击弹窗,按类型跳转
  368 + @objc func alertBgImgViewClickAction() {
  369 + self.hiden17Alert()
  370 + }
  371 + @objc func alertBgViewClickAction() {
  372 + //点击蒙版隐藏view
  373 + self.hiden17Alert()
  374 + }
  375 + //弹出弹窗
  376 + func show17Alert(){
  377 +
  378 + delegate.window?.addSubview(self.alertBgView)
  379 + delegate.window?.addSubview(self.alertBgImgView)
  380 + alertBgImgView.snp.makeConstraints { make in
  381 + make.centerX.equalToSuperview()
  382 + make.centerY.equalToSuperview()
  383 + make.width.equalTo(KSreenWidth-80)
  384 + make.height.equalTo((KSreenWidth-80)*170.5/295)
  385 + }
  386 +
  387 + self.alertBgImgView.image = UIImage(named: "auth_alert_unOpen")
  388 + }
  389 + func hiden17Alert(){
  390 + delegate.window?.subviews.forEach({ view in
  391 + if view.tag >= 20000{
  392 + view.removeFromSuperview()
  393 + }
  394 + })
  395 + self.navigationController?.popViewController(animated: true)
  396 + }
  397 +
341 } 398 }
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/CNLiveDigitalRealManageController.swift 0 → 100644
  1 +//
  2 +// CNLiveDigitalRealManageController.swift
  3 +// metaCode
  4 +//
  5 +// Created by zx on 2024/6/20.
  6 +// 实名对象身份管理页面
  7 +
  8 +import Foundation
  9 +import SnapKit
  10 +import QMUIKit
  11 +
  12 +class CNLiveDigitalRealManageController:CNLiveBaseViewController,UITableViewDataSource,UITableViewDelegate{
  13 +
  14 + var currSelectIndex:Int = 0
  15 + var listModel:StandListModel?
  16 +
  17 +
  18 + lazy var bgImgView :UIImageView = {
  19 + let iconImgView = UIImageView()
  20 + iconImgView.image = UIImage(named: "auth_blueBg")
  21 + return iconImgView
  22 + }()
  23 +
  24 + lazy var yuanmaLabel: UILabel = {
  25 + let titleLabel = UILabel()
  26 + titleLabel.textColor = .white
  27 + titleLabel.text = "元码数字认证"
  28 + titleLabel.font = Font_24
  29 + titleLabel.adjustsFontSizeToFitWidth=true
  30 + return titleLabel
  31 + }()
  32 +
  33 + lazy var yuanmaDescLabel: UILabel = {
  34 + let titleLabel = UILabel()
  35 + titleLabel.textColor = .white
  36 + titleLabel.text = "数字认证,需绑定实名身份\n请选择大学生归任搭建沟通的桥梁 "
  37 + titleLabel.numberOfLines = 2
  38 + titleLabel.font = Font_13
  39 + return titleLabel
  40 + }()
  41 +
  42 + lazy var whiteBgView :UIView = {
  43 + let whiteBgView = UIView()
  44 + whiteBgView.backgroundColor = .white
  45 + whiteBgView.layer.cornerRadius = 12
  46 + whiteBgView.clipsToBounds = true
  47 + return whiteBgView
  48 + }()
  49 +
  50 + lazy var whiteBgTopView :UIView = {
  51 + let whiteBgView = UIView()
  52 + whiteBgView.backgroundColor = HexColor("#E8EFFE")
  53 + whiteBgView.layer.cornerRadius = 12
  54 + whiteBgView.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner]
  55 + whiteBgView.clipsToBounds = true
  56 + return whiteBgView
  57 + }()
  58 + lazy var mineRealNameLabel: UILabel = {
  59 + let titleLabel = UILabel()
  60 + titleLabel.textColor = HexColor("#333333")
  61 + titleLabel.text = "我的实名对象"
  62 + titleLabel.font = Font_16
  63 + return titleLabel
  64 + }()
  65 + lazy var addRealNameBtn: UIButton = {
  66 + let nextBtn = UIButton(type: .custom)
  67 + nextBtn.setTitle("新增实名", for: .normal)
  68 + nextBtn.setTitleColor(HexColor("#1961FE"), for: .normal)
  69 + nextBtn.titleLabel?.font = UIFont(name: "PingFangSC-Medium", size: 13.0)
  70 + nextBtn.addTarget(self, action: #selector(addRealBtnAction), for: .touchUpInside)
  71 + return nextBtn
  72 + }()
  73 +
  74 +
  75 +
  76 + lazy var dataArray :NSMutableArray = {
  77 + let dataArray = NSMutableArray()
  78 + return dataArray
  79 + }()
  80 + let kCNLiveRealManageCellIdentifier = "kCNLiveRealManageCellIdentifier"
  81 + lazy var tableView : UITableView = {
  82 + let tableView = UITableView(frame: .zero, style: .plain)
  83 + tableView.dataSource = self
  84 + tableView.delegate = self
  85 + tableView.separatorStyle = .none
  86 + tableView.tableFooterView = UIView.init()
  87 + tableView.register(CNLiveRealManageCell.self, forCellReuseIdentifier: kCNLiveRealManageCellIdentifier)
  88 + return tableView
  89 + }()
  90 +
  91 + lazy var nextBtn: UIButton = {
  92 + let nextBtn = UIButton(type: .custom)
  93 + nextBtn.setTitle("确定", for: .normal)
  94 + nextBtn.setTitleColor(.white, for: .normal)
  95 + nextBtn.backgroundColor = HexColor("#1961FE")
  96 + nextBtn.layer.cornerRadius = 22
  97 + nextBtn.clipsToBounds = true
  98 + nextBtn.addTarget(self, action: #selector(sureBtnAction), for: .touchUpInside)
  99 + return nextBtn
  100 + }()
  101 +
  102 + override func viewDidLoad() {
  103 + super.viewDidLoad()
  104 + navigationBarHidden = false
  105 + titleName = "元码数字认证"
  106 + self.initUI()
  107 + }
  108 +
  109 + func initUI(){
  110 + self.view.backgroundColor = HexColor("#F9F9F9")
  111 + self.view.addSubview(self.bgImgView)
  112 + self.bgImgView.snp.makeConstraints { make in
  113 + make.top.equalTo(KNavigationHeight)
  114 + make.left.right.equalToSuperview()
  115 + make.height.equalTo(KSreenWidth*457/375)
  116 + }
  117 +
  118 + self.view.addSubview(self.yuanmaLabel)
  119 + self.yuanmaLabel.snp.makeConstraints { make in
  120 + make.top.equalTo(KNavigationHeight+adapt_length(length: 45))
  121 + make.left.equalTo(adapt_length(length: 30))
  122 + }
  123 +
  124 + self.view.addSubview(self.yuanmaDescLabel)
  125 + self.yuanmaDescLabel.snp.makeConstraints { make in
  126 + make.top.equalTo(self.yuanmaLabel.snp.bottom).offset(adapt_length(length: 10))
  127 + make.left.equalTo(adapt_length(length: 30))
  128 + }
  129 +
  130 + self.view.addSubview(self.whiteBgView)
  131 + self.whiteBgView.snp.makeConstraints { make in
  132 + make.top.equalTo(self.yuanmaDescLabel.snp.bottom).offset(adapt_length(length: 31))
  133 + make.bottom.equalToSuperview().offset(-15)
  134 + make.left.equalTo(15)
  135 + make.right.equalToSuperview().offset(-15)
  136 + }
  137 +
  138 + self.whiteBgView.addSubview(self.nextBtn)
  139 + self.nextBtn.snp.makeConstraints { make in
  140 + make.bottom.equalToSuperview().offset(-15)
  141 + make.height.equalTo(44)
  142 + make.left.equalTo(15)
  143 + make.right.equalToSuperview().offset(-15)
  144 + }
  145 +
  146 + self.whiteBgView.addSubview(self.tableView)
  147 + self.tableView.snp.makeConstraints { make in
  148 + make.top.equalTo(53)
  149 + make.left.right.equalToSuperview()
  150 + make.bottom.equalTo(self.nextBtn.snp.top).offset(-15)
  151 + }
  152 +
  153 + self.whiteBgView.addSubview(self.whiteBgTopView)
  154 + self.whiteBgTopView.snp.makeConstraints { make in
  155 + make.height.equalTo(53)
  156 + make.left.top.equalToSuperview()
  157 + make.width.equalToSuperview()
  158 + }
  159 +
  160 + self.whiteBgTopView.addSubview(self.mineRealNameLabel)
  161 + self.mineRealNameLabel.snp.makeConstraints { make in
  162 + make.top.equalTo(15)
  163 + make.left.equalTo(20)
  164 + make.height.equalTo(23)
  165 + make.width.equalTo(100)
  166 + }
  167 +
  168 + self.whiteBgTopView.addSubview(self.addRealNameBtn)
  169 + self.addRealNameBtn.snp.makeConstraints { make in
  170 + make.right.equalToSuperview().offset(-20)
  171 + make.centerY.equalTo(self.mineRealNameLabel.snp.centerY)
  172 + }
  173 +
  174 + }
  175 +
  176 + deinit {
  177 +
  178 + }
  179 +
  180 + //确定
  181 + @objc func sureBtnAction(){
  182 +
  183 + //身份管理页面->身份认证页面
  184 + self.navigationController?.pushViewController(CNLiveMineInputViewController.init(listModel: self.listModel!, authType: .person), animated: pushAnimated)
  185 + }
  186 + //新增实名
  187 + @objc func addRealBtnAction(){
  188 +
  189 + }
  190 +
  191 + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  192 + return UserInfoManager.shared.userInfo.userMsgUsers?.verifyUsers.count ?? 0
  193 + }
  194 +
  195 + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  196 + guard let cell = tableView.dequeueReusableCell(withIdentifier: kCNLiveRealManageCellIdentifier) as? CNLiveRealManageCell
  197 + else {
  198 + let cell = CNLiveRealManageCell()
  199 + return cell
  200 + }
  201 + let userMdl = UserInfoManager.shared.userInfo.userMsgUsers?.verifyUsers[indexPath.row] as? MineGetUserMsgVerifyUsersModel
  202 + if currSelectIndex == indexPath.row{
  203 + cell.currIsSelect = true
  204 + }else{
  205 + cell.currIsSelect = false
  206 + }
  207 +
  208 + cell.usersModel = userMdl
  209 + return cell
  210 + }
  211 +
  212 + func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  213 + currSelectIndex = indexPath.row
  214 + self.tableView.reloadData()
  215 + }
  216 +
  217 + func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
  218 + return 15+53
  219 + }
  220 +
  221 +}
  222 +
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/CNLiveRealManageCell.swift 0 → 100644
  1 +//
  2 +// CNLiveRealManageCell.swift
  3 +// metaCode
  4 +//
  5 +// Created by zx on 2024/6/20.
  6 +// 实名身份管理cell
  7 +
  8 +import Foundation
  9 +
  10 +class CNLiveRealManageCell:UITableViewCell{
  11 +
  12 + var currIsSelect:Bool = false
  13 +
  14 + var _usersModel : MineGetUserMsgVerifyUsersModel?
  15 + var usersModel : MineGetUserMsgVerifyUsersModel? {
  16 + get{
  17 + _usersModel
  18 + }
  19 + set{
  20 + _usersModel = newValue!
  21 + setupNewUI(model: _usersModel!)
  22 + }
  23 + }
  24 +
  25 + lazy var bgView :UIView = {
  26 + let bottomNavView = UIView()
  27 + bottomNavView.backgroundColor = HexColor("#F7F7F7")
  28 + bottomNavView.layer.cornerRadius = 8
  29 + bottomNavView.clipsToBounds = true
  30 + return bottomNavView
  31 + }()
  32 + lazy var nameLabel: UILabel = {
  33 + let titleLabel = UILabel.init()
  34 + titleLabel.textColor = HexColor("#333333")
  35 + titleLabel.textAlignment = .left
  36 + titleLabel.font = UIFont(name: "PingFangSC-Medium", size: 16.0)
  37 + titleLabel.adjustsFontSizeToFitWidth=true
  38 + return titleLabel
  39 + }()
  40 +
  41 +
  42 +
  43 + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
  44 + super.init(style: style, reuseIdentifier: reuseIdentifier)
  45 + self.selectionStyle = .none
  46 + self.initUI()
  47 + }
  48 +
  49 + required init?(coder: NSCoder) {
  50 + fatalError("init(coder:) has not been implemented")
  51 + }
  52 +
  53 + func initUI(){
  54 + self.contentView.addSubview(self.bgView)
  55 + self.bgView.snp.makeConstraints { make in
  56 + make.top.equalTo(15)
  57 + make.height.equalTo(53)
  58 + make.left.equalTo(20)
  59 + make.right.equalToSuperview().offset(-20)
  60 + }
  61 +
  62 + self.bgView.addSubview(self.nameLabel)
  63 + self.nameLabel.snp.makeConstraints { make in
  64 + make.centerY.equalToSuperview()
  65 + make.left.equalTo(15)
  66 + make.width.equalToSuperview().offset(-50)
  67 + }
  68 +
  69 + }
  70 +
  71 + func setupNewUI(model:MineGetUserMsgVerifyUsersModel){
  72 + self.nameLabel.text = model.name
  73 + if self.currIsSelect
  74 + {//当前cell被选择
  75 + self.bgView.layer.borderColor = HexColor("#1961FE")?.cgColor
  76 + self.bgView.layer.borderWidth = 0.5
  77 + self.bgView.backgroundColor = HexColor("#E8EFFE")
  78 + self.nameLabel.textColor = HexColor("#1961FE")
  79 + }else{
  80 + //cell没选择
  81 + self.bgView.layer.borderColor = HexColor("#1961FE")?.cgColor
  82 + self.bgView.layer.borderWidth = 0
  83 + self.nameLabel.textColor = HexColor("#333333")
  84 + self.bgView.backgroundColor = HexColor("#F7F7F7")
  85 + }
  86 + }
  87 +}
metaCode/Classes/Main/HomePage/View/VerticalViews/MainView/CNMainView.swift
@@ -649,7 +649,6 @@ class CNFrontMainView : UIView{ @@ -649,7 +649,6 @@ class CNFrontMainView : UIView{
649 if self.idModel!.userAuth{ 649 if self.idModel!.userAuth{
650 //我的数字认证 650 //我的数字认证
651 navigationViewController().pushViewController(CNLiveDigitalAssetsController(), animated: true) 651 navigationViewController().pushViewController(CNLiveDigitalAssetsController(), animated: true)
652 - print("1")  
653 }else{ 652 }else{
654 //个人认证 3个按钮 653 //个人认证 3个按钮
655 print("1") 654 print("1")
@@ -710,14 +709,18 @@ class CNFrontMainView : UIView{ @@ -710,14 +709,18 @@ class CNFrontMainView : UIView{
710 // self.getStandInfo(identityId:String(self.idModel!.id)) 709 // self.getStandInfo(identityId:String(self.idModel!.id))
711 } 710 }
712 @objc func StandBtn2Action() { 711 @objc func StandBtn2Action() {
  712 + self.show17Alert(index: 2)
  713 +
713 //跳转到 企业认证页面 714 //跳转到 企业认证页面
714 - self.btnClickAuthType = .enterprise  
715 - self.getStandInfo(identityId:String(self.idModel!.id)) 715 +// self.btnClickAuthType = .enterprise
  716 +// self.getStandInfo(identityId:String(self.idModel!.id))
716 } 717 }
717 @objc func StandBtn3Action() { 718 @objc func StandBtn3Action() {
  719 + self.show17Alert(index: 3)
  720 +
718 //跳转到 机构认证页面 721 //跳转到 机构认证页面
719 - self.btnClickAuthType = .agency  
720 - self.getStandInfo(identityId:String(self.idModel!.id)) 722 +// self.btnClickAuthType = .agency
  723 +// self.getStandInfo(identityId:String(self.idModel!.id))
721 } 724 }
722 725
723 // MARK: - 点击弹窗,按类型跳转 726 // MARK: - 点击弹窗,按类型跳转
@@ -863,14 +866,15 @@ class CNFrontMainView : UIView{ @@ -863,14 +866,15 @@ class CNFrontMainView : UIView{
863 // let subTitle = self.idModel?.standInfoBaseModel?.enterpriseAuthInfos.first?.subTitle 866 // let subTitle = self.idModel?.standInfoBaseModel?.enterpriseAuthInfos.first?.subTitle
864 // subTitleModel = jsonToModel(subTitle ?? "", MineStandInfoSubTitleModel.self) as! MineStandInfoSubTitleModel 867 // subTitleModel = jsonToModel(subTitle ?? "", MineStandInfoSubTitleModel.self) as! MineStandInfoSubTitleModel
865 // alertBgImgStr = subTitleModel.image ?? "" 868 // alertBgImgStr = subTitleModel.image ?? ""
866 - alertBgImgStr = ""//改成默认图 869 + alertBgImgStr = "auth_alert_unOpen"//改成默认图
867 }else if index == 3{ 870 }else if index == 3{
868 // let subTitle = self.idModel?.standInfoBaseModel?.agencyAuthInfos.first?.subTitle 871 // let subTitle = self.idModel?.standInfoBaseModel?.agencyAuthInfos.first?.subTitle
869 // subTitleModel = jsonToModel(subTitle ?? "", MineStandInfoSubTitleModel.self) as! MineStandInfoSubTitleModel 872 // subTitleModel = jsonToModel(subTitle ?? "", MineStandInfoSubTitleModel.self) as! MineStandInfoSubTitleModel
870 // alertBgImgStr = subTitleModel.image ?? "" 873 // alertBgImgStr = subTitleModel.image ?? ""
871 - alertBgImgStr = ""//改成默认图 874 + alertBgImgStr = "auth_alert_unOpen"//改成默认图
872 } 875 }
873 - self.alertBgImgView.kf.setImage(with: URL(string: alertBgImgStr)) 876 + self.alertBgImgView.image = UIImage(named: "auth_alert_unOpen")
  877 +// self.alertBgImgView.kf.setImage(with: URL(string: alertBgImgStr))
874 self.standInfoSubTitleModel = subTitleModel 878 self.standInfoSubTitleModel = subTitleModel
875 } 879 }
876 func hiden17Alert(){ 880 func hiden17Alert(){