Commit 98473f94 authored by lujunye's avatar lujunye

时间viewBG

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