CNLiveMineAuthResultViewController.swift
3.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
//
// CNLiveMineAuthResultViewController.swift
// metaCode
//
// Created by open on 2023/9/12.
//
import Foundation
class CNLiveMineAuthResultViewController: CNLiveBaseViewController {
lazy var mainView: UIImageView = {
let mainView = UIImageView()
mainView.backgroundColor = .white
mainView.contentMode = .scaleToFill
mainView.image = UIImage(named: "mIne_auth_result_header_icon")
return mainView
}()
lazy var tipName: UILabel = {
let tipName = UILabel.init()
tipName.text = "资料审核中"
tipName.font = BoldFont_18_Fit
tipName.textAlignment = .center
tipName.textColor = .black
return tipName
}()
lazy var tipDesc: UILabel = {
let tipDesc = UILabel.init()
tipDesc.text = "请耐心等待,预计一分钟之内完成审核"
tipDesc.textColor = HexColor("#A9A9A9")
tipDesc.textAlignment = .center
tipDesc.font = Font_13
return tipDesc
}()
lazy var sendButton: UIButton = {
let sendButton = UIButton(type: .custom)
sendButton.setTitle("确 定", for: .normal)
sendButton.setTitleColor(.white, for: .normal)
sendButton.titleLabel?.font = BoldFont_16_Fit
sendButton.layer.cornerRadius = 20
sendButton.layer.masksToBounds = true
sendButton.addTarget(self, action: #selector(sendInfoActionMothod), for: .touchUpInside)
return sendButton
}()
var _listModel:StandListModel!
init(listModel:StandListModel) {
super.init(nibName:nil, bundle:nil)
_listModel = listModel
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
}
override func viewDidLoad() {
super.viewDidLoad()
navigationBarHidden = false
view.backgroundColor = .white
topNavView.backgroundColor = .clear
titleName = "添加\(_listModel.name!)"
titleLabel.textColor = .white
leftBtnWhite = true
setNeedsStatusBarAppearanceUpdate()
view.insertSubview(mainView, belowSubview: topNavView)
mainView.snp.makeConstraints { make in
make.left.top.right.equalToSuperview()
make.height.equalTo(346)
}
view.addSubview(tipName)
tipName.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.top.equalTo(mainView.snp.bottom).offset(20)
}
view.addSubview(tipDesc)
tipDesc.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.top.equalTo(tipName.snp.bottom).offset(10)
}
view.addSubview(sendButton)
sendButton.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.top.equalTo(tipDesc.snp.bottom).offset(50)
make.height.equalTo(40)
make.width.equalTo(150)
}
sendButton.setGradient(colors: [UIColor(red: 103/255.0, green: 197/255.0, blue: 255/255.0, alpha: 1),UIColor(red: 96/255.0, green: 154/255.0, blue: 255/255.0, alpha: 1)], startPoint: CGPoint(x: 0, y: 0.5), endPoint: CGPoint(x: 1, y: 0.5))
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
@objc func sendInfoActionMothod() {
}
}