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

细节修改

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