Commit 423a9112 authored by David黄金龙's avatar David黄金龙

完善 我的证件的入口数据

parent 77da0cf5
...@@ -172,15 +172,5 @@ extension YHMineCertificateEntryViewController : UITableViewDelegate,UITableView ...@@ -172,15 +172,5 @@ extension YHMineCertificateEntryViewController : UITableViewDelegate,UITableView
vc.categoryInfo = model.category_data[indexPath.section] vc.categoryInfo = model.category_data[indexPath.section]
} }
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
// //获取订单号
// let orderId = serviceCenterMainReqVM.arrContactList[indexPath.section].id
// UserDefaults.standard.set(orderId, forKey: "orderIdForPreview")
// UserDefaults.standard.synchronize()
//
// let vc = YHServiceCenterSecondViewController()
// vc.orderId = orderId
// self.navigationController?.pushViewController(vc)
} }
} }
...@@ -15,6 +15,11 @@ class YHCertificateEntryModel: SmartCodable { ...@@ -15,6 +15,11 @@ class YHCertificateEntryModel: SmartCodable {
var to_be_audit_num : Int = 0 //待审核 var to_be_audit_num : Int = 0 //待审核
var to_be_submit_num : Int = 0 //待提交 var to_be_submit_num : Int = 0 //待提交
var category_data : [YHCategoryData] = [] var category_data : [YHCategoryData] = []
var sex : Int = 0 //1-男 2-女
var user_name : String = ""
required init() { required init() {
} }
} }
...@@ -42,7 +42,7 @@ class YHCategoryData: SmartCodable { ...@@ -42,7 +42,7 @@ class YHCategoryData: SmartCodable {
case categoryId = "category_id" case categoryId = "category_id"
case checkStatus = "check_status" case checkStatus = "check_status"
case sex = "sex" case sex = "sex"
case userName = "User_name" case userName = "user_name"
} }
required init() { required init() {
......
...@@ -49,7 +49,11 @@ class YHCertificateEntryCell: UITableViewCell { ...@@ -49,7 +49,11 @@ class YHCertificateEntryCell: UITableViewCell {
extension YHCertificateEntryCell { extension YHCertificateEntryCell {
func updateUI() { func updateUI() {
guard let dataModel = dataModel else { return } guard let dataModel = dataModel else { return }
contractNameLable.text = dataModel.applicantName + "(" + dataModel.userName + ")" var name = ""
if dataModel.userName.isEmpty == false {
name = "(" + dataModel.userName + ")"
}
contractNameLable.text = dataModel.applicantName + name
//0:未审核,1:通过 2:驳回,3:未提交', //0:未审核,1:通过 2:驳回,3:未提交',
var title = "" var title = ""
......
...@@ -84,8 +84,42 @@ private extension YHCertificateEntryHeadView { ...@@ -84,8 +84,42 @@ private extension YHCertificateEntryHeadView {
} }
func updateUI() { func updateUI() {
guard let dataModel = dataModel else { return }
var tmp = ""
if dataModel.user_name.isEmpty {
tmp = "尊敬的用户"
} else {
tmp = dataModel.user_name
if dataModel.sex == 1 {
tmp = tmp + "先生"
} else if dataModel.sex == 2 {
tmp = tmp + "女士"
} else {
}
}
nameLable.text = "您好," + tmp
let a: ASAttributedString = .init("待上传", .font(UIFont.PFSC_R(ofSize: 13)),.foreground(UIColor.mainTextColor))
let aa: ASAttributedString = .init(NSAttributedString(string: String(dataModel.to_be_submit_num)), .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.warnColor))
let b: ASAttributedString = .init("件,已驳回", .font(UIFont.PFSC_R(ofSize: 13)),.foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init(NSAttributedString(string: String(dataModel.reject_num)), .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.warnColor))
let c: ASAttributedString = .init("件,审核中", .font(UIFont.PFSC_R(ofSize: 13)),.foreground(UIColor.mainTextColor))
let cc: ASAttributedString = .init(NSAttributedString(string: String(dataModel.to_be_audit_num)), .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.warnColor))
let d: ASAttributedString = .init("件,已通过", .font(UIFont.PFSC_R(ofSize: 13)),.foreground(UIColor.mainTextColor))
let dd: ASAttributedString = .init(NSAttributedString(string: String(dataModel.pass_num)), .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.warnColor))
let e: ASAttributedString = .init("件", .font(UIFont.PFSC_R(ofSize: 13)),.foreground(UIColor.mainTextColor))
statiticLable.attributed.text = a + aa + b + bb + c + cc + d + dd + e
} }
} }
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