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
3795bad5
Commit
3795bad5
authored
Jun 12, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改一处 展示出错的问题
parent
9bec033d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
YHStartPageViewController.swift
...lasses/Modules/Home(首页)/C/YHStartPageViewController.swift
+7
-2
YHAgreementAlertView.swift
...axy/Classes/Modules/Home(首页)/V/YHAgreementAlertView.swift
+3
-3
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHStartPageViewController.swift
View file @
3795bad5
...
...
@@ -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
vc
.
navTitle
=
"银河港生活隐私协议"
if
tag
==
0
{
vc
.
navTitle
=
"银河港生活隐私协议"
}
else
if
tag
==
1
{
vc
.
navTitle
=
"银河港生活用户条款"
}
self
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHAgreementAlertView.swift
View file @
3795bad5
...
...
@@ -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
)
}
})
...
...
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