Commit 0bcb18c0 authored by Steven杜宇's avatar Steven杜宇

// 我的证件

parent 09f95272
...@@ -60,7 +60,7 @@ class YHCertificateListContainerVC: YHBaseViewController { ...@@ -60,7 +60,7 @@ class YHCertificateListContainerVC: YHBaseViewController {
return bar return bar
}() }()
var titles = ["全部(0)", "待上传(0)", "已驳回(0)", "审核中(0)", "已通过(0)"] var titles = ["全部", "待上传(0)", "已驳回(0)", "审核中(0)", "已通过(0)"]
let categoryItems = [ YHCertificateCategoryItem(type: .all), let categoryItems = [ YHCertificateCategoryItem(type: .all),
YHCertificateCategoryItem(type: .preUpload), YHCertificateCategoryItem(type: .preUpload),
YHCertificateCategoryItem(type: .rejected), YHCertificateCategoryItem(type: .rejected),
...@@ -193,10 +193,7 @@ class YHCertificateListContainerVC: YHBaseViewController { ...@@ -193,10 +193,7 @@ class YHCertificateListContainerVC: YHBaseViewController {
guard let dic = notification.object as? [YHCertificateUploadStatus: Int] else { return } guard let dic = notification.object as? [YHCertificateUploadStatus: Int] else { return }
print(dic) print(dic)
if let count = dic[YHCertificateUploadStatus.all] { if let count = dic[YHCertificateUploadStatus.preUpload] {
titles[0] = "全部(\(count))"
} else if let count = dic[YHCertificateUploadStatus.preUpload] {
titles[1] = "待上传(\(count))" titles[1] = "待上传(\(count))"
} else if let count = dic[YHCertificateUploadStatus.rejected] { } else if let count = dic[YHCertificateUploadStatus.rejected] {
......
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