Commit 0a3baf6b authored by lujunye's avatar lujunye

走刷新方法

parent 6cdd3d7d
...@@ -384,7 +384,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -384,7 +384,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
let alertView = GeliAlertView(frame: self.view.window!.bounds) let alertView = GeliAlertView(frame: self.view.window!.bounds)
alertView.delegate = self; alertView.delegate = self;
alertView.tishiLbl.text = "" alertView.tishiLbl.text = ""
alertView.titileLbl.text = "是否发货订单?" alertView.titileLbl.text = "是否发货?"
alertView.rightBtn.setAttributedTitle(NSAttributedString(string: "确认"), for: .normal) alertView.rightBtn.setAttributedTitle(NSAttributedString(string: "确认"), for: .normal)
alertView.rightBtn.tag = rowModel.order_id! alertView.rightBtn.tag = rowModel.order_id!
self.view.window?.addSubview(alertView) self.view.window?.addSubview(alertView)
...@@ -422,6 +422,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -422,6 +422,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
HUD.flash(.labeledSubSuccess(subtitle: "确认成功"),delay: 1.2) HUD.flash(.labeledSubSuccess(subtitle: "确认成功"),delay: 1.2)
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
// self.tableV.mj_header?.beginRefreshing() // self.tableV.mj_header?.beginRefreshing()
self.loadData()
}) { (error) in }) { (error) in
} }
...@@ -432,7 +433,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -432,7 +433,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
// self.tableV.mj_header?.beginRefreshing() // self.tableV.mj_header?.beginRefreshing()
self.loadData()
}) { (error) in }) { (error) in
} }
...@@ -443,7 +444,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -443,7 +444,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
// self.tableV.mj_header?.beginRefreshing() // self.tableV.mj_header?.beginRefreshing()
self.loadData()
}) { (error) in }) { (error) in
} }
...@@ -453,6 +454,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -453,6 +454,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
HUD.flash(.labeledSubSuccess(subtitle: "提交成功"),delay: 1.2) HUD.flash(.labeledSubSuccess(subtitle: "提交成功"),delay: 1.2)
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
// self.tableV.mj_header?.beginRefreshing() // self.tableV.mj_header?.beginRefreshing()
self.loadData()
}) { (error) in }) { (error) in
} }
...@@ -463,6 +465,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -463,6 +465,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
HUD.flash(.labeledSubSuccess(subtitle: "提交成功"),delay: 1.2) HUD.flash(.labeledSubSuccess(subtitle: "提交成功"),delay: 1.2)
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
// self.tableV.mj_header?.beginRefreshing() // self.tableV.mj_header?.beginRefreshing()
self.loadData()
}) { (error) in }) { (error) in
} }
...@@ -471,6 +474,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -471,6 +474,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
HUD.flash(.labeledSubSuccess(subtitle: "提交成功"),delay: 1.2) HUD.flash(.labeledSubSuccess(subtitle: "提交成功"),delay: 1.2)
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
// self.tableV.mj_header?.beginRefreshing() // self.tableV.mj_header?.beginRefreshing()
self.loadData()
}) { (error) in }) { (error) in
} }
...@@ -481,6 +485,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -481,6 +485,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
HUD.flash(.labeledSubSuccess(subtitle: "审批成功"),delay: 1.2) HUD.flash(.labeledSubSuccess(subtitle: "审批成功"),delay: 1.2)
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
// self.tableV.mj_header?.beginRefreshing() // self.tableV.mj_header?.beginRefreshing()
self.loadData()
}) { (error) in }) { (error) in
} }
...@@ -497,6 +502,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -497,6 +502,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
HUD.flash(.labeledSubSuccess(subtitle: "拒绝成功"),delay: 1.2) HUD.flash(.labeledSubSuccess(subtitle: "拒绝成功"),delay: 1.2)
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
// self.tableV.mj_header?.beginRefreshing() // self.tableV.mj_header?.beginRefreshing()
self.loadData()
}) { (error) in }) { (error) in
} }
...@@ -506,6 +512,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -506,6 +512,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
HUD.flash(.labeledSubSuccess(subtitle: "已同意"),delay: 1.2) HUD.flash(.labeledSubSuccess(subtitle: "已同意"),delay: 1.2)
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
// self.tableV.mj_header?.beginRefreshing() // self.tableV.mj_header?.beginRefreshing()
self.loadData()
}) { (error) in }) { (error) in
} }
...@@ -515,6 +522,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -515,6 +522,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
HUD.flash(.labeledSubSuccess(subtitle: "已拒绝"),delay: 1.2) HUD.flash(.labeledSubSuccess(subtitle: "已拒绝"),delay: 1.2)
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
// self.tableV.mj_header?.beginRefreshing() // self.tableV.mj_header?.beginRefreshing()
self.loadData()
}) { (error) in }) { (error) in
} }
...@@ -524,6 +532,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -524,6 +532,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
HUD.flash(.labeledSubSuccess(subtitle: "提交成功"),delay: 1.2) HUD.flash(.labeledSubSuccess(subtitle: "提交成功"),delay: 1.2)
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
// self.tableV.mj_header?.beginRefreshing() // self.tableV.mj_header?.beginRefreshing()
self.loadData()
}) { (error) in }) { (error) in
} }
......
...@@ -205,7 +205,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa ...@@ -205,7 +205,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
let alertView = GeliAlertView(frame: self.view.window!.bounds) let alertView = GeliAlertView(frame: self.view.window!.bounds)
alertView.delegate = self; alertView.delegate = self;
alertView.tishiLbl.text = "" alertView.tishiLbl.text = ""
alertView.titileLbl.text = "是否发货订单?" alertView.titileLbl.text = "是否发货?"
alertView.rightBtn.setAttributedTitle(NSAttributedString(string: "确认"), for: .normal) alertView.rightBtn.setAttributedTitle(NSAttributedString(string: "确认"), for: .normal)
alertView.rightBtn.tag = 1003 alertView.rightBtn.tag = 1003
self.view.window?.addSubview(alertView) self.view.window?.addSubview(alertView)
......
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