CNLiveDigitalMineRealNameController.swift 2.16 KB
//
//  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
    }

}