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
6f7ca71f
Commit
6f7ca71f
authored
Jun 03, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善工作中心
parent
ee0bfbc8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/订单列表/OrderListViewController.swift
...latform/ViewController/订单列表/OrderListViewController.swift
+12
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
6f7ca71f
No preview for this file type
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
6f7ca71f
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/订单列表/OrderListViewController.swift
View file @
6f7ca71f
...
...
@@ -31,6 +31,10 @@ class OrderListViewController: BaseViewController ,UISearchBarDelegate, SearchBa
var
searchV
:
SearchBarView
?
=
nil
@IBOutlet
weak
var
contentView
:
UIView
!
@IBOutlet
weak
var
searchBgView
:
UIView
!
//头部滚动视图
weak
var
pagingVC
:
PagingViewController
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -49,7 +53,6 @@ class OrderListViewController: BaseViewController ,UISearchBarDelegate, SearchBa
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
//头部滚动视图
let
pagingViewController
=
PagingViewController
(
viewControllers
:
viewControllers
)
pagingViewController
.
indicatorColor
=
UIColor
.
init
(
named
:
"蓝色字体颜色"
)
!
pagingViewController
.
menuItemSize
=
.
fixed
(
width
:
0
,
height
:
44*
glscale
)
...
...
@@ -64,12 +67,20 @@ class OrderListViewController: BaseViewController ,UISearchBarDelegate, SearchBa
contentView
.
addSubview
(
pagingViewController
.
view
)
contentView
.
constrainToEdges
(
pagingViewController
.
view
)
pagingViewController
.
didMove
(
toParent
:
self
)
pagingVC
=
pagingViewController
//MARK:--添加个刷新通知
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
refreshingByOrderHavChange
)
,
name
:
NSNotification
.
Name
(
rawValue
:
"orderChange"
),
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
jpushServiceNotification(notion:)
)
,
name
:
NSNotification
.
Name
(
rawValue
:
"jpushServiceNotification0"
),
object
:
nil
)
//跳转对应的头部视图
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
orderNavChange
)
,
name
:
NSNotification
.
Name
(
rawValue
:
"orderNavChange"
),
object
:
nil
)
}
@objc
func
orderNavChange
(
notion
:
Notification
){
let
dic
=
notion
.
userInfo
pagingVC
!.
select
(
index
:
dic
!
[
"tag"
]
as
Any
as!
Int
,
animated
:
true
)
}
//MARK:--jpushServiceNotification
@objc
func
jpushServiceNotification
(
notion
:
Notification
)
{
...
...
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