Commit 8ae114bf authored by Steven杜宇's avatar Steven杜宇

// 方案

parent a073813d
......@@ -23,14 +23,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
for (i, family) in UIFont.familyNames.enumerated() {
print("\(i)---项目字体---\(family)")
for names: String in UIFont.fontNames(forFamilyName: family) {
print("== \(names)")
}
}
Thread.sleep(forTimeInterval: 0.5) // 应产品同学Nick要求 启动页时间展示长点
......
......@@ -103,6 +103,7 @@ class YHImproveHKView: UIView {
btn.titleLabel?.font = .PFSC_M(ofSize: 14)
btn.setImage(UIImage(named: "blue_right_arrow"), for: .normal)
btn.YH_clickEdgeInsets = UIEdgeInsets(top: 10, left: 20, bottom: 20, right: 10)
btn.addTarget(self, action: #selector(didRightBtnClicked), for: .touchUpInside)
return btn
}()
......@@ -115,6 +116,10 @@ class YHImproveHKView: UIView {
fatalError("init(coder:) has not been implemented")
}
@objc func didRightBtnClicked() {
YHImproveSchemeTemplateListView.listView().show()
}
func setupUI() {
self.addSubview(grayView)
......
......@@ -22,6 +22,7 @@ class YHImproveSchemeTemplateListCell: UITableViewCell {
let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = .mainTextColor
label.numberOfLines = 0
label.text = "5、持股证明文件.pdf(周年申报表/工商备案的公司章程/验资报告/国家企业信用信息公示报告)"
return label
}()
......@@ -32,15 +33,11 @@ class YHImproveSchemeTemplateListCell: UITableViewCell {
btn.setTitle("查看示例", for: .normal)
btn.setTitleColor(.mainTextColor, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_M(ofSize: 11)
btn.addTarget(self, action: #selector(didRightBtnClicked), for: .touchUpInside)
// btn.addTarget(self, action: #selector(didRightBtnClicked), for: .touchUpInside)
btn.layer.cornerRadius = kCornerRadius2
return btn
}()
@objc func didRightBtnClicked() {
YHImproveSchemeTemplateListView.listView().show()
}
required init?(coder: NSCoder) {
super.init(coder: coder)
}
......
......@@ -26,7 +26,7 @@ class YHImproveSchemeTemplateListView: UIView {
lazy var whiteView: UIView = {
let view = UIView()
view.backgroundColor = .white
view.layer.cornerRadius = 2.0
view.layer.cornerRadius = 4.0
return view
}()
......@@ -49,6 +49,7 @@ class YHImproveSchemeTemplateListView: UIView {
lazy var titleLabel: UILabel = {
let label = UILabel()
label.textAlignment = .center
label.font = UIFont.PFSC_M(ofSize: 17)
label.textColor = .mainTextColor
label.text = "材料示例"
......@@ -74,7 +75,6 @@ class YHImproveSchemeTemplateListView: UIView {
@objc func show() {
UIApplication.shared.yhKeyWindow()?.addSubview(self)
}
@objc func dismiss() {
......@@ -86,8 +86,8 @@ class YHImproveSchemeTemplateListView: UIView {
self.addSubview(blackMaskView)
self.addSubview(whiteView)
whiteView.addSubview(titleLabel)
whiteView.addSubview(closeBtn)
whiteView.addSubview(tableView)
whiteView.addSubview(closeBtn)
blackMaskView.snp.makeConstraints { make in
make.edges.equalToSuperview()
......@@ -105,12 +105,14 @@ class YHImproveSchemeTemplateListView: UIView {
closeBtn.snp.makeConstraints { make in
make.width.height.equalTo(24)
make.centerY.equalToSuperview()
make.centerY.equalTo(titleLabel)
make.right.equalTo(-24)
}
tableView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview()
make.left.equalTo(20)
make.right.equalTo(-20)
make.bottom.equalToSuperview()
make.top.equalTo(titleLabel.snp.bottom).offset(0)
}
}
......
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