Commit a8620c22 authored by Steven杜宇's avatar Steven杜宇

// 搜索bar

parent 06983ff0
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
045EEEDC2B9F171A0022A143 /* YHQualificationDetailVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE132B9F171A0022A143 /* YHQualificationDetailVC.swift */; }; 045EEEDC2B9F171A0022A143 /* YHQualificationDetailVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE132B9F171A0022A143 /* YHQualificationDetailVC.swift */; };
045EEEDD2B9F171A0022A143 /* YHCollegeNameCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE152B9F171A0022A143 /* YHCollegeNameCell.swift */; }; 045EEEDD2B9F171A0022A143 /* YHCollegeNameCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE152B9F171A0022A143 /* YHCollegeNameCell.swift */; };
045EEEDE2B9F171A0022A143 /* YHEducationInfoCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE162B9F171A0022A143 /* YHEducationInfoCell.swift */; }; 045EEEDE2B9F171A0022A143 /* YHEducationInfoCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE162B9F171A0022A143 /* YHEducationInfoCell.swift */; };
045EEEDF2B9F171A0022A143 /* YHSearchBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE172B9F171A0022A143 /* YHSearchBar.swift */; }; 045EEEDF2B9F171A0022A143 /* YHCollegeSearchBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE172B9F171A0022A143 /* YHCollegeSearchBar.swift */; };
045EEEE12B9F171A0022A143 /* YHMySignatureListViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE1D2B9F171A0022A143 /* YHMySignatureListViewModel.swift */; }; 045EEEE12B9F171A0022A143 /* YHMySignatureListViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE1D2B9F171A0022A143 /* YHMySignatureListViewModel.swift */; };
045EEEE22B9F171A0022A143 /* YHMySignatureDetailViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE1E2B9F171A0022A143 /* YHMySignatureDetailViewModel.swift */; }; 045EEEE22B9F171A0022A143 /* YHMySignatureDetailViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE1E2B9F171A0022A143 /* YHMySignatureDetailViewModel.swift */; };
045EEEE32B9F171A0022A143 /* YHMySignatureListModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE202B9F171A0022A143 /* YHMySignatureListModel.swift */; }; 045EEEE32B9F171A0022A143 /* YHMySignatureListModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045EEE202B9F171A0022A143 /* YHMySignatureListModel.swift */; };
...@@ -447,7 +447,7 @@ ...@@ -447,7 +447,7 @@
045EEE132B9F171A0022A143 /* YHQualificationDetailVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHQualificationDetailVC.swift; sourceTree = "<group>"; }; 045EEE132B9F171A0022A143 /* YHQualificationDetailVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHQualificationDetailVC.swift; sourceTree = "<group>"; };
045EEE152B9F171A0022A143 /* YHCollegeNameCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHCollegeNameCell.swift; sourceTree = "<group>"; }; 045EEE152B9F171A0022A143 /* YHCollegeNameCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHCollegeNameCell.swift; sourceTree = "<group>"; };
045EEE162B9F171A0022A143 /* YHEducationInfoCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHEducationInfoCell.swift; sourceTree = "<group>"; }; 045EEE162B9F171A0022A143 /* YHEducationInfoCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHEducationInfoCell.swift; sourceTree = "<group>"; };
045EEE172B9F171A0022A143 /* YHSearchBar.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHSearchBar.swift; sourceTree = "<group>"; }; 045EEE172B9F171A0022A143 /* YHCollegeSearchBar.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHCollegeSearchBar.swift; sourceTree = "<group>"; };
045EEE1D2B9F171A0022A143 /* YHMySignatureListViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHMySignatureListViewModel.swift; sourceTree = "<group>"; }; 045EEE1D2B9F171A0022A143 /* YHMySignatureListViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHMySignatureListViewModel.swift; sourceTree = "<group>"; };
045EEE1E2B9F171A0022A143 /* YHMySignatureDetailViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHMySignatureDetailViewModel.swift; sourceTree = "<group>"; }; 045EEE1E2B9F171A0022A143 /* YHMySignatureDetailViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHMySignatureDetailViewModel.swift; sourceTree = "<group>"; };
045EEE202B9F171A0022A143 /* YHMySignatureListModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHMySignatureListModel.swift; sourceTree = "<group>"; }; 045EEE202B9F171A0022A143 /* YHMySignatureListModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHMySignatureListModel.swift; sourceTree = "<group>"; };
...@@ -1004,7 +1004,7 @@ ...@@ -1004,7 +1004,7 @@
children = ( children = (
045EEE152B9F171A0022A143 /* YHCollegeNameCell.swift */, 045EEE152B9F171A0022A143 /* YHCollegeNameCell.swift */,
045EEE162B9F171A0022A143 /* YHEducationInfoCell.swift */, 045EEE162B9F171A0022A143 /* YHEducationInfoCell.swift */,
045EEE172B9F171A0022A143 /* YHSearchBar.swift */, 045EEE172B9F171A0022A143 /* YHCollegeSearchBar.swift */,
); );
path = V; path = V;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -2062,7 +2062,7 @@ ...@@ -2062,7 +2062,7 @@
A5C382CA2B5E1F4C00C5E65C /* YHLoginTipsView.swift in Sources */, A5C382CA2B5E1F4C00C5E65C /* YHLoginTipsView.swift in Sources */,
045EEEE92B9F171A0022A143 /* YHFamilyRequestViewModel.swift in Sources */, 045EEEE92B9F171A0022A143 /* YHFamilyRequestViewModel.swift in Sources */,
A5C5B3232B57BF8F00A7C5D1 /* YHDavidCell1.swift in Sources */, A5C5B3232B57BF8F00A7C5D1 /* YHDavidCell1.swift in Sources */,
045EEEDF2B9F171A0022A143 /* YHSearchBar.swift in Sources */, 045EEEDF2B9F171A0022A143 /* YHCollegeSearchBar.swift in Sources */,
A5C5B2FB2B5535DF00A7C5D1 /* YHHomeBannerView.swift in Sources */, A5C5B2FB2B5535DF00A7C5D1 /* YHHomeBannerView.swift in Sources */,
A5ACE94B2B4564F7002C94D2 /* YHHUDRotatingImageView.swift in Sources */, A5ACE94B2B4564F7002C94D2 /* YHHUDRotatingImageView.swift in Sources */,
A5ACE94F2B4564F7002C94D2 /* YhOverlayView.swift in Sources */, A5ACE94F2B4564F7002C94D2 /* YhOverlayView.swift in Sources */,
......
...@@ -17,8 +17,8 @@ class YHCollegeSearchViewController: YHBaseViewController { ...@@ -17,8 +17,8 @@ class YHCollegeSearchViewController: YHBaseViewController {
var lastSearchTime:TimeInterval = 0.0 var lastSearchTime:TimeInterval = 0.0
let educationRequest:YHEducationRequestViewModel = YHEducationRequestViewModel() let educationRequest:YHEducationRequestViewModel = YHEducationRequestViewModel()
lazy var searchBar: YHSearchBar = { lazy var searchBar: YHCollegeSearchBar = {
let bar = YHSearchBar.createBar() let bar = YHCollegeSearchBar.createBar()
return bar return bar
}() }()
...@@ -108,7 +108,7 @@ class YHCollegeSearchViewController: YHBaseViewController { ...@@ -108,7 +108,7 @@ class YHCollegeSearchViewController: YHBaseViewController {
searchBar.snp.makeConstraints { make in searchBar.snp.makeConstraints { make in
make.left.equalToSuperview().offset(16) make.left.equalToSuperview().offset(16)
make.right.equalToSuperview().offset(-16) make.right.equalToSuperview().offset(-16)
make.height.equalTo(YHSearchBar.height) make.height.equalTo(YHCollegeSearchBar.height)
make.top.equalToSuperview().offset(k_Height_NavigationtBarAndStatuBar+16) make.top.equalToSuperview().offset(k_Height_NavigationtBarAndStatuBar+16)
} }
......
// //
// YHSearchBar.swift // YHCollegeSearchBar.swift
// galaxy // galaxy
// //
// Created by edy on 2024/2/22. // Created by edy on 2024/2/22.
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import UIKit import UIKit
class YHSearchBar: UIView { class YHCollegeSearchBar: UIView {
static let height = 40.0 static let height = 40.0
static let confirmBtnHeight = height-8.0 static let confirmBtnHeight = height-8.0
...@@ -61,8 +61,8 @@ class YHSearchBar: UIView { ...@@ -61,8 +61,8 @@ class YHSearchBar: UIView {
super.init(coder: coder) super.init(coder: coder)
} }
static func createBar() -> YHSearchBar { static func createBar() -> YHCollegeSearchBar {
let view = YHSearchBar(frame: CGRect(x: 0, y: 0, width: KScreenWidth-32, height: height)) let view = YHCollegeSearchBar(frame: CGRect(x: 0, y: 0, width: KScreenWidth-32, height: height))
return view return view
} }
......
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