//
|
// ActivitySignupListSubVC.swift
|
// WanPai
|
//
|
// Created by 杨锴 on 2023/6/14.
|
//
|
|
import UIKit
|
import JQTools
|
|
class ActivitySignupListSubVC: BaseVC {
|
|
enum SignupType:Int {
|
case all = 0
|
case ongoing
|
case over
|
case prepare
|
case cancel
|
}
|
|
var signupType:SignupType!
|
|
lazy private var tableView:UITableView = {
|
let tableView = UITableView(frame: .zero, style: .plain)
|
return tableView
|
}()
|
|
|
init(type:SignupType) {
|
super.init(nibName: nil, bundle: nil)
|
self.signupType = type
|
}
|
|
required init?(coder: NSCoder) {
|
fatalError("init(coder:) has not been implemented")
|
}
|
|
override func viewDidLoad() {
|
super.viewDidLoad()
|
view.backgroundColor = .jq_randomColor
|
}
|
|
override func setUI() {
|
view.addSubview(tableView)
|
tableView.delegate = self
|
tableView.dataSource = self
|
tableView.register(UINib(nibName: "ActivityInfoTCell", bundle: nil), forCellReuseIdentifier: "_ActivityInfoTCell")
|
tableView.snp.makeConstraints { make in
|
make.edges.equalToSuperview()
|
}
|
}
|
}
|
|
extension ActivitySignupListSubVC:UITableViewDelegate{
|
|
}
|
|
extension ActivitySignupListSubVC:UITableViewDataSource{
|
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
let cell = tableView.dequeueReusableCell(withIdentifier: "_ActivityInfoTCell") as! ActivityInfoTCell
|
return cell
|
}
|
|
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
return 5
|
}
|
}
|