Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
ef254946
Commit
ef254946
authored
Jun 22, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充搜索功能
parent
e26d340d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/采购单列表/CGDListViewController.swift
...Platform/ViewController/采购单列表/CGDListViewController.swift
+28
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
ef254946
No preview for this file type
GeliBusinessPlatform/ViewController/采购单列表/CGDListViewController.swift
View file @
ef254946
...
...
@@ -82,7 +82,35 @@ class CGDListViewController: BaseViewController ,UISearchBarDelegate, SearchBar
pagingViewController
.
didMove
(
toParent
:
self
)
pagingVC
=
pagingViewController
}
//MARK:--搜索按钮代理
var
keyword
=
""
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
keyword
=
searchBar
.
text
!
viewControllers
.
forEach
{
(
vc
)
in
vc
.
keyword
=
keyword
vc
.
isUpData
=
false
}
let
vc
=
viewControllers
[
selectIndex
]
vc
.
listView
.
mj_header
?
.
beginRefreshing
()
}
//MARK:--取消搜索代理
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
keyword
=
searchBar
.
text
!
viewControllers
.
forEach
{
(
vc
)
in
vc
.
keyword
=
keyword
vc
.
isUpData
=
false
}
let
vc
=
viewControllers
[
selectIndex
]
vc
.
listView
.
mj_header
?
.
beginRefreshing
()
}
}
//MAKR:--调起搜索后添加个蒙版本
var
blackBtnView
:
UIButton
!
=
nil
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
...
...
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