Commit cb3079f7 authored by lujunye's avatar lujunye

补充点击跳转逻辑

parent a753c6b1
......@@ -331,11 +331,22 @@ extension GYS_FX_Product_ListVc: PagingViewControllerDataSource {
func pagingViewController(_ pagingViewController: PagingViewController, didSelectItem pagingItem: PagingItem) {
guard let item = pagingItem as? PagingIndexItem else { return}
print("abc == ",selectIndex,item.index)
if selectIndex != item.index {
selectIndex = item.index
let vc = viewControllers[selectIndex]
if !vc.isUpData {
vc.home_list_tbv.mj_header?.beginRefreshing()
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]
if !vc.isUpData {
vc.home_list_tbv.mj_header?.beginRefreshing()
}
}
}
......
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