From 9e77b0f9014653255eb51e81b8a8ba719443839d Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期一, 11 十一月 2024 23:52:14 +0800
Subject: [PATCH] fix bug

---
 XQMuse/Root/Login/VC/RegisterVC.swift |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/XQMuse/Root/Login/VC/RegisterVC.swift b/XQMuse/Root/Login/VC/RegisterVC.swift
index b344c86..9839429 100644
--- a/XQMuse/Root/Login/VC/RegisterVC.swift
+++ b/XQMuse/Root/Login/VC/RegisterVC.swift
@@ -138,16 +138,24 @@
 				
 
 				@IBAction func userResigerAgreementAction(_ sender: Any) {
-								let vc = WebVC(type: .user)
-								vc.title = "用户注册协议"
-								push(vc: vc)
+        let vc = LoginTreatyVC()
+        vc.topIndex = 0
+        vc.clickHandle {[unowned self] state in
+            self.btn_isRead.isSelected = state
+        }
+        vc.modalPresentationStyle = .custom
+        present(vc, animated: true)
 				}
 
 
 				@IBAction func userPrivateAgreementAction(_ sender: Any) {
-								let vc = WebVC(type: .privacy)
-								vc.title = "用户隐私协议"
-								push(vc: vc)
+        let vc = LoginTreatyVC()
+        vc.topIndex = 1
+        vc.clickHandle {[unowned self] state in
+            self.btn_isRead.isSelected = state
+        }
+        vc.modalPresentationStyle = .custom
+        present(vc, animated: true)
 				}
 
 

--
Gitblit v1.7.1