Commit 6a04a075 authored by Steven杜宇's avatar Steven杜宇

// vip

parent 266069af
////
//// YHVipLevelRightViewController.swift
//// galaxy
////
//// Created by Dufet on 2025/2/21.
//// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
////
//
// YHVipLevelRightViewController.swift
// galaxy
//import UIKit
//
// Created by Dufet on 2025/2/21.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//class YHVipLevelRightViewController: YHBaseViewController {
//
import UIKit
class YHVipLevelRightViewController: YHBaseViewController {
lazy var tableView: UITableView = {
let tableView = UITableView(frame: CGRect.zero, style:.grouped)
tableView.contentInsetAdjustmentBehavior = .never
tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = UIColor.white
tableView.separatorStyle = .none
tableView.register(YHHomeIdentityCell.self, forCellReuseIdentifier: YHHomeIdentityCell.cellReuseIdentifier)
tableView.delegate = self
tableView.dataSource = self
tableView.tableHeaderView = self.headerView
tableView.separatorStyle = .none
return tableView
}()
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
}
extension YHVipLevelRightViewController {
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: YHHomeIdentityCell.cellReuseIdentifier, for: indexPath) as! YHHomeIdentityCell
if 0 <= indexPath.row, indexPath.row < self.imgItems.count {
let item = self.imgItems[indexPath.row]
cell.image = item.img
}
return cell
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if 0 <= indexPath.row, indexPath.row < self.imgItems.count {
let item = self.imgItems[indexPath.row]
return item.getSize().height
}
return KScreenWidth
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return self.imgItems.count
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 0.01
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
return 0.01
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return UIView()
}
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
return UIView()
}
}
// lazy var tableView: UITableView = {
// let tableView = UITableView(frame: CGRect.zero, style:.grouped)
// tableView.contentInsetAdjustmentBehavior = .never
// tableView.showsVerticalScrollIndicator = false
// tableView.backgroundColor = UIColor.white
// tableView.separatorStyle = .none
// tableView.register(YHHomeIdentityCell.self, forCellReuseIdentifier: YHHomeIdentityCell.cellReuseIdentifier)
// tableView.delegate = self
// tableView.dataSource = self
// tableView.tableHeaderView = self.headerView
// tableView.separatorStyle = .none
// return tableView
// }()
//
//
// override func viewDidLoad() {
// super.viewDidLoad()
//
// // Do any additional setup after loading the view.
// }
//}
//
//extension YHVipLevelRightViewController {
//
// func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// let cell = tableView.dequeueReusableCell(withIdentifier: YHHomeIdentityCell.cellReuseIdentifier, for: indexPath) as! YHHomeIdentityCell
// if 0 <= indexPath.row, indexPath.row < self.imgItems.count {
// let item = self.imgItems[indexPath.row]
// cell.image = item.img
// }
// return cell
// }
//
// func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
// if 0 <= indexPath.row, indexPath.row < self.imgItems.count {
// let item = self.imgItems[indexPath.row]
// return item.getSize().height
// }
// return KScreenWidth
// }
//
// func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// return self.imgItems.count
// }
//
// func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
// return 0.01
// }
//
// func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
// return 0.01
// }
//
// func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
// return UIView()
// }
//
// func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
// return UIView()
// }
//}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment