Commit 192d1ee6 authored by jie zhang's avatar jie zhang

待办跳转逻辑优化

parent f114718f
...@@ -35,8 +35,10 @@ class SBSkipTool { ...@@ -35,8 +35,10 @@ class SBSkipTool {
} }
} }
func toBillVC(state:String,uuid:String){ func toBillVC(state:String,uuid:String){
let vc = TodoViewController.instantiateViewController(.Function) as! TodoViewController
zj_getCurrentVC()?.pushVC(vc)
switch state { switch state {
case "submit": case "submit", "init":
let lindanVC = HomeLinDanController.instantiateViewController(.Function) as! HomeLinDanController let lindanVC = HomeLinDanController.instantiateViewController(.Function) as! HomeLinDanController
lindanVC.model = TodoData(fromJson: JSON(rawValue: "")) lindanVC.model = TodoData(fromJson: JSON(rawValue: ""))
lindanVC.model.entityUuid = uuid lindanVC.model.entityUuid = uuid
......
...@@ -29,17 +29,17 @@ class HomeContentViewController: BaseViewController { ...@@ -29,17 +29,17 @@ class HomeContentViewController: BaseViewController {
addChildContentVc() addChildContentVc()
//接收通知处理页面跳转逻辑 //接收通知处理页面跳转逻辑
NotificationCenter.default.rx.notification(Notification.Name(rawValue: SELECT_HOME_PAGE)).subscribe(onNext: {[weak self] (notice) in // NotificationCenter.default.rx.notification(Notification.Name(rawValue: SELECT_HOME_PAGE)).subscribe(onNext: {[weak self] (notice) in
// print(notice) //
guard notice.object != nil else { // guard notice.object != nil else {
print("没有指定页面下标") // print("没有指定页面下标")
return // return
} // }
let index = notice.object as! Int // let index = notice.object as! Int
self?.contentSegmented.selectedSegmentIndex = index // self?.contentSegmented.selectedSegmentIndex = index
self?.updateScroll(with: index) // self?.updateScroll(with: index)
//
}).disposed(by: disposeBag) // }).disposed(by: disposeBag)
} }
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.1.9</string> <string>1.2.0</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.1.9</string> <string>1.2.0</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>NSAppTransportSecurity</key> <key>NSAppTransportSecurity</key>
......
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