Commit 409b2001 authored by David黄金龙's avatar David黄金龙

添加 我的评分 和 信息详情

parent 5443436a
...@@ -135,6 +135,8 @@ ...@@ -135,6 +135,8 @@
A5FD63C72B638CA000D1D9DA /* YHSubmintAllInfoSuccessTipView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63C62B638CA000D1D9DA /* YHSubmintAllInfoSuccessTipView.swift */; }; A5FD63C72B638CA000D1D9DA /* YHSubmintAllInfoSuccessTipView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63C62B638CA000D1D9DA /* YHSubmintAllInfoSuccessTipView.swift */; };
A5FD63C92B63A35B00D1D9DA /* YHInformationFillTipsAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63C82B63A35B00D1D9DA /* YHInformationFillTipsAlertView.swift */; }; A5FD63C92B63A35B00D1D9DA /* YHInformationFillTipsAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63C82B63A35B00D1D9DA /* YHInformationFillTipsAlertView.swift */; };
A5FD63CB2B63D6C300D1D9DA /* YHInformationFillTipsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63CA2B63D6C300D1D9DA /* YHInformationFillTipsCell.swift */; }; A5FD63CB2B63D6C300D1D9DA /* YHInformationFillTipsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63CA2B63D6C300D1D9DA /* YHInformationFillTipsCell.swift */; };
A5FD63CD2B64E2D600D1D9DA /* YHScoreDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63CC2B64E2D600D1D9DA /* YHScoreDetailViewController.swift */; };
A5FD63CF2B64E32400D1D9DA /* YHMyInformationListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FD63CE2B64E32400D1D9DA /* YHMyInformationListViewController.swift */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */ /* Begin PBXContainerItemProxy section */
...@@ -302,6 +304,8 @@ ...@@ -302,6 +304,8 @@
A5FD63C62B638CA000D1D9DA /* YHSubmintAllInfoSuccessTipView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSubmintAllInfoSuccessTipView.swift; sourceTree = "<group>"; }; A5FD63C62B638CA000D1D9DA /* YHSubmintAllInfoSuccessTipView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSubmintAllInfoSuccessTipView.swift; sourceTree = "<group>"; };
A5FD63C82B63A35B00D1D9DA /* YHInformationFillTipsAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInformationFillTipsAlertView.swift; sourceTree = "<group>"; }; A5FD63C82B63A35B00D1D9DA /* YHInformationFillTipsAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInformationFillTipsAlertView.swift; sourceTree = "<group>"; };
A5FD63CA2B63D6C300D1D9DA /* YHInformationFillTipsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInformationFillTipsCell.swift; sourceTree = "<group>"; }; A5FD63CA2B63D6C300D1D9DA /* YHInformationFillTipsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInformationFillTipsCell.swift; sourceTree = "<group>"; };
A5FD63CC2B64E2D600D1D9DA /* YHScoreDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHScoreDetailViewController.swift; sourceTree = "<group>"; };
A5FD63CE2B64E32400D1D9DA /* YHMyInformationListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMyInformationListViewController.swift; sourceTree = "<group>"; };
B6BB01E4C5DB87B66F0ECE84 /* Pods-galaxy.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-galaxy.release.xcconfig"; path = "Target Support Files/Pods-galaxy/Pods-galaxy.release.xcconfig"; sourceTree = "<group>"; }; B6BB01E4C5DB87B66F0ECE84 /* Pods-galaxy.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-galaxy.release.xcconfig"; path = "Target Support Files/Pods-galaxy/Pods-galaxy.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
...@@ -755,6 +759,8 @@ ...@@ -755,6 +759,8 @@
A5ACE9192B4564F7002C94D2 /* YHServiceCenterMainViewController.swift */, A5ACE9192B4564F7002C94D2 /* YHServiceCenterMainViewController.swift */,
A514E5DB2B60A2B700C93951 /* YHServiceCenterSecondViewController.swift */, A514E5DB2B60A2B700C93951 /* YHServiceCenterSecondViewController.swift */,
A5FD63BC2B623C2C00D1D9DA /* YHInformationPerfectListVC.swift */, A5FD63BC2B623C2C00D1D9DA /* YHInformationPerfectListVC.swift */,
A5FD63CC2B64E2D600D1D9DA /* YHScoreDetailViewController.swift */,
A5FD63CE2B64E32400D1D9DA /* YHMyInformationListViewController.swift */,
); );
path = C; path = C;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -1106,6 +1112,7 @@ ...@@ -1106,6 +1112,7 @@
0468D4282B50D4AF00CFB916 /* YHPrivacyAlertView.swift in Sources */, 0468D4282B50D4AF00CFB916 /* YHPrivacyAlertView.swift in Sources */,
0468D4342B56587B00CFB916 /* YHOSSManager.swift in Sources */, 0468D4342B56587B00CFB916 /* YHOSSManager.swift in Sources */,
A5C382D12B5FAAB300C5E65C /* YHContactItemModel.swift in Sources */, A5C382D12B5FAAB300C5E65C /* YHContactItemModel.swift in Sources */,
A5FD63CF2B64E32400D1D9DA /* YHMyInformationListViewController.swift in Sources */,
A5ACE9522B4564F7002C94D2 /* YHServiceCenterMainViewController.swift in Sources */, A5ACE9522B4564F7002C94D2 /* YHServiceCenterMainViewController.swift in Sources */,
A5C5B2FD2B55361700A7C5D1 /* YHBannerModel.swift in Sources */, A5C5B2FD2B55361700A7C5D1 /* YHBannerModel.swift in Sources */,
A5ACE9462B4564F7002C94D2 /* BsHUDSquareBaseView.swift in Sources */, A5ACE9462B4564F7002C94D2 /* BsHUDSquareBaseView.swift in Sources */,
...@@ -1114,6 +1121,7 @@ ...@@ -1114,6 +1121,7 @@
A5C382CA2B5E1F4C00C5E65C /* YHLoginTipsView.swift in Sources */, A5C382CA2B5E1F4C00C5E65C /* YHLoginTipsView.swift in Sources */,
0468D4452B62064700CFB916 /* YHStepView.swift in Sources */, 0468D4452B62064700CFB916 /* YHStepView.swift in Sources */,
A5C5B3232B57BF8F00A7C5D1 /* YHDavidCell1.swift in Sources */, A5C5B3232B57BF8F00A7C5D1 /* YHDavidCell1.swift in Sources */,
A5FD63CD2B64E2D600D1D9DA /* YHScoreDetailViewController.swift in Sources */,
A5C5B2FB2B5535DF00A7C5D1 /* YHHomeBannerView.swift in Sources */, A5C5B2FB2B5535DF00A7C5D1 /* YHHomeBannerView.swift in Sources */,
041B528B2B5E15F1007EBCEB /* YHFormItemQuestionCell.swift in Sources */, 041B528B2B5E15F1007EBCEB /* YHFormItemQuestionCell.swift in Sources */,
A5ACE94B2B4564F7002C94D2 /* BsHUDRotatingImageView.swift in Sources */, A5ACE94B2B4564F7002C94D2 /* BsHUDRotatingImageView.swift in Sources */,
......
...@@ -15,8 +15,27 @@ class YHInformationPerfectListVC: YHBaseViewController { ...@@ -15,8 +15,27 @@ class YHInformationPerfectListVC: YHBaseViewController {
// private let serviceCenterMainReqVM : YHServiceCenterMainViewModel = YHServiceCenterMainViewModel() // private let serviceCenterMainReqVM : YHServiceCenterMainViewModel = YHServiceCenterMainViewModel()
var arrData : [YHInformationPerfectModel] = [] private var arrData : [YHInformationPerfectModel] = []
private var myTargetIndex : Int32 = 1 private var myTargetIndex : Int32 = 1 //for test hjl
private var hasSubmitFlag : Bool = false {
didSet {
submitBtn.isHidden = hasSubmitFlag
submitHoldView.isHidden = !hasSubmitFlag
if hasSubmitFlag == true {
headerTitleDesLable.text = "您已提交信息表"
} else {
headerTitleDesLable.text = "您好,DavidHuang先生"
}
}
}
private lazy var headerTitleDesLable : UILabel = {
let titleLable = UILabel(text: "您好,黄先生")
titleLable.font = UIFont.PingFangScM(ofSize: 21)
return titleLable
}()
private lazy var topBkg : UIView = { private lazy var topBkg : UIView = {
let imagV = UIImageView() let imagV = UIImageView()
...@@ -38,28 +57,6 @@ class YHInformationPerfectListVC: YHBaseViewController { ...@@ -38,28 +57,6 @@ class YHInformationPerfectListVC: YHBaseViewController {
var myHeadView : UIView = { var myHeadView : UIView = {
let view = UIView() let view = UIView()
let titleLable = UILabel(text: "您好,黄先生")
titleLable.font = kFont(size: 21)
view.addSubview(titleLable)
titleLable.snp.makeConstraints { make in
make.top.equalTo(16)
make.left.equalTo(24)
make.right.equalTo(-24)
make.height.equalTo(26)
}
let desLable = UILabel(text: "此表由主申请人填写,我们将会根据您的个人信息制作资料清单,请按顺序填写,提交后1-2个工作日内联系您哦~")
desLable.font = kFont(size: 13)
desLable.numberOfLines = 0
desLable.lineBreakMode = .byWordWrapping
view.addSubview(desLable)
desLable.snp.makeConstraints { make in
make.top.equalTo(titleLable.snp.bottom).offset(10)
make.left.equalTo(24)
make.right.equalTo(-24)
}
return view return view
}() }()
...@@ -70,6 +67,15 @@ class YHInformationPerfectListVC: YHBaseViewController { ...@@ -70,6 +67,15 @@ class YHInformationPerfectListVC: YHBaseViewController {
return view return view
}() }()
var submitHoldView : UIView = {
let view = UIView()
view.backgroundColor = .clear
return view
}()
var submitBtn: UIButton!
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
setupUI() setupUI()
...@@ -97,16 +103,28 @@ extension YHInformationPerfectListVC { ...@@ -97,16 +103,28 @@ extension YHInformationPerfectListVC {
// } // }
} }
@objc func goScoreVC() {
//我的评分
navigationController?.pushViewController(YHScoreDetailViewController())
}
@objc func goInfoListVC() {
//个人信息表
navigationController?.pushViewController(YHMyInformationListViewController())
}
@objc func clickSubmitBtn() { @objc func clickSubmitBtn() {
YHSubmitAllInfoCheckView.showCheckView { agree in YHSubmitAllInfoCheckView.showCheckView { agree in
if agree == true { if agree == true {
printLog("点击了 确认 按钮") printLog("点击了 确认 按钮")
YHSubmintAllInfoSuccessTipView.showCheckView { agree in YHSubmintAllInfoSuccessTipView.showCheckView { agree in
self.hasSubmitFlag = true
if agree == true { if agree == true {
printLog("点击了 确认2 按钮") self.goScoreVC()
} else { } else {
printLog("点击了 取消2 按钮")
} }
} }
} else { } else {
...@@ -163,11 +181,11 @@ extension YHInformationPerfectListVC { ...@@ -163,11 +181,11 @@ extension YHInformationPerfectListVC {
} }
let submitBtn = UIButton(type: .custom) submitBtn = UIButton(type: .custom)
submitBtn.layer.opacity = 0.4 submitBtn.layer.opacity = 0.4
submitBtn.setTitle("提交信息", for: .normal) submitBtn.setTitle("提交信息", for: .normal)
submitBtn.setTitleColor(UIColor.white, for: .normal) submitBtn.setTitleColor(UIColor.white, for: .normal)
// submitBtn.addGradualLayer([UIColor(hex: 0x2274EE, alpha: 1.0),UIColor(hex: 0x3A85FC, alpha: 1.0)])
submitBtn.setBackgroundImage(UIImage.from(color: UIColor(hex: 0x4D9FF8, alpha: 1.0)), for: .normal) submitBtn.setBackgroundImage(UIImage.from(color: UIColor(hex: 0x4D9FF8, alpha: 1.0)), for: .normal)
submitBtn.layer.cornerRadius = 8 submitBtn.layer.cornerRadius = 8
submitBtn.clipsToBounds = true submitBtn.clipsToBounds = true
...@@ -181,6 +199,53 @@ extension YHInformationPerfectListVC { ...@@ -181,6 +199,53 @@ extension YHInformationPerfectListVC {
make.height.equalTo(48) make.height.equalTo(48)
} }
submitBtn.isHidden = hasSubmitFlag
submitHoldView.isHidden = !hasSubmitFlag
myBottomView.addSubview(submitHoldView)
submitHoldView.snp.makeConstraints { make in
make.top.equalTo(8)
make.left.equalTo(16)
make.right.equalTo(-16)
make.height.equalTo(48)
}
let scoreButton = {
let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0xffffff)
button.titleLabel?.font = kBoldFont(size: 14)
button.contentHorizontalAlignment = .center
button.setTitle("我的评分", for: .normal)
button.setTitleColor( UIColor(hex:0x3c86f8), for: .normal)
button.layer.cornerRadius = 8
button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x3c86f8).cgColor
button.addTarget(self, action: #selector(goScoreVC), for: .touchUpInside)
return button
}()
submitHoldView.addSubview(scoreButton)
scoreButton.snp.makeConstraints { make in
make.left.top.bottom.equalToSuperview()
make.right.equalTo(submitHoldView.snp.centerX).offset(-6)
}
let infoButton = {
let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0x3c86f8)
button.titleLabel?.font = kBoldFont(size: 14)
button.contentHorizontalAlignment = .center
button.setTitle("个人信息表", for: .normal)
button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = 8
button.addTarget(self, action: #selector(goInfoListVC), for: .touchUpInside)
return button
}()
submitHoldView.addSubview(infoButton)
infoButton.snp.makeConstraints { make in
make.right.top.bottom.equalToSuperview()
make.left.equalTo(submitHoldView.snp.centerX).offset(6)
}
homeTableView.delegate = self homeTableView.delegate = self
homeTableView.dataSource = self homeTableView.dataSource = self
...@@ -191,6 +256,31 @@ extension YHInformationPerfectListVC { ...@@ -191,6 +256,31 @@ extension YHInformationPerfectListVC {
make.bottom.equalTo(myBottomView.snp.top) make.bottom.equalTo(myBottomView.snp.top)
} }
myHeadView.addSubview(headerTitleDesLable)
headerTitleDesLable.snp.makeConstraints { make in
make.top.equalTo(16)
make.left.equalTo(24)
make.right.equalTo(-24)
make.height.equalTo(26)
}
let desLable = UILabel(text: "此表由主申请人填写,我们将会根据您的个人信息制作资料清单,请按顺序填写,提交后1-2个工作日内联系您哦~")
desLable.font = UIFont.PingFangScR(ofSize: 12)
desLable.numberOfLines = 0
desLable.lineBreakMode = .byWordWrapping
myHeadView.addSubview(desLable)
desLable.snp.makeConstraints { make in
make.top.equalTo(headerTitleDesLable.snp.bottom).offset(10)
make.left.equalTo(24)
make.right.equalTo(-24)
}
myHeadView.frame = CGRect(x: 0, y: 0, width: KScreenWidth, height: 96) myHeadView.frame = CGRect(x: 0, y: 0, width: KScreenWidth, height: 96)
homeTableView.tableHeaderView = myHeadView homeTableView.tableHeaderView = myHeadView
homeTableView.reloadData() homeTableView.reloadData()
......
//
// YHMyInformationListViewController.swift
// galaxy
//
// Created by davidhuangA on 2024/1/27.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
/*
*个人信息表
*/
class YHMyInformationListViewController: YHBaseViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
//
// YHScoreDetailViewController.swift
// galaxy
//
// Created by davidhuangA on 2024/1/27.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
/*
我的评分 / 评分详情
*/
class YHScoreDetailViewController: YHBaseViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
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