Commit 98473f94 authored by lujunye's avatar lujunye

时间viewBG

parent 70ac3d07
...@@ -10,6 +10,8 @@ import UIKit ...@@ -10,6 +10,8 @@ import UIKit
class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISearchBarDelegate,SearchBarViewDelegate,UITextFieldDelegate{ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISearchBarDelegate,SearchBarViewDelegate,UITextFieldDelegate{
@IBOutlet weak var timeBgH: NSLayoutConstraint!
@IBOutlet weak var scvContentH: NSLayoutConstraint!
@IBOutlet weak var contentView: UIView! @IBOutlet weak var contentView: UIView!
@IBAction func listControlAction(_ sender: Any) { @IBAction func listControlAction(_ sender: Any) {
print("调用筛选列表") print("调用筛选列表")
...@@ -108,9 +110,18 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea ...@@ -108,9 +110,18 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
} }
} }
@objc func closeTimeSelect(){
timeBgH.constant = 0
scvContentH.constant = 680
}
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
let tap = UITapGestureRecognizer(target: self, action: #selector(closeTimeSelect))
contentView.addGestureRecognizer(tap)
timeBgH.constant = 0
scvContentH.constant = 680
setBtnArr() setBtnArr()
orderNumTF.tag = 1 orderNumTF.tag = 1
...@@ -435,6 +446,14 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea ...@@ -435,6 +446,14 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
@IBAction func timeSelectAction(_ sender: Any) { @IBAction func timeSelectAction(_ sender: Any) {
print("选择时间") print("选择时间")
if timeBgH.constant == 235 {
timeBgH.constant = 0
scvContentH.constant = 680
}else{
timeBgH.constant = 235
scvContentH.constant = 915
}
} }
//MARK: - 加载数据 //MARK: - 加载数据
@objc func loadData(){ @objc func loadData(){
......
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