Commit 54bb970c authored by lujunye's avatar lujunye

运单列表

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