Commit a9e42128 authored by pete谢兆麟's avatar pete谢兆麟

确定按钮隐藏

parent 3945d778
......@@ -14,6 +14,7 @@ class YHCollegeSearchViewController: YHBaseViewController {
var searchCollegeName:String?
var selectBlock:((String?)->Void)?
var colleges:[YHCollegeInfo] = []
var isShowSureButton: Bool = true
let educationRequest:YHEducationRequestViewModel = YHEducationRequestViewModel()
lazy var searchBar: YHCollegeSearchBar = {
......@@ -61,7 +62,7 @@ class YHCollegeSearchViewController: YHBaseViewController {
view.addSubview(tableView)
view.addSubview(searchBar)
searchBar.confirmBtn.isHidden = !isShowSureButton
if let searchCollegeName = searchCollegeName {
searchBar.textField.text = searchCollegeName
}
......
......@@ -345,6 +345,7 @@ extension YHGCEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
}
let vc = YHCollegeSearchViewController()
vc.isShowSureButton = false
vc.orderId = self.orderId
vc.searchCollegeName = detailInfo.college
vc.selectBlock = {
......
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