Commit 18d4ffe5 authored by David黄金龙's avatar David黄金龙

正式批动画

parent 562bd1e8
...@@ -600,6 +600,9 @@ ...@@ -600,6 +600,9 @@
A5F8AC082B9F414000A21EFA /* YHCustomTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5F8AC072B9F414000A21EFA /* YHCustomTextView.swift */; }; A5F8AC082B9F414000A21EFA /* YHCustomTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5F8AC072B9F414000A21EFA /* YHCustomTextView.swift */; };
A5F9E9F72C637FC5005BCA73 /* YHOffivialApprovalGuildLineCheckView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5F9E9F62C637FC5005BCA73 /* YHOffivialApprovalGuildLineCheckView.swift */; }; A5F9E9F72C637FC5005BCA73 /* YHOffivialApprovalGuildLineCheckView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5F9E9F62C637FC5005BCA73 /* YHOffivialApprovalGuildLineCheckView.swift */; };
A5F9E9FA2C63A673005BCA73 /* YHOffivialApprovalSuccessCheckView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5F9E9F92C63A673005BCA73 /* YHOffivialApprovalSuccessCheckView.swift */; }; A5F9E9FA2C63A673005BCA73 /* YHOffivialApprovalSuccessCheckView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5F9E9F92C63A673005BCA73 /* YHOffivialApprovalSuccessCheckView.swift */; };
A5F9E9FD2C647187005BCA73 /* flower1.json in Resources */ = {isa = PBXBuildFile; fileRef = A5F9E9FC2C647187005BCA73 /* flower1.json */; };
A5F9E9FF2C6474EC005BCA73 /* flower3.gif in Resources */ = {isa = PBXBuildFile; fileRef = A5F9E9FE2C6474EC005BCA73 /* flower3.gif */; };
A5F9EA012C647506005BCA73 /* flower2.json in Resources */ = {isa = PBXBuildFile; fileRef = A5F9EA002C647506005BCA73 /* flower2.json */; };
A5FD45232C523DD300908AD9 /* YHJsApi.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD45222C523DD300908AD9 /* YHJsApi.swift */; }; A5FD45232C523DD300908AD9 /* YHJsApi.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD45222C523DD300908AD9 /* YHJsApi.swift */; };
A5FD63BD2B623C2C00D1D9DA /* YHInformationPerfectListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63BC2B623C2C00D1D9DA /* YHInformationPerfectListVC.swift */; }; A5FD63BD2B623C2C00D1D9DA /* YHInformationPerfectListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63BC2B623C2C00D1D9DA /* YHInformationPerfectListVC.swift */; };
A5FD63BF2B6250BC00D1D9DA /* YHInformationPerfectCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63BE2B6250BC00D1D9DA /* YHInformationPerfectCell.swift */; }; A5FD63BF2B6250BC00D1D9DA /* YHInformationPerfectCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63BE2B6250BC00D1D9DA /* YHInformationPerfectCell.swift */; };
...@@ -1250,6 +1253,9 @@ ...@@ -1250,6 +1253,9 @@
A5F8AC072B9F414000A21EFA /* YHCustomTextView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHCustomTextView.swift; sourceTree = "<group>"; }; A5F8AC072B9F414000A21EFA /* YHCustomTextView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHCustomTextView.swift; sourceTree = "<group>"; };
A5F9E9F62C637FC5005BCA73 /* YHOffivialApprovalGuildLineCheckView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHOffivialApprovalGuildLineCheckView.swift; sourceTree = "<group>"; }; A5F9E9F62C637FC5005BCA73 /* YHOffivialApprovalGuildLineCheckView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHOffivialApprovalGuildLineCheckView.swift; sourceTree = "<group>"; };
A5F9E9F92C63A673005BCA73 /* YHOffivialApprovalSuccessCheckView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHOffivialApprovalSuccessCheckView.swift; sourceTree = "<group>"; }; A5F9E9F92C63A673005BCA73 /* YHOffivialApprovalSuccessCheckView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHOffivialApprovalSuccessCheckView.swift; sourceTree = "<group>"; };
A5F9E9FC2C647187005BCA73 /* flower1.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = flower1.json; sourceTree = "<group>"; };
A5F9E9FE2C6474EC005BCA73 /* flower3.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = "\bflower3.gif"; sourceTree = "<group>"; };
A5F9EA002C647506005BCA73 /* flower2.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = flower2.json; sourceTree = "<group>"; };
A5FD45222C523DD300908AD9 /* YHJsApi.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHJsApi.swift; sourceTree = "<group>"; }; A5FD45222C523DD300908AD9 /* YHJsApi.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHJsApi.swift; sourceTree = "<group>"; };
A5FD63BC2B623C2C00D1D9DA /* YHInformationPerfectListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInformationPerfectListVC.swift; sourceTree = "<group>"; }; A5FD63BC2B623C2C00D1D9DA /* YHInformationPerfectListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInformationPerfectListVC.swift; sourceTree = "<group>"; };
A5FD63BE2B6250BC00D1D9DA /* YHInformationPerfectCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInformationPerfectCell.swift; sourceTree = "<group>"; }; A5FD63BE2B6250BC00D1D9DA /* YHInformationPerfectCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInformationPerfectCell.swift; sourceTree = "<group>"; };
...@@ -3277,10 +3283,8 @@ ...@@ -3277,10 +3283,8 @@
A5DF3D4A2BF9A304003D5F03 /* jsons */ = { A5DF3D4A2BF9A304003D5F03 /* jsons */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
04F0ABF62C364F9D00518C30 /* service.json */, A5F9EA022C647D32005BCA73 /* tabbar */,
04F0ABF22C364F9400518C30 /* community.json */, A5F9E9FB2C647063005BCA73 /* officialApproval */,
04F0ABF02C364F9400518C30 /* home.json */,
04F0ABF12C364F9400518C30 /* my.json */,
043BA8822C24360C006EF02D /* people_rotate */, 043BA8822C24360C006EF02D /* people_rotate */,
043BA87C2C2435D4006EF02D /* people_launch */, 043BA87C2C2435D4006EF02D /* people_launch */,
043BA8762C243477006EF02D /* people_head */, 043BA8762C243477006EF02D /* people_head */,
...@@ -3346,6 +3350,27 @@ ...@@ -3346,6 +3350,27 @@
path = V; path = V;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
A5F9E9FB2C647063005BCA73 /* officialApproval */ = {
isa = PBXGroup;
children = (
A5F9E9FE2C6474EC005BCA73 /* flower3.gif */,
A5F9EA002C647506005BCA73 /* flower2.json */,
A5F9E9FC2C647187005BCA73 /* flower1.json */,
);
path = "\U001dofficialApproval";
sourceTree = "<group>";
};
A5F9EA022C647D32005BCA73 /* tabbar */ = {
isa = PBXGroup;
children = (
04F0ABF62C364F9D00518C30 /* service.json */,
04F0ABF22C364F9400518C30 /* community.json */,
04F0ABF02C364F9400518C30 /* home.json */,
04F0ABF12C364F9400518C30 /* my.json */,
);
path = tabbar;
sourceTree = "<group>";
};
A5FD45212C523D3200908AD9 /* InteractionH5(与H5交互) */ = { A5FD45212C523D3200908AD9 /* InteractionH5(与H5交互) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -3474,6 +3499,7 @@ ...@@ -3474,6 +3499,7 @@
isa = PBXResourcesBuildPhase; isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
A5F9E9FF2C6474EC005BCA73 /* flower3.gif in Resources */,
04FA8B2E2C084C7E00ABE43F /* ATAuthSDK.bundle in Resources */, 04FA8B2E2C084C7E00ABE43F /* ATAuthSDK.bundle in Resources */,
04F0ABF42C364F9400518C30 /* my.json in Resources */, 04F0ABF42C364F9400518C30 /* my.json in Resources */,
049663C02BF729F6003C8295 /* galaxy_refresher.gif in Resources */, 049663C02BF729F6003C8295 /* galaxy_refresher.gif in Resources */,
...@@ -3490,7 +3516,9 @@ ...@@ -3490,7 +3516,9 @@
04F0ABF52C364F9400518C30 /* community.json in Resources */, 04F0ABF52C364F9400518C30 /* community.json in Resources */,
04EA2E712BF74FA200AE80B0 /* shouye.json in Resources */, 04EA2E712BF74FA200AE80B0 /* shouye.json in Resources */,
048FA0332BFDDFF400AD3BA9 /* submit_head_animation.gif in Resources */, 048FA0332BFDDFF400AD3BA9 /* submit_head_animation.gif in Resources */,
A5F9E9FD2C647187005BCA73 /* flower1.json in Resources */,
A5E69D512BA304D400411932 /* DIN Alternate Bold.ttf in Resources */, A5E69D512BA304D400411932 /* DIN Alternate Bold.ttf in Resources */,
A5F9EA012C647506005BCA73 /* flower2.json in Resources */,
A5EE42022C216C78005BBA5D /* img_2.jpg in Resources */, A5EE42022C216C78005BBA5D /* img_2.jpg in Resources */,
04EA2E702BF74FA200AE80B0 /* shipin.json in Resources */, 04EA2E702BF74FA200AE80B0 /* shipin.json in Resources */,
044378A42BFC848C001F95AE /* loginBkg.mov in Resources */, 044378A42BFC848C001F95AE /* loginBkg.mov in Resources */,
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
import UIKit import UIKit
import AttributedString import AttributedString
import Lottie
import YYImage
class YHOffivialApprovalSuccessCheckView: UIView { class YHOffivialApprovalSuccessCheckView: UIView {
lazy var blackMaskView: UIView = { lazy var blackMaskView: UIView = {
...@@ -16,6 +18,22 @@ class YHOffivialApprovalSuccessCheckView: UIView { ...@@ -16,6 +18,22 @@ class YHOffivialApprovalSuccessCheckView: UIView {
return view return view
}() }()
lazy var animationView: LottieAnimationView = {
let view = LottieAnimationView(name: "flower2")
// view.backgroundColor = .yellow//for test hjl
view.loopMode = .playOnce
return view
}()
lazy var scrollBgImgV:YYAnimatedImageView = {
let img = YYImage(named:"vid_0.gif")
let imgV = YYAnimatedImageView(image: img)
imgV.autoPlayAnimatedImage = false
imgV.currentAnimatedImageIndex = 0
return imgV
}()
//香港身份获批指引操作 //香港身份获批指引操作
lazy var rewardBtn: UIButton = { lazy var rewardBtn: UIButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
...@@ -28,6 +46,7 @@ class YHOffivialApprovalSuccessCheckView: UIView { ...@@ -28,6 +46,7 @@ class YHOffivialApprovalSuccessCheckView: UIView {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.addTarget(self, action: #selector(clickCloseBtn), for: .touchUpInside) button.addTarget(self, action: #selector(clickCloseBtn), for: .touchUpInside)
button.setImage(UIImage(named: "official_approval_close_btn"), for: .normal) button.setImage(UIImage(named: "official_approval_close_btn"), for: .normal)
button.isHidden = true
return button return button
}() }()
...@@ -66,7 +85,6 @@ class YHOffivialApprovalSuccessCheckView: UIView { ...@@ -66,7 +85,6 @@ class YHOffivialApprovalSuccessCheckView: UIView {
} }
let testContent = "恭喜您申请的【优秀人才入境计划】已获得港府的正式批准!从递交资料伊始,经历了235天,感谢您这一路以来对银河的信赖与包容!" let testContent = "恭喜您申请的【优秀人才入境计划】已获得港府的正式批准!从递交资料伊始,经历了235天,感谢您这一路以来对银河的信赖与包容!"
var timer: Timer? var timer: Timer?
var counter = 0 var counter = 0
} }
...@@ -143,10 +161,30 @@ private extension YHOffivialApprovalSuccessCheckView { ...@@ -143,10 +161,30 @@ private extension YHOffivialApprovalSuccessCheckView {
self.holdView.frame = CGRect(x: 0, y: (KScreenHeight-imageH)/2 + 20, width: KScreenWidth, height: imageH) self.holdView.frame = CGRect(x: 0, y: (KScreenHeight-imageH)/2 + 20, width: KScreenWidth, height: imageH)
} completion: { flag in } completion: { flag in
self.titleLabel.isHidden = false self.titleLabel.isHidden = false
self.closeBtn.isHidden = false
self.startTyping() self.startTyping()
} }
} }
addSubview(animationView)
animationView.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
animationView.play { completed in
self.animationView.isHidden = true
}
// addSubview(scrollBgImgV)
// scrollBgImgV.snp.makeConstraints { make in
// make.edges.equalToSuperview()
// }
//
// DispatchQueue.main.asyncAfter(wallDeadline: .now() + 1) {
// self.scrollBgImgV.startAnimating()
// }
} }
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment