Commit 3795bad5 authored by David黄金龙's avatar David黄金龙

修改一处 展示出错的问题

parent 9bec033d
......@@ -142,11 +142,16 @@ private extension YHStartPageViewController {
}
agreeAlertView.urlBlock = { [weak self] url in
agreeAlertView.urlBlock = { [weak self] url,tag in
guard let self = self else { return }
let vc = YHWebViewViewController()
vc.url = url
if tag == 0 {
vc.navTitle = "银河港生活隐私协议"
} else if tag == 1 {
vc.navTitle = "银河港生活用户条款"
}
self.navigationController?.pushViewController(vc)
}
......
......@@ -10,7 +10,7 @@ import UIKit
import AttributedString
class YHAgreementAlertView: UIView {
typealias UrlBlock = (_ url: String) -> ()
typealias UrlBlock = (_ url: String,_ tag : Int) -> ()
var urlBlock: UrlBlock?
typealias AgreeBlock = () -> ()
......@@ -147,7 +147,7 @@ class YHAgreementAlertView: UIView {
let aa: ASAttributedString = .init("《银河港生活隐私协议》", .font(UIFont.PFSC_M(ofSize: 16)),.foreground(UIColor.brandMainColor), .action {
if let block = self.urlBlock {
block(YHBaseUrlManager.shared.curPrivacyAgreementUrl())
block(YHBaseUrlManager.shared.curPrivacyAgreementUrl(),0)
}
})
......@@ -157,7 +157,7 @@ class YHAgreementAlertView: UIView {
let aab: ASAttributedString = .init("《银河港生活用户条款》", .font(UIFont.PFSC_M(ofSize: 16)),.foreground(UIColor.brandMainColor), .action {
if let block = self.urlBlock {
block(YHBaseUrlManager.shared.curUserItemsUrl())
block(YHBaseUrlManager.shared.curUserItemsUrl(),1)
}
})
......
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