Commit a03aa44b authored by lujunye's avatar lujunye

延长提示时间,

parent 563cc858
......@@ -92,9 +92,16 @@ class GYS_FX_Product_ListVc: BaseViewController ,PagingViewControllerDelegate,UI
@objc func getNoti(noti:Notification){
viewControllers.forEach { (vc) in
vc.isUpData = true
vc.home_list_tbv.mj_header?.beginRefreshing()
let noti_str = String(describing: noti.userInfo!["intro"])
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
guard let item = pagingItem as? PagingIndexItem else { return}
if selectIndex != item.index {
selectIndex = item.index
let vc = viewControllers[selectIndex]
if !vc.isUpData {
vc.home_list_tbv.mj_header?.beginRefreshing()
......
......@@ -26,10 +26,11 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
"shop_id":shop_id as Any,
"action":action]
spreadGoods(dic) { (data) in
HUD.flash(.label(intro), delay: 1.2)
// 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, userInfo: ["intro":intro])
HUD.flash(.label(intro), delay: 2)
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, userInfo: ["intro":intro])
} 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