//
|
// ActivityDetailApplyVC.swift
|
// WanPai
|
//
|
// Created by 杨锴 on 2023/6/13.
|
//
|
|
import UIKit
|
import QMUIKit
|
|
class ActivityDetailApplyVC: BaseVC {
|
|
@IBOutlet weak var tableView: UITableView!
|
@IBOutlet weak var btn_addStudent: QMUIButton!
|
@IBOutlet weak var cons_tableHei: NSLayoutConstraint!
|
|
override func viewDidLoad() {
|
super.viewDidLoad()
|
title = "活动详情"
|
}
|
|
override func setUI() {
|
btn_addStudent.imagePosition = .right
|
btn_addStudent.spacingBetweenImageAndTitle = 4
|
tableView.delegate = self
|
tableView.dataSource = self
|
tableView.register(UINib(nibName: "StudentInfo_2_TCell", bundle: nil), forCellReuseIdentifier: "_StudentInfo_2_TCell")
|
}
|
|
@IBAction func addStudentAction(_ sender: QMUIButton) {
|
StudentChooseView.show(itemType:.activity) {
|
|
} needAddClouse: {[weak self] () in
|
let vc = ActivityStudentListVC()
|
self?.push(vc: vc)
|
}
|
}
|
|
@IBAction func applyAction(_ sender: UIButton) {
|
|
StoresInfoView.show({ status in
|
if status{
|
PaymentView.show { stat in
|
let result:PaymentResultVC.PaymentResult = status ? .success:.fail
|
let vc = PaymentResultVC(result: result, objType: .activityApply)
|
vc.modalPresentationStyle = .fullScreen
|
self.present(vc, animated: true)
|
}
|
}
|
})
|
}
|
}
|
|
extension ActivityDetailApplyVC:UITableViewDelegate{
|
|
}
|
|
extension ActivityDetailApplyVC:UITableViewDataSource{
|
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
let cell = tableView.dequeueReusableCell(withIdentifier: "_StudentInfo_2_TCell") as! StudentInfo_2_TCell
|
return cell
|
}
|
|
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
return 2
|
}
|
|
|
}
|