Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
7a1f817f
Commit
7a1f817f
authored
May 09, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webview 的 title处理
parent
0718d473
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
0 deletions
+11
-0
YHStartPageViewController.swift
...lasses/Modules/Home(首页)/C/YHStartPageViewController.swift
+1
-0
YHPhoneLoginViewController.swift
...sses/Modules/Login(登录)/C/YHPhoneLoginViewController.swift
+1
-0
YHWebViewViewController.swift
...Classes/Modules/Login(登录)/C/YHWebViewViewController.swift
+5
-0
YHLoginPrivacyView.swift
...laxy/Classes/Modules/Login(登录)/V/YHLoginPrivacyView.swift
+2
-0
YHMySettingViewController.swift
...lasses/Modules/Mine(我的)/C/YHMySettingViewController.swift
+2
-0
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHStartPageViewController.swift
View file @
7a1f817f
...
...
@@ -138,6 +138,7 @@ private extension YHStartPageViewController {
guard
let
self
=
self
else
{
return
}
let
vc
=
YHWebViewViewController
()
vc
.
url
=
url
vc
.
navTitle
=
"隐私协议"
self
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/C/YHPhoneLoginViewController.swift
View file @
7a1f817f
...
...
@@ -209,6 +209,7 @@ class YHPhoneLoginViewController: YHBaseViewController {
guard
let
self
=
self
else
{
return
}
let
vc
=
YHWebViewViewController
()
vc
.
url
=
url
vc
.
navTitle
=
"隐私协议"
self
.
navigationController
?
.
pushViewController
(
vc
)
}
view
.
agreeBlock
=
{
[
weak
self
]
in
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/C/YHWebViewViewController.swift
View file @
7a1f817f
...
...
@@ -14,9 +14,12 @@ class YHWebViewViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
var
webview
=
WKWebView
()
var
progBar
=
UIProgressView
()
var
url
=
""
var
navTitle
=
""
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
gk_navTitle
=
navTitle
//获取导航栏高度
let
navHeight
=
self
.
navigationController
?
.
navigationBar
.
frame
.
height
//获取状态栏高度
...
...
@@ -55,8 +58,10 @@ class YHWebViewViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
// MARK: - WKNavigationDelegate
func
webView
(
_
webView
:
WKWebView
,
didFinish
navigation
:
WKNavigation
!
)
{
if
navTitle
.
isEmpty
{
self
.
navigationItem
.
title
=
webview
.
title
}
}
// MARK: - WKUIDelegate
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/V/YHLoginPrivacyView.swift
View file @
7a1f817f
...
...
@@ -117,12 +117,14 @@ class YHLoginPrivacyView: UIView {
@objc
func
firstUrlClick
()
{
let
vc
=
YHWebViewViewController
()
vc
.
url
=
YHBaseUrlManager
.
shared
.
curPrivacyAgreementUrl
()
vc
.
navTitle
=
"隐私协议"
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
@objc
func
secondUrlClick
()
{
let
vc
=
YHWebViewViewController
()
vc
.
url
=
YHBaseUrlManager
.
shared
.
curUserItemsUrl
()
vc
.
navTitle
=
"用户条款"
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
}
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMySettingViewController.swift
View file @
7a1f817f
...
...
@@ -205,12 +205,14 @@ extension YHMySettingViewController : UITableViewDelegate, UITableViewDataSource
// 用户条款
let
vc
=
YHWebViewViewController
()
vc
.
url
=
YHBaseUrlManager
.
shared
.
curUserItemsUrl
()
vc
.
navTitle
=
"用户条款"
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
else
if
item
.
type
==
.
privaceAgreement
{
//隐私政策
let
vc
=
YHWebViewViewController
()
vc
.
url
=
YHBaseUrlManager
.
shared
.
curPrivacyAgreementUrl
()
vc
.
navTitle
=
"隐私政策"
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment