Commit dc23a154 authored by David黄金龙's avatar David黄金龙

no message

parent db892321
......@@ -97,12 +97,15 @@ extension YHHKPlanDoctumentVC {
}
func getData() {
YHHUD.show(.progress(message: ""))
viewModel.requestDocumentsDetail("\(supplement_id)", callBackBlock: {[weak self] success, error in
YHHUD.hide()
guard let self = self else { return }
for item in viewModel.arrHKPlanData {
item.canEditFlag = self.canEditFlag
}
self.tableView.isHidden = false
self.tableView.reloadData()
})
}
......@@ -167,6 +170,7 @@ extension YHHKPlanDoctumentVC {
tableView.dataSource = self
tableView.register(cellWithClass: YHHKPlanCell.self)
tableView.register(cellWithClass: YHHKPlanTipsCell.self)
tableView.isHidden = true
return tableView
}()
......
......@@ -52,12 +52,12 @@ class YHSchemeHeadScoreItemView: UIView {
let a: ASAttributedString = .init("学历", .font(UIFont.PFSC_M(ofSize: 14)),.foreground(UIColor.mainTextColor))
let aa: ASAttributedString = .init(NSAttributedString(string: light), .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.warnColor))
let aa: ASAttributedString = .init(NSAttributedString(string: light), .font(UIFont.PFSC_M(ofSize: 14)),.foreground(UIColor.warnColor))
let b: ASAttributedString = .init("分,名校加分", .font(UIFont.PFSC_M(ofSize: 14)),.foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init(NSAttributedString(string: addtionStr), .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.warnColor))
let bb: ASAttributedString = .init(NSAttributedString(string: addtionStr), .font(UIFont.PFSC_M(ofSize: 14)),.foreground(UIColor.warnColor))
let bbb: ASAttributedString = .init("分", .font(UIFont.PFSC_M(ofSize: 14)),.foreground(UIColor.mainTextColor))
......
......@@ -130,6 +130,9 @@ class YHSchemeTableViewCell: UITableViewCell {
label.numberOfLines = 0
return label
}()
centerView.addSubview(mainMessageLabel)
mainMessageLabel.snp.makeConstraints { make in
make.top.equalTo(69)
......@@ -163,7 +166,16 @@ class YHSchemeTableViewCell: UITableViewCell {
titleButton.iconInRight(with: 2)
let newString: NSAttributedString = model.mainMessage.highlighted(keyWords: model.lightMessage, highlightColor: UIColor(hex: 0xd48638))
mainMessageLabel.attributedText = newString
subMessageLabel.text = model.subMessage
let paragraphStyle = NSMutableParagraphStyle()
paragraphStyle.lineSpacing = 10 // 设置行间距
let attributes: [NSAttributedString.Key: Any] = [
.paragraphStyle: paragraphStyle,
.font: UIFont.PFSC_R(ofSize: 14)
]
let attributedString = NSAttributedString(string: model.subMessage, attributes: attributes)
subMessageLabel.attributedText = attributedString
}
@objc func goNext() {
......
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