Commit 3baf0d85 authored by pete谢兆麟's avatar pete谢兆麟

提交 正式批 ui

parent 5b940e4e
This diff is collapsed.
//
// YHOffivialApprovalSuccessView.swift
// galaxy
//
// Created by EDY on 2024/8/9.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHOffivialApprovalSuccessView: UIView {
/*
// Only override draw() if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
override func draw(_ rect: CGRect) {
// Drawing code
}
*/
}
...@@ -12,8 +12,10 @@ import UIKit ...@@ -12,8 +12,10 @@ import UIKit
正式批 结果页 正式批 结果页
*/ */
class YHOfficialApprovalResultVC: YHBaseViewController { class YHOfficialApprovalResultVC2: YHBaseViewController {
var contentView: YHOffivialApprovalSuccessView!
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
setupUI() setupUI()
...@@ -48,7 +50,7 @@ class YHOfficialApprovalResultVC: YHBaseViewController { ...@@ -48,7 +50,7 @@ class YHOfficialApprovalResultVC: YHBaseViewController {
} }
private extension YHOfficialApprovalResultVC { private extension YHOfficialApprovalResultVC2 {
func setupUI() { func setupUI() {
gk_navBarAlpha = 0.0 gk_navBarAlpha = 0.0
...@@ -78,11 +80,25 @@ private extension YHOfficialApprovalResultVC { ...@@ -78,11 +80,25 @@ private extension YHOfficialApprovalResultVC {
make.width.equalTo(294) make.width.equalTo(294)
make.height.equalTo(530) make.height.equalTo(530)
} }
docImageV.layer.zPosition = 1
contentView = {
let view = YHOffivialApprovalSuccessView()
view.updataView(data: ["祝贺您和您的家人申请的","【优秀人才入境计划】","2023年10月1日正式获批","这意味着,您领取香港居民身份证","仅有一步之遥!!"])
return view
}()
view.addSubview(contentView)
contentView.snp.makeConstraints { make in
make.left.equalTo(144)
make.top.equalTo(213)
make.width.equalTo(334)
make.height.equalTo(239)
}
contentView.transform = rotatedTransform()
}
private func rotatedTransform() -> CGAffineTransform {
// 创建一个 CGAffineTransform 对象并设置旋转角度
return CGAffineTransform(rotationAngle: -CGFloat.pi / 64) // 旋转 45 度
} }
func addRightItem() { func addRightItem() {
......
//
// YHOffivialApprovalSuccessView.swift
// galaxy
//
// Created by EDY on 2024/8/9.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHOffivialApprovalSuccessView: UIView {
var titleLabel: UILabel!
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override init(frame: CGRect) {
super.init(frame: frame)
setupUI()
}
func setupUI() {
titleLabel = {
let label = UILabel()
label.font = UIFont.PFSC_M(ofSize: 30)
label.textColor = UIColor(hex: 0x881000)
label.text = "恭喜 侯先生!"
return label
}()
addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in
make.left.equalTo(5)
make.top.equalTo(0)
make.right.equalTo(-5)
make.height.equalTo(42)
}
}
func updataView(data: [String]) {
var h = 80
var index = 0
for item in data {
let label = UILabel()
label.text = item
label.font = UIFont.PFSC_M(ofSize: 15)
label.textColor = UIColor(hex: 0x881000)
if index == 2 {
label.textColor = UIColor(hex: 0xd12501)
}
addSubview(label)
label.snp.makeConstraints { make in
make.left.equalTo(5)
make.top.equalTo(h)
make.right.equalTo(-5)
make.height.equalTo(26)
}
let line = UIView()
line.backgroundColor = UIColor(hex: 0x881000).withAlphaComponent(0.15)
addSubview(line)
line.snp.makeConstraints { make in
make.left.equalTo(5)
make.top.equalTo(h + 26 + 5)
make.width.equalTo(234)
make.height.equalTo(1)
}
h = h + 26 + 5
index = index + 1
}
}
}
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