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
d25cb97b
Commit
d25cb97b
authored
Apr 17, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
启动页 协议展示
parent
aae685f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
2 deletions
+38
-2
YHStartPageViewController.swift
...lasses/Modules/Home(首页)/C/YHStartPageViewController.swift
+8
-0
YHAgreementAlertView.swift
...axy/Classes/Modules/Home(首页)/V/YHAgreementAlertView.swift
+30
-1
YHServiceCenterMainViewModel.swift
...ligentService(服务中心)/VM/YHServiceCenterMainViewModel.swift
+0
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHStartPageViewController.swift
View file @
d25cb97b
...
...
@@ -133,6 +133,14 @@ private extension YHStartPageViewController {
}
}
agreeAlertView
.
urlBlock
=
{
[
weak
self
]
url
in
guard
let
self
=
self
else
{
return
}
let
vc
=
YHWebViewViewController
()
vc
.
url
=
url
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHAgreementAlertView.swift
View file @
d25cb97b
...
...
@@ -7,11 +7,16 @@
//
import
UIKit
import
AttributedString
class
YHAgreementAlertView
:
UIView
{
typealias
UrlBlock
=
(
_
url
:
String
)
->
()
var
urlBlock
:
UrlBlock
?
typealias
AgreeBlock
=
()
->
()
var
agreeBlock
:
AgreeBlock
?
var
cancelBlock
:
AgreeBlock
?
var
centerView
:
UIView
!
var
titleLabel
:
UILabel
!
var
lineView
:
UIView
!
...
...
@@ -83,7 +88,7 @@ class YHAgreementAlertView: UIView {
label
.
textColor
=
UIColor
.
mainTextColor
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
16
)
label
.
numberOfLines
=
0
label
.
text
=
"
感谢您信任并使用智汇银河App,我们将通过《智汇银河App隐私协议》和《智汇银河App用户条款》帮助您了解我们收集、使用、存储和共享个人信息的情况,特别是我们所采取的个人信息类型和用途的对应关系。此外,您还能了解到您所享受的相关权利以及实现途径。认真阅读之后,如您同意,请点击下方的按钮开始接受我们的服务。
"
label
.
text
=
""
return
label
}()
...
...
@@ -135,6 +140,30 @@ class YHAgreementAlertView: UIView {
make
.
width
.
equalTo
(
itemW
)
make
.
left
.
equalTo
(
disAgressButton
.
snp
.
right
)
.
offset
(
10
)
}
let
a
:
ASAttributedString
=
.
init
(
"感谢您信任并使用智汇银河App,我们将通过"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
mainTextColor
))
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"
)
}
})
let
and
:
ASAttributedString
=
.
init
(
"和"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
mainTextColor
))
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"
)
}
})
let
aaa
:
ASAttributedString
=
.
init
(
"帮助您了解我们收集、使用、存储和共享个人信息的情况,特别是我们所采取的个人信息类型和用途的对应关系。此外,您还能了解到您所享受的相关权利以及实现途径。认真阅读之后,如您同意,请点击下方的按钮开始接受我们的服务。"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
mainTextColor
))
messageLabel
.
attributed
.
text
=
a
+
aa
+
and
+
aab
+
aaa
}
@objc
func
agree
()
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/VM/YHServiceCenterMainViewModel.swift
View file @
d25cb97b
...
...
@@ -277,7 +277,6 @@ extension YHServiceCenterMainViewModel {
model
.
isFinished
=
false
}
if
item
==
target
{
model
.
isDoing
=
true
}
...
...
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