Commit fdccb80f authored by David黄金龙's avatar David黄金龙

隐私政策 用户条款 使用官方主页

parent afaa6695
......@@ -147,7 +147,7 @@ class YHAgreementAlertView: UIView {
let aa: ASAttributedString = .init("《智汇银河App隐私协议》", .font(UIFont.PFSC_M(ofSize: 16)),.foreground(UIColor.brandMainColor), .action {
if let block = self.urlBlock {
block("https://www.baidu.com")
block(YHBaseUrlManager.shared.curPrivacyAgreementUrl())
}
})
......@@ -157,7 +157,7 @@ class YHAgreementAlertView: UIView {
let aab: ASAttributedString = .init("《智汇银河App用户条款》", .font(UIFont.PFSC_M(ofSize: 16)),.foreground(UIColor.brandMainColor), .action {
if let block = self.urlBlock {
block("https://www.baidu.com")
block(YHBaseUrlManager.shared.curUserItemsUrl())
}
})
......
......@@ -13,12 +13,7 @@ class YHWebViewViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
var webview = WKWebView()
var progBar = UIProgressView()
// var url = "https://www.baidu.com"
var url = "https://upload-cdn.galaxy-immi.com/crm/production/1620271613711.pdf"
// var url = "https://upload-cdn.galaxy-immi.com/crm/development/1616581669271.xlsx"
var url = ""
override func viewDidLoad() {
super.viewDidLoad()
......
......@@ -116,13 +116,13 @@ class YHLoginPrivacyView: UIView {
@objc func firstUrlClick() {
let vc = YHWebViewViewController()
vc.url = "https://www.baidu.com"
vc.url = YHBaseUrlManager.shared.curPrivacyAgreementUrl()
UIViewController.current?.navigationController?.pushViewController(vc)
}
@objc func secondUrlClick() {
let vc = YHWebViewViewController()
vc.url = "https://www.baidu.com"
vc.url = YHBaseUrlManager.shared.curUserItemsUrl()
UIViewController.current?.navigationController?.pushViewController(vc)
}
}
......@@ -58,13 +58,13 @@ class YHPrivacyAlertView: UIView {
let aa: ASAttributedString = .init("请先阅读并同意", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor))
let cc: ASAttributedString = .init("《隐私协议》", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.brandMainColor), .action {
if let block = self.urlBlock {
block("https://www.baidu.com")
block(YHBaseUrlManager.shared.curPrivacyAgreementUrl())
}
})
let bb: ASAttributedString = .init("和", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor))
let dd: ASAttributedString = .init("《用户条款》", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.brandMainColor), .action {
if let block = self.urlBlock {
block("https://www.baidu.com")
block(YHBaseUrlManager.shared.curUserItemsUrl())
}
})
messageLabel.attributed.text = aa + cc + bb + dd
......
......@@ -36,4 +36,14 @@ class YHBaseUrlManager {
func curH5URL() -> String {
return YHConfigManager.shared.h5Url
}
//隐私协议 PrivacyAgreement
func curPrivacyAgreementUrl() -> String {
return "https://www.galaxy-immi.com"
}
//用户政策 UserItems
func curUserItemsUrl() -> String {
return "https://www.galaxy-immi.com"
}
}
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