Commit cb3079f7 authored by lujunye's avatar lujunye

补充点击跳转逻辑

parent a753c6b1
...@@ -331,13 +331,24 @@ extension GYS_FX_Product_ListVc: PagingViewControllerDataSource { ...@@ -331,13 +331,24 @@ extension GYS_FX_Product_ListVc: PagingViewControllerDataSource {
func pagingViewController(_ pagingViewController: PagingViewController, didSelectItem pagingItem: PagingItem) { func pagingViewController(_ pagingViewController: PagingViewController, didSelectItem pagingItem: PagingItem) {
guard let item = pagingItem as? PagingIndexItem else { return} guard let item = pagingItem as? PagingIndexItem else { return}
print("abc == ",selectIndex,item.index)
if selectIndex != item.index { if selectIndex != item.index {
selectIndex = item.index if noti_str != "" {
if noti_str.contains("铺货"){
let vc = viewControllers.first
vc?.isUpData = true
}else{
let vc = viewControllers.last
vc?.isUpData = true
}
noti_str = ""
}else{
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()
} }
} }
}
closeAction() closeAction()
} }
......
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