Commit 7fdc1304 authored by Steven杜宇's avatar Steven杜宇

// UI

parent 6f9d8b60
...@@ -26,6 +26,12 @@ class YHPrincipleApprovedAlertView: UIView { ...@@ -26,6 +26,12 @@ class YHPrincipleApprovedAlertView: UIView {
return view return view
}() }()
lazy var gradientColorImgView: UIImageView = {
let view = UIImageView()
view.image = UIImage(named: "priciple_approved_bg")
return view
}()
lazy var closeBtn:UIButton = { lazy var closeBtn:UIButton = {
let btn = UIButton() let btn = UIButton()
btn.setImage(UIImage(named: "update_close"), for: .normal) btn.setImage(UIImage(named: "update_close"), for: .normal)
...@@ -108,12 +114,13 @@ class YHPrincipleApprovedAlertView: UIView { ...@@ -108,12 +114,13 @@ class YHPrincipleApprovedAlertView: UIView {
self.addSubview(blackMaskView) self.addSubview(blackMaskView)
self.addSubview(whiteContentView) self.addSubview(whiteContentView)
self.addSubview(closeBtn) whiteContentView.addSubview(gradientColorImgView)
whiteContentView.addSubview(titleLabel) whiteContentView.addSubview(titleLabel)
whiteContentView.addSubview(detailLabel) whiteContentView.addSubview(detailLabel)
whiteContentView.addSubview(bgImgView) whiteContentView.addSubview(bgImgView)
whiteContentView.addSubview(lookBtn) whiteContentView.addSubview(lookBtn)
self.addSubview(closeBtn)
blackMaskView.snp.makeConstraints { make in blackMaskView.snp.makeConstraints { make in
make.edges.equalToSuperview() make.edges.equalToSuperview()
...@@ -125,6 +132,12 @@ class YHPrincipleApprovedAlertView: UIView { ...@@ -125,6 +132,12 @@ class YHPrincipleApprovedAlertView: UIView {
make.centerY.equalToSuperview() make.centerY.equalToSuperview()
} }
gradientColorImgView.snp.makeConstraints { make in
make.top.left.right.equalToSuperview()
make.height.equalTo(gradientColorImgView.snp.width)
}
titleLabel.snp.makeConstraints { make in titleLabel.snp.makeConstraints { make in
make.left.equalTo(24) make.left.equalTo(24)
make.top.equalTo(32) make.top.equalTo(32)
......
...@@ -62,7 +62,7 @@ class YHPrinciplePhotoListCell: UITableViewCell { ...@@ -62,7 +62,7 @@ class YHPrinciplePhotoListCell: UITableViewCell {
lazy var timeLabel: UILabel = { lazy var timeLabel: UILabel = {
let label = UILabel() let label = UILabel()
label.font = UIFont.PFSC_M(ofSize: 13) label.font = UIFont.PFSC_R(ofSize: 13)
label.textColor = UIColor(hex: 0x121A26, alpha: 0.3) label.textColor = UIColor(hex: 0x121A26, alpha: 0.3)
label.numberOfLines = 0 label.numberOfLines = 0
return label return label
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "Group 33334425.png", "filename" : "Group 33334425@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Mask group@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Mask group@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 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