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
e62a412f
Commit
e62a412f
authored
Aug 14, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除测试代码
parent
a74b8a9d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
29 deletions
+3
-29
YHHomeWebViewController.swift
.../Classes/Modules/Home(首页)/C/YHHomeWebViewController.swift
+1
-1
YHOffivialApprovalSuccessCheckView.swift
...lApproval(正式批)/V/YHOffivialApprovalSuccessCheckView.swift
+1
-27
YHJsApi.swift
...galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeWebViewController.swift
View file @
e62a412f
...
...
@@ -111,7 +111,7 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
webview
.
scrollView
.
contentInsetAdjustmentBehavior
=
.
never
let
api
=
YHJsApi
()
api
.
delegate
=
self
//
api.delegate = self
webview
.
addJavascriptObject
(
api
,
namespace
:
nil
)
// 创建网址
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/OfficialApproval(正式批)/V/YHOffivialApprovalSuccessCheckView.swift
View file @
e62a412f
...
...
@@ -89,12 +89,6 @@ class YHOffivialApprovalSuccessCheckView: UIView {
setupUI
()
}
let
testContent
=
"恭喜您申请的【优秀人才入境计划】已获得港府的正式批准!从递交资料伊始,经历了235天,感谢您这一路以来对银河的信赖与包容!"
var
timer
:
Timer
?
var
counter
=
0
private
var
displayLink
:
CADisplayLink
?
private
var
currentIndex
:
Int
=
0
private
var
fullText
:
String
=
"恭喜您申请的【优秀人才入境计划】"
...
...
@@ -216,27 +210,6 @@ private extension YHOffivialApprovalSuccessCheckView {
}
}
func
startTyping
()
{
timer
=
Timer
.
scheduledTimer
(
timeInterval
:
0.1
,
target
:
self
,
selector
:
#selector(
typeText
)
,
userInfo
:
nil
,
repeats
:
true
)
RunLoop
.
current
.
add
(
timer
!
,
forMode
:
.
common
)
}
@objc
func
typeText
()
{
if
counter
<
testContent
.
count
{
self
.
titleLabel
.
text
=
String
(
testContent
.
prefix
(
counter
+
1
))
counter
+=
1
}
else
{
timer
?
.
invalidate
()
counter
=
0
let
aa
:
ASAttributedString
=
.
init
(
"恭喜您申请的【优秀人才入境计划】"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
15
)),
.
foreground
(
UIColor
(
hex
:
0x671908
,
alpha
:
1.0
)))
let
bb
:
ASAttributedString
=
.
init
(
"已获得港府的正式批准!"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
15
)),
.
foreground
(
UIColor
(
hex
:
0xAE1616
,
alpha
:
1.0
)))
let
cc
:
ASAttributedString
=
.
init
(
"从递交资料伊始,经历了235天,感谢您这一路以来对银河的信赖与包容!"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
15
)),
.
foreground
(
UIColor
(
hex
:
0x671908
,
alpha
:
1.0
)))
self
.
titleLabel
.
attributed
.
text
=
aa
+
bb
+
cc
}
}
private
func
startTypingEffect
()
{
displayLink
=
CADisplayLink
(
target
:
self
,
selector
:
#selector(
handleDisplayLink(_:)
)
)
displayLink
?
.
preferredFramesPerSecond
=
Int
(
1
/
0.1
)
// 设置帧率
...
...
@@ -293,6 +266,7 @@ private extension YHOffivialApprovalSuccessCheckView {
result
.
append
(
centerattributedString
)
result
.
append
(
lastattributedString
)
self
.
titleLabel
.
attributedText
=
result
currentIndex
+=
1
}
else
{
displayLink
.
invalidate
()
...
...
galaxy/galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
View file @
e62a412f
...
...
@@ -20,7 +20,7 @@ extension YHJsApi {
//展示pics
@objc
func
showPicsSyn
(
_
dicPics
:[
String
:
Any
])
{
//dsBridge.call("showPicsSyn",{pics:["123","456"], curIndex:1})
if
dicPics
.
isEmpty
==
false
{
if
!
dicPics
.
isEmpty
{
let
curIndex
:
Int
=
dicPics
[
"curIndex"
]
as?
Int
??
-
1
let
arrPics
:
[
String
]
=
dicPics
[
"pics"
]
as?
[
String
]
??
[]
...
...
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