Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
I
IFS-iOS
Project
Project
Details
Activity
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
张杰
IFS-iOS
Commits
192d1ee6
Commit
192d1ee6
authored
Mar 08, 2019
by
jie zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待办跳转逻辑优化
parent
f114718f
Pipeline
#113
failed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
14 deletions
+16
-14
SBSkipTool.swift
IFS/IFS/Expand/Tool/SBSkipTool.swift
+3
-1
HomeContentViewController.swift
IFS/IFS/Main/Home/Controller/HomeContentViewController.swift
+11
-11
Info.plist
IFS/IFS/Resource/Info.plist
+2
-2
No files found.
IFS/IFS/Expand/Tool/SBSkipTool.swift
View file @
192d1ee6
...
...
@@ -35,8 +35,10 @@ class SBSkipTool {
}
}
func
toBillVC
(
state
:
String
,
uuid
:
String
){
let
vc
=
TodoViewController
.
instantiateViewController
(
.
Function
)
as!
TodoViewController
zj_getCurrentVC
()?
.
pushVC
(
vc
)
switch
state
{
case
"submit"
:
case
"submit"
,
"init"
:
let
lindanVC
=
HomeLinDanController
.
instantiateViewController
(
.
Function
)
as!
HomeLinDanController
lindanVC
.
model
=
TodoData
(
fromJson
:
JSON
(
rawValue
:
""
))
lindanVC
.
model
.
entityUuid
=
uuid
...
...
IFS/IFS/Main/Home/Controller/HomeContentViewController.swift
View file @
192d1ee6
...
...
@@ -29,17 +29,17 @@ class HomeContentViewController: BaseViewController {
addChildContentVc
()
//接收通知处理页面跳转逻辑
NotificationCenter
.
default
.
rx
.
notification
(
Notification
.
Name
(
rawValue
:
SELECT_HOME_PAGE
))
.
subscribe
(
onNext
:
{[
weak
self
]
(
notice
)
in
//
print(notice)
guard
notice
.
object
!=
nil
else
{
print
(
"没有指定页面下标"
)
return
}
let
index
=
notice
.
object
as!
Int
self
?
.
contentSegmented
.
selectedSegmentIndex
=
index
self
?
.
updateScroll
(
with
:
index
)
})
.
disposed
(
by
:
disposeBag
)
//
NotificationCenter.default.rx.notification(Notification.Name(rawValue: SELECT_HOME_PAGE)).subscribe(onNext: {[weak self] (notice) in
//
//
guard notice.object != nil else {
//
print("没有指定页面下标")
//
return
//
}
//
let index = notice.object as! Int
//
self?.contentSegmented.selectedSegmentIndex = index
//
self?.updateScroll(with: index)
//
//
}).disposed(by: disposeBag)
}
...
...
IFS/IFS/Resource/Info.plist
View file @
192d1ee6
...
...
@@ -17,9 +17,9 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.
1.9
<
/string
>
<
string
>
1.
2.0
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.
1.9
<
/string
>
<
string
>
1.
2.0
<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
...
...
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