Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
cf6e6249
Commit
cf6e6249
authored
Apr 08, 2024
by
Steven杜宇
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 搜索
parent
fd233090
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+8
-2
YHSearchInfomationVC.swift
...axy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
+1
-0
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+0
-6
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
cf6e6249
...
...
@@ -45,19 +45,25 @@ class YHHomePageViewController: YHBaseViewController {
lazy
var
searchView
:
YHHomeSearchView
=
{
let
view
=
YHHomeSearchView
()
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
didSearchBarClicked
)
)
view
.
addGestureRecognizer
(
tap
)
return
view
}()
lazy
var
homeHeaderView
:
YHHomeHeadView
=
{
let
view
=
YHHomeHeadView
()
return
view
}()
@objc
func
didSearchBarClicked
()
{
let
vc
=
YHSearchInfomationVC
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
private
extension
YHHomePageViewController
{
func
setupUI
()
{
gk_nav
Title
=
""
gk_nav
igationBar
.
isHidden
=
true
view
.
backgroundColor
=
.
white
view
.
addSubview
(
searchView
)
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
View file @
cf6e6249
...
...
@@ -20,6 +20,7 @@ class YHSearchInfomationVC: YHBaseViewController {
lazy
var
searchHistoryView
:
YHSearchInfoHistoryView
=
{
let
view
=
YHSearchInfoHistoryView
(
frame
:
CGRect
(
x
:
0
,
y
:
searchBar
.
frame
.
maxY
+
8
,
width
:
KScreenWidth
,
height
:
KScreenHeight
-
searchBar
.
frame
.
maxY
-
8
))
view
.
isHidden
=
true
view
.
selectBlock
=
{
[
weak
self
]
text
in
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
cf6e6249
...
...
@@ -198,12 +198,6 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
if
(
indexPath
.
row
>=
items
.
count
)
{
return
}
// if true {
// let vc = YHSearchInfomationVC()
// self.navigationController?.pushViewController(vc)
// return
// }
if
!
checkLogin
()
{
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginViewController
())
vc
.
modalPresentationStyle
=
.
custom
...
...
pete谢兆麟
@pete
mentioned in commit
6cfa63cc
·
Apr 08, 2024
mentioned in commit
6cfa63cc
mentioned in commit 6cfa63ccc797482aa5d30609579bd6c73e20f22d
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment