Commit 0a4386f6 authored by David黄金龙's avatar David黄金龙

细节修改

parent 8560e786
...@@ -74,7 +74,6 @@ private extension YHOfficialApprovalResultVC2 { ...@@ -74,7 +74,6 @@ private extension YHOfficialApprovalResultVC2 {
view.addSubview(docImageV) view.addSubview(docImageV)
docImageV.snp.makeConstraints { make in docImageV.snp.makeConstraints { make in
make.right.equalToSuperview() make.right.equalToSuperview()
make.top.equalToSuperview().offset(64) make.top.equalToSuperview().offset(64)
make.width.equalTo(294) make.width.equalTo(294)
...@@ -86,13 +85,14 @@ private extension YHOfficialApprovalResultVC2 { ...@@ -86,13 +85,14 @@ private extension YHOfficialApprovalResultVC2 {
view.updataView(data: ["祝贺您和您的家人申请的","【优秀人才入境计划】","2023年10月1日正式获批","这意味着,您领取香港居民身份证","仅有一步之遥!!"]) view.updataView(data: ["祝贺您和您的家人申请的","【优秀人才入境计划】","2023年10月1日正式获批","这意味着,您领取香港居民身份证","仅有一步之遥!!"])
return view return view
}() }()
view.addSubview(contentView) docImageV.addSubview(contentView)
contentView.snp.makeConstraints { make in contentView.snp.makeConstraints { make in
make.left.equalTo(144) make.left.equalTo(60)
make.top.equalTo(213) make.top.equalTo(140)
make.width.equalTo(334) make.width.equalTo(294)
make.height.equalTo(239) make.height.equalTo(530)
} }
// contentView.backgroundColor = .red
contentView.transform = rotatedTransform() contentView.transform = rotatedTransform()
} }
......
...@@ -12,6 +12,8 @@ class YHOffivialApprovalSuccessView: UIView { ...@@ -12,6 +12,8 @@ class YHOffivialApprovalSuccessView: UIView {
var titleLabel: UILabel! var titleLabel: UILabel!
private var arrViews : [UIView] = []
required init?(coder: NSCoder) { required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented") fatalError("init(coder:) has not been implemented")
} }
...@@ -39,6 +41,11 @@ class YHOffivialApprovalSuccessView: UIView { ...@@ -39,6 +41,11 @@ class YHOffivialApprovalSuccessView: UIView {
} }
func updataView(data: [String]) { func updataView(data: [String]) {
for (_,item) in arrViews.enumerated() {
item.removeFromSuperview()
}
var h = 80 var h = 80
var index = 0 var index = 0
for item in data { for item in data {
...@@ -61,12 +68,15 @@ class YHOffivialApprovalSuccessView: UIView { ...@@ -61,12 +68,15 @@ class YHOffivialApprovalSuccessView: UIView {
addSubview(line) addSubview(line)
line.snp.makeConstraints { make in line.snp.makeConstraints { make in
make.left.equalTo(5) make.left.equalTo(5)
make.top.equalTo(h + 26 + 5) make.top.equalTo(h + 26 + 2)
make.width.equalTo(234) make.width.equalTo(234)
make.height.equalTo(1) make.height.equalTo(1)
} }
h = h + 26 + 5 h = h + 26 + 10
index = index + 1 index = index + 1
arrViews.append(label)
arrViews.append(line)
} }
} }
} }
...@@ -101,7 +101,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -101,7 +101,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
// self.navigationController?.pushViewController(vc) // self.navigationController?.pushViewController(vc)
let vc = YHOfficialApprovalResultVC() let vc = YHOfficialApprovalResultVC2()
self?.navigationController?.pushViewController(vc) //for test hjl self?.navigationController?.pushViewController(vc) //for test hjl
} }
view.evaluateBlock = { view.evaluateBlock = {
......
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