From 62a24b3c7cf92919a93ee575e9460037e1a53816 Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期四, 07 十一月 2024 19:10:20 +0800
Subject: [PATCH] fix bug

---
 XQMuse/Root/Me/VC/WatchHistoryVC.swift |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/XQMuse/Root/Me/VC/WatchHistoryVC.swift b/XQMuse/Root/Me/VC/WatchHistoryVC.swift
index 83c0ebb..807aa14 100644
--- a/XQMuse/Root/Me/VC/WatchHistoryVC.swift
+++ b/XQMuse/Root/Me/VC/WatchHistoryVC.swift
@@ -123,6 +123,22 @@
 				}
 
 				func pageViewController(_ pageViewConteoller: FFPageViewController, controllerForPage page: Int) -> UIViewController {
-								return WatchHistoryDetailVC(state: page+1, type: watchType)
+
+
+        switch watchType{
+            case .collect:
+                return WatchHistoryDetailVC(state: page+1, type: watchType)
+            case .history:
+                return WatchHistoryDetailVC(state: page+1, type: watchType)
+            case .payment:
+                var state = 1
+                if page == 0{
+                    state = 2
+                }
+                return WatchHistoryDetailVC(state: state, type: watchType)
+            case .none:break
+        }
+
+        return UIViewController()
 				}
 }

--
Gitblit v1.7.1