| | |
| | | var studyScheduleModel:StudyScheduleModel?{ |
| | | didSet{ |
| | | if let m = studyScheduleModel{ |
| | | label_currentWeek.text = "当前周目:\(studyScheduleModel?.week.jq_cn ?? "")周目" |
| | | // label_currentWeek.text = "当前周目:\(studyScheduleModel?.week.jq_cn ?? "")周目" |
| | | |
| | | label_info.attributedText = AttributedStringbuilder.build().add(string: "学习总时长:", withFont: .systemFont(ofSize: 16), withColor: UIColor(hexString: "#2B3648")!) |
| | | .add(string: "\(m.totalStudy)小时", withFont: .systemFont(ofSize: 16, weight: .medium), withColor: UIColor(hexString: "#2B3648")!) |
| | | .add(string: "|今日学习", withFont: .systemFont(ofSize: 16), withColor: UIColor(hexString: "#2B3648")!) |
| | | .add(string: "\(m.todayStudy)小时", withFont: .systemFont(ofSize: 16, weight: .medium), withColor: UIColor(hexString: "#2B3648")!).mutableAttributedString |
| | | |
| | | |
| | | cons_progress.constant = ((JQ_ScreenW - 234 * 2 - 44) / 100) * Double(m.computeSchedule) |
| | | label_completeProgress.text = "已完成:\(m.computeSchedule)%" |
| | | } |
| | |
| | | super.awakeFromNib() |
| | | backgroundColor = .clear |
| | | selectionStyle = .none |
| | | |
| | | label_info.attributedText = AttributedStringbuilder.build().add(string: "学习总时长:", withFont: .systemFont(ofSize: 16), withColor: UIColor(hexString: "#2B3648")!) |
| | | .add(string: "\(0)小时", withFont: .systemFont(ofSize: 16, weight: .medium), withColor: UIColor(hexString: "#2B3648")!) |
| | | .add(string: "|今日学习", withFont: .systemFont(ofSize: 16), withColor: UIColor(hexString: "#2B3648")!) |
| | | .add(string: "\(0)小时", withFont: .systemFont(ofSize: 16, weight: .medium), withColor: UIColor(hexString: "#2B3648")!).mutableAttributedString |
| | | } |
| | | |
| | | } |