Commit 54bb970c authored by lujunye's avatar lujunye

运单列表

parent 7e2e0ddd
......@@ -13,9 +13,11 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
@IBOutlet weak var contentView: UIView!
@IBAction func listControlAction(_ sender: Any) {
print("调用筛选列表")
blackBtn.isHidden = !blackBtn.isHidden
preView.isHidden = !preView.isHidden
}
@IBOutlet weak var preBtnView: UIView!
@IBOutlet weak var preView: UIView!
@IBOutlet weak var listView: UITableView!
......@@ -27,6 +29,11 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
@IBOutlet weak var orderNumTF: UITextField!
@IBOutlet weak var blackBtn: UIButton!
@IBAction func closeAction(_ sender: UIButton) {
sender.isHidden = true
preView.isHidden = true
}
var searchV : SearchBarView? = nil
var datas:Array<Any> = [1,2]
......@@ -113,21 +120,19 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
break
case "重置":
print("12")
contentView.subviews.forEach { (view) in
view.subviews.forEach { (item) in
if item.isKind(of: UITextField.classForCoder()){
print("1")
let tf = item as! UITextField
tf.text = ""
}
if item.isKind(of: UIButton.classForCoder()){
print("2")
let btn = item as! UIButton
btn.isSelected = false
if btn.tag != 996 {
btn.setTitleColor(UIColor(named: "个人中心灰色字体"), for: .normal)
btn.backgroundColor = UIColor(named: "多选按钮背景颜色")
}
contentView.subviews.forEach { (item) in
if item.isKind(of: UITextField.classForCoder()){
print("1")
let tf = item as! UITextField
tf.text = ""
}
if item.isKind(of: UIButton.classForCoder()){
print("2")
let btn = item as! UIButton
btn.isSelected = false
if btn.tag != 996 {
btn.setTitleColor(UIColor(named: "个人中心灰色字体"), for: .normal)
btn.backgroundColor = UIColor(named: "多选按钮背景颜色")
}
}
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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