//
|
// RechargeRecordVC.swift
|
// WanPai
|
//
|
// Created by 无故事王国 on 2023/6/28.
|
//
|
|
import UIKit
|
import JQTools
|
import QMUIKit
|
|
class RechargeRecordVC: BaseVC {
|
|
@IBOutlet weak var view_topBg: UIView!
|
@IBOutlet weak var view_cion: JQ_RollNumberLabel!
|
@IBOutlet weak var btn_rechange: UIButton!
|
@IBOutlet weak var view_container: UIView!
|
@IBOutlet weak var tableView: UITableView!
|
@IBOutlet weak var btn_filter: QMUIButton!
|
|
override func viewDidLoad() {
|
super.viewDidLoad()
|
title = "充值明细"
|
view_cion.font = UIFont.init(name: "Impact", size: 36)!
|
view_cion.textColor = .white
|
DispatchQueue.main.asyncAfter(deadline: .now()+2) {
|
self.view_cion.valueNumber = NSNumber(value: 22199)
|
}
|
}
|
|
|
override func setUI() {
|
btn_filter.imagePosition = .right
|
btn_filter.spacingBetweenImageAndTitle = 3
|
let colors = [UIColor(hexStr: "#FD8C02").cgColor,
|
UIColor(hexStr: "#FD7202").cgColor,]
|
view_topBg.jq_gradientColor(colorArr: colors)
|
btn_rechange.jq_gradientNibColor(colorArr: colors, cornerRadius: 20)
|
view_container.jq_addShadows(shadowColor: UIColor(hexStr: "#D5D5D5").withAlphaComponent(0.5), corner: 10, radius: 4, offset: CGSize(width: 0, height: 2), opacity: 1)
|
|
tableView.delegate = self
|
tableView.dataSource = self
|
tableView.separatorStyle = .none
|
tableView.register(UINib(nibName: "BillInfoTCell", bundle: nil), forCellReuseIdentifier:"_BillInfoTCell")
|
}
|
|
@IBAction func datetimeAction(_ sender: UIButton) {
|
CommonDatePickerView.show()
|
}
|
|
|
@IBAction func filterAction(_ sender: QMUIButton) {
|
JQ_MenuView().show(self, tapView: sender, items: ["充值","扣除"], tableHei: 150) { index, str in
|
|
}
|
}
|
|
@IBAction func rechargeAction(_ sender: UIButton) {
|
let vc = RechargeCenterVC()
|
push(vc: vc)
|
}
|
}
|
|
extension RechargeRecordVC:UITableViewDelegate{
|
|
}
|
|
extension RechargeRecordVC:UITableViewDataSource{
|
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
let cell = tableView.dequeueReusableCell(withIdentifier: "_BillInfoTCell") as! BillInfoTCell
|
return cell
|
}
|
|
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
return 50
|
}
|
}
|