CNLiveDigitalMineRealNameController.swift
2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//
// CNLiveDigitalMineRealNameController.swift
// metaCode
//
// Created by zx on 2024/6/19.
// 我的实名认证
import Foundation
class CNLiveDigitalMineRealNameController:CNLiveBaseViewController,UITableViewDataSource,UITableViewDelegate{
lazy var dataArray :NSMutableArray = {
let dataArray = NSMutableArray()
return dataArray
}()
let kCNLiveDigitalMineRealNameCellIdentifier = "kCNLiveDigitalMineRealNameCellIdentifier"
lazy var tableView : UITableView = {
let tableView = UITableView(frame: CGRect(x: 0, y: KNavigationHeight, width: KSreenWidth, height: KSreenHeight-KNavigationHeight), style: .plain)
tableView.dataSource = self
tableView.delegate = self
tableView.separatorStyle = .none
tableView.tableFooterView = UIView.init()
tableView.register(CNLiveDigitalMineRealNameCell.self, forCellReuseIdentifier: kCNLiveDigitalMineRealNameCellIdentifier)
tableView.backgroundColor = HexColor("#F9F9F9")
return tableView
}()
override func viewDidLoad() {
super.viewDidLoad()
navigationBarHidden = false
titleName = "我的实名认证"
self.view.addSubview(self.tableView)
}
deinit {
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return UserInfoManager.shared.userInfo.userMsgUsers?.verifyUsers.count ?? 0
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
guard let cell = tableView.dequeueReusableCell(withIdentifier: kCNLiveDigitalMineRealNameCellIdentifier) as? CNLiveDigitalMineRealNameCell
else {
let cell = CNLiveDigitalMineRealNameCell()
return cell
}
let userMdl = UserInfoManager.shared.userInfo.userMsgUsers?.verifyUsers[indexPath.row]
cell.userMdl = userMdl
return cell
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 167
}
}