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
50247f35
Commit
50247f35
authored
May 22, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 提交成功弹窗
parent
0d5f02a7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
219 additions
and
0 deletions
+219
-0
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+20
-0
YHSubmitAllInfoSuccessAlertView.swift
...gentService(服务中心)/V/YHSubmitAllInfoSuccessAlertView.swift
+199
-0
submit_head_animation.gif
galaxy/galaxy/Res/gif/submit_head_animation.gif
+0
-0
submit_page_scroll.gif
galaxy/galaxy/Res/gif/submit_page_scroll.gif
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
50247f35
...
...
@@ -239,6 +239,9 @@
0488518F2BF5FD1500C4E32D
/* YHOSSManager.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0488518E2BF5FD1500C4E32D
/* YHOSSManager.swift */
;
};
048B2A4A2BC7D9DC00A93BF0
/* YHMyLikeViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048B2A492BC7D9DC00A93BF0
/* YHMyLikeViewController.swift */
;
};
048B2A4D2BC7DAE800A93BF0
/* YHMyLikeViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048B2A4C2BC7DAE800A93BF0
/* YHMyLikeViewModel.swift */
;
};
048FA0332BFDDFF400AD3BA9
/* submit_head_animation.gif in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048FA0312BFDDFF400AD3BA9
/* submit_head_animation.gif */
;
};
048FA0342BFDDFF400AD3BA9
/* submit_page_scroll.gif in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048FA0322BFDDFF400AD3BA9
/* submit_page_scroll.gif */
;
};
048FA0362BFDE04000AD3BA9
/* YHSubmitAllInfoSuccessAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048FA0352BFDE04000AD3BA9
/* YHSubmitAllInfoSuccessAlertView.swift */
;
};
0493B3DC2BA7EFE600AF9393
/* YHCertificateSearchViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0493B3DB2BA7EFE600AF9393
/* YHCertificateSearchViewController.swift */
;
};
0493B3DE2BA80C2300AF9393
/* YHCertificateFilterButton.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0493B3DD2BA80C2300AF9393
/* YHCertificateFilterButton.swift */
;
};
049537852BA9B28500AF7E59
/* YHCertificateTemplateCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
049537842BA9B28500AF7E59
/* YHCertificateTemplateCell.swift */
;
};
...
...
@@ -702,6 +705,9 @@
0488518E2BF5FD1500C4E32D
/* YHOSSManager.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOSSManager.swift
;
sourceTree
=
"<group>"
;
};
048B2A492BC7D9DC00A93BF0
/* YHMyLikeViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyLikeViewController.swift
;
sourceTree
=
"<group>"
;
};
048B2A4C2BC7DAE800A93BF0
/* YHMyLikeViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyLikeViewModel.swift
;
sourceTree
=
"<group>"
;
};
048FA0312BFDDFF400AD3BA9
/* submit_head_animation.gif */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.gif
;
path
=
submit_head_animation.gif
;
sourceTree
=
"<group>"
;
};
048FA0322BFDDFF400AD3BA9
/* submit_page_scroll.gif */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.gif
;
path
=
submit_page_scroll.gif
;
sourceTree
=
"<group>"
;
};
048FA0352BFDE04000AD3BA9
/* YHSubmitAllInfoSuccessAlertView.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSubmitAllInfoSuccessAlertView.swift
;
sourceTree
=
"<group>"
;
};
0493B3DB2BA7EFE600AF9393
/* YHCertificateSearchViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateSearchViewController.swift
;
sourceTree
=
"<group>"
;
};
0493B3DD2BA80C2300AF9393
/* YHCertificateFilterButton.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateFilterButton.swift
;
sourceTree
=
"<group>"
;
};
049537842BA9B28500AF7E59
/* YHCertificateTemplateCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateTemplateCell.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1691,6 +1697,15 @@
path
=
ViewModel
;
sourceTree
=
"<group>"
;
};
048FA0302BFDDFF400AD3BA9
/* gif */
=
{
isa
=
PBXGroup
;
children
=
(
048FA0312BFDDFF400AD3BA9
/* submit_head_animation.gif */
,
048FA0322BFDDFF400AD3BA9
/* submit_page_scroll.gif */
,
);
path
=
gif
;
sourceTree
=
"<group>"
;
};
049663B62BF60BB7003C8295
/* CustomRefreshHeader */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -2225,6 +2240,7 @@
A5ACE9142B4564F7002C94D2
/* Res */
=
{
isa
=
PBXGroup
;
children
=
(
048FA0302BFDDFF400AD3BA9
/* gif */
,
A5DF3D4A2BF9A304003D5F03
/* jsons */
,
A5DF3D492BF9A2E4003D5F03
/* videos */
,
A5E69D4F2BA304D400411932
/* Font */
,
...
...
@@ -2292,6 +2308,7 @@
A5FD63BE2B6250BC00D1D9DA
/* YHInformationPerfectCell.swift */
,
A5FD63C42B637EE000D1D9DA
/* YHSubmitAllInfoCheckView.swift */
,
A5FD63C62B638CA000D1D9DA
/* YHSubmintAllInfoSuccessTipView.swift */
,
048FA0352BFDE04000AD3BA9
/* YHSubmitAllInfoSuccessAlertView.swift */
,
A5FD63C82B63A35B00D1D9DA
/* YHInformationFillTipsAlertView.swift */
,
A5FD63CA2B63D6C300D1D9DA
/* YHInformationFillTipsCell.swift */
,
044414022BC39B8D00784A14
/* YHServerTableHeadView.swift */
,
...
...
@@ -2517,10 +2534,12 @@
A51044182B493675006B60BB
/* README.md in Resources */
,
A5573EDB2B317C0000D98EC0
/* Assets.xcassets in Resources */
,
04EA2E712BF74FA200AE80B0
/* shouye.json in Resources */
,
048FA0332BFDDFF400AD3BA9
/* submit_head_animation.gif in Resources */
,
A5E69D512BA304D400411932
/* DIN Alternate Bold.ttf in Resources */
,
04EA2E702BF74FA200AE80B0
/* shipin.json in Resources */
,
044378A42BFC848C001F95AE
/* loginBkg.mov in Resources */
,
047619ED2BA9B9C900F45358
/* area.plist in Resources */
,
048FA0342BFDDFF400AD3BA9
/* submit_page_scroll.gif in Resources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
...
...
@@ -2633,6 +2652,7 @@
045EEEA72B9F171A0022A143
/* YHWorkExperienceViewController.swift in Sources */
,
A5FD63BD2B623C2C00D1D9DA
/* YHInformationPerfectListVC.swift in Sources */
,
045EEE8D2B9F171A0022A143
/* YHPreviewInfoCell.swift in Sources */
,
048FA0362BFDE04000AD3BA9
/* YHSubmitAllInfoSuccessAlertView.swift in Sources */
,
045EEF0C2B9F171A0022A143
/* YHBasicInfoFillBottomView.swift in Sources */
,
A5ACE93D2B4564F7002C94D2
/* UIButton+Extension.swift in Sources */
,
04CC2EF02BC3DDB2000305DD
/* YHServiceBannerView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHSubmitAllInfoSuccessAlertView.swift
0 → 100644
View file @
50247f35
//
// YHSubmitAllInfoSuccessAlertView.swift
// galaxy
//
// Created by edy on 2024/5/22.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
import
FLAnimatedImage
class
YHSubmitAllInfoSuccessAlertView
:
UIView
{
typealias
Block
=
(
Bool
)
->
()
let
scoreBigFont
=
UIFont
.
PFSC_B
(
ofSize
:
50
)
let
scoreSmallFont
=
UIFont
.
PFSC_R
(
ofSize
:
13
)
let
scoreBigColor
=
UIColor
.
brandMainColor
let
scoreSmallColor
=
UIColor
.
init
(
hex
:
0x000000
)
var
block
:
Block
?
var
centerView
:
UIView
!
var
scoreLabel
:
UILabel
!
var
cancelButton
:
UIButton
!
var
detailButton
:
UIButton
!
var
model
:
YHContactInfoScoreModel
?
{
didSet
{
guard
let
model
=
model
else
{
return
}
let
a
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
model
.
sum_score
),
.
font
(
self
.
scoreBigFont
),
.
foreground
(
self
.
scoreBigColor
))
let
b
:
ASAttributedString
=
.
init
(
"分"
,
.
font
(
self
.
scoreSmallFont
),
.
foreground
(
self
.
scoreSmallColor
))
scoreLabel
.
attributed
.
text
=
a
+
b
}
}
//头部背景图片
lazy
var
headBkgImagV
:
UIImageView
=
{
let
imagV
=
UIImageView
()
imagV
.
image
=
UIImage
(
named
:
"submit_success_bkg"
)
imagV
.
contentMode
=
.
scaleAspectFill
return
imagV
}()
lazy
var
headImgV
:
FLAnimatedImageView
=
{
let
imgV
=
FLAnimatedImageView
()
let
url
=
Bundle
.
main
.
url
(
forResource
:
"submit_head_animation"
,
withExtension
:
"gif"
)
!
if
let
animatedImage
=
try
?
FLAnimatedImage
(
animatedGIFData
:
Data
(
contentsOf
:
url
))
{
imgV
.
animatedImage
=
animatedImage
}
else
{
print
(
"Error loading GIF"
)
}
return
imgV
}()
lazy
var
scrollImage
:
FLAnimatedImage
?
=
{
let
url
=
Bundle
.
main
.
url
(
forResource
:
"submit_page_scroll"
,
withExtension
:
"gif"
)
!
if
let
animatedImage
=
try
?
FLAnimatedImage
(
animatedGIFData
:
Data
(
contentsOf
:
url
))
{
return
animatedImage
}
return
nil
}()
lazy
var
scrollBgImgV
:
FLAnimatedImageView
=
{
let
imgV
=
FLAnimatedImageView
()
if
let
animatedImage
=
self
.
scrollImage
{
// 先获取封面
imgV
.
image
=
animatedImage
.
posterImage
}
else
{
print
(
"Error loading GIF"
)
}
return
imgV
}()
static
func
showCheckView
(
model
:
YHContactInfoScoreModel
?,
callBack
:
@escaping
Block
)
{
let
view
=
YHSubmitAllInfoSuccessAlertView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
block
=
callBack
view
.
model
=
model
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
backgroundColor
=
UIColor
(
white
:
0.5
,
alpha
:
0.1
)
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
handleTap
)
)
tap
.
delegate
=
self
addGestureRecognizer
(
tap
)
setView
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
setView
()
{
backgroundColor
=
UIColor
(
hex
:
0x0000
,
alpha
:
0.5
)
centerView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
green
view
.
layer
.
cornerRadius
=
kCornerRadius8
return
view
}()
addSubview
(
centerView
)
centerView
.
snp
.
makeConstraints
{
make
in
make
.
center
.
equalToSuperview
()
make
.
width
.
equalTo
(
299
)
make
.
height
.
equalTo
(
375
)
}
centerView
.
addSubview
(
scrollBgImgV
)
centerView
.
addSubview
(
headImgV
)
headImgV
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
scrollBgImgV
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
scoreLabel
=
{
let
label
=
UILabel
()
label
.
text
=
"--分"
label
.
textAlignment
=
.
left
label
.
numberOfLines
=
1
return
label
}()
scoreLabel
.
backgroundColor
=
.
clear
centerView
.
addSubview
(
scoreLabel
)
scoreLabel
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalTo
(
-
45
)
make
.
left
.
equalTo
(
20
)
make
.
height
.
equalTo
(
55
)
}
let
a
:
ASAttributedString
=
.
init
(
"0"
,
.
font
(
self
.
scoreBigFont
),
.
foreground
(
scoreBigColor
))
let
b
:
ASAttributedString
=
.
init
(
"分"
,
.
font
(
scoreSmallFont
),
.
foreground
(
scoreSmallColor
))
scoreLabel
.
attributed
.
text
=
a
+
b
cancelButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
setImage
(
UIImage
(
named
:
"update_close"
),
for
:
.
normal
)
button
.
addTarget
(
self
,
action
:
#selector(
disagree
)
,
for
:
.
touchUpInside
)
return
button
}()
self
.
addSubview
(
cancelButton
)
cancelButton
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
24
)
make
.
centerX
.
equalTo
(
self
)
make
.
top
.
equalTo
(
centerView
.
snp
.
bottom
)
.
offset
(
20
)
}
detailButton
=
{
let
btn
=
UIButton
()
btn
.
addTarget
(
self
,
action
:
#selector(
agree
)
,
for
:
.
touchUpInside
)
return
btn
}()
centerView
.
addSubview
(
detailButton
)
detailButton
.
snp
.
makeConstraints
{
make
in
make
.
width
.
equalTo
(
72
)
make
.
height
.
equalTo
(
55
)
make
.
bottom
.
right
.
equalToSuperview
()
}
DispatchQueue
.
main
.
asyncAfter
(
wallDeadline
:
.
now
()
+
2
)
{
self
.
scrollBgImgV
.
animatedImage
=
self
.
scrollImage
}
}
@objc
func
agree
()
{
block
?(
true
)
dismiss
()
}
@objc
private
func
handleTap
(
_
sender
:
AnyObject
?)
{
print
(
"处理点击手势"
)
dismiss
()
}
@objc
func
disagree
()
{
block
?(
false
)
dismiss
()
}
func
dismiss
()
{
removeFromSuperview
()
}
}
extension
YHSubmitAllInfoSuccessAlertView
:
UIGestureRecognizerDelegate
{
func
gestureRecognizer
(
_
gestureRecognizer
:
UIGestureRecognizer
,
shouldReceive
touch
:
UITouch
)
->
Bool
{
if
touch
.
view
==
self
{
return
true
}
return
false
}
}
galaxy/galaxy/Res/gif/submit_head_animation.gif
0 → 100644
View file @
50247f35
651 KB
galaxy/galaxy/Res/gif/submit_page_scroll.gif
0 → 100644
View file @
50247f35
712 KB
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