Commit a03aa44b authored by lujunye's avatar lujunye

延长提示时间,

parent 563cc858
...@@ -92,9 +92,16 @@ class GYS_FX_Product_ListVc: BaseViewController ,PagingViewControllerDelegate,UI ...@@ -92,9 +92,16 @@ class GYS_FX_Product_ListVc: BaseViewController ,PagingViewControllerDelegate,UI
@objc func getNoti(noti:Notification){ @objc func getNoti(noti:Notification){
viewControllers.forEach { (vc) in let noti_str = String(describing: noti.userInfo!["intro"])
vc.isUpData = true
vc.home_list_tbv.mj_header?.beginRefreshing() if noti_str.contains("铺货"){
let vc = viewControllers.first
vc?.isUpData = true
vc?.home_list_tbv.mj_header?.beginRefreshing()
}else{
let vc = viewControllers.last
vc?.isUpData = true
vc?.home_list_tbv.mj_header?.beginRefreshing()
} }
} }
...@@ -308,7 +315,6 @@ class GYS_FX_Product_ListVc: BaseViewController ,PagingViewControllerDelegate,UI ...@@ -308,7 +315,6 @@ class GYS_FX_Product_ListVc: BaseViewController ,PagingViewControllerDelegate,UI
guard let item = pagingItem as? PagingIndexItem else { return} guard let item = pagingItem as? PagingIndexItem else { return}
if selectIndex != item.index { if selectIndex != item.index {
selectIndex = item.index selectIndex = item.index
let vc = viewControllers[selectIndex] let vc = viewControllers[selectIndex]
if !vc.isUpData { if !vc.isUpData {
vc.home_list_tbv.mj_header?.beginRefreshing() vc.home_list_tbv.mj_header?.beginRefreshing()
......
...@@ -26,10 +26,11 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS ...@@ -26,10 +26,11 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
"shop_id":shop_id as Any, "shop_id":shop_id as Any,
"action":action] "action":action]
spreadGoods(dic) { (data) in spreadGoods(dic) { (data) in
HUD.flash(.label(intro), delay: 1.2) HUD.flash(.label(intro), delay: 2)
// self.home_list_tbv.mj_header?.beginRefreshing() self.home_list_tbv.mj_header?.beginRefreshing()
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "fx_action"), object:nil) // NotificationCenter.default.post(name: NSNotification.Name(rawValue: "fx_action"), object:nil)
// NotificationCenter.default.post(name: NSNotification.Name(rawValue: "fx_action"), object: nil, userInfo: ["intro":intro]) NotificationCenter.default.post(name: NSNotification.Name(rawValue: "fx_action"), object: nil, userInfo: ["intro":intro])
} failture: { (err) in } failture: { (err) in
} }
} }
......
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