Commit 38838aef authored by Steven杜宇's avatar Steven杜宇

// 续签

parent dec20283
...@@ -103,23 +103,18 @@ class YHResignMaterialCell: UITableViewCell { ...@@ -103,23 +103,18 @@ class YHResignMaterialCell: UITableViewCell {
var result:ASAttributedString = .init(string:"", .font(UIFont.PFSC_M(ofSize: 16)), .foreground(UIColor.mainTextColor)) var result:ASAttributedString = .init(string:"", .font(UIFont.PFSC_M(ofSize: 16)), .foreground(UIColor.mainTextColor))
let mustTag: ASAttributedString = .init("*", .font(UIFont.PFSC_M(ofSize: 16)),.foreground(UIColor.failColor)) let mustTag: ASAttributedString = .init("*", .font(UIFont.PFSC_M(ofSize: 16)),.foreground(UIColor.failColor))
var name = model.name let name = model.name
let cerName: ASAttributedString = .init(string:name , .font(UIFont.PFSC_M(ofSize: 16)), .foreground(UIColor.mainTextColor)) let cerName: ASAttributedString = .init(string:name , .font(UIFont.PFSC_M(ofSize: 16)), .foreground(UIColor.mainTextColor))
var template: ASAttributedString = " \(.view(templateButton, .original(.center)))" let template: ASAttributedString = " \(.view(templateButton, .original(.center)))"
// 是否展示右边的模版按钮 // 标题前是否展示红色*
var showTemplateBtn = true if model.upload_require == "MUST" {
// if model.templateInfo.materialPath.isEmpty && model.templateInfo.guideFilePath.isEmpty && model.templateInfo.description.isEmpty {
//
// showTemplateBtn = false
// }
if true {
result += mustTag result += mustTag
} }
result += cerName result += cerName
showTemplateBtn = true // 是否展示右边的模版按钮
var showTemplateBtn = true
if showTemplateBtn { if showTemplateBtn {
result += template result += template
} }
......
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