| | |
| | | cell.cons_handleCenterY.constant = -7 |
| | | if self.selectStudents.contains(where: {($0 as! CourseDetailStudentModel).id == item.id}){ |
| | | cell.btn_handle.setImage(UIImage(named: "btn_choose_s"), for: .normal) |
| | | cell.view_container.borderColor = UIColor(hexStr: "#FD7902").withAlphaComponent(0.28) |
| | | cell.view_container.jq_borderColor = UIColor(hexStr: "#FD7902").withAlphaComponent(0.28) |
| | | }else{ |
| | | cell.btn_handle.setImage(nil, for: .normal) |
| | | cell.view_container.borderColor = UIColor(hexStr: "#ADADAD").withAlphaComponent(0.28) |
| | | cell.view_container.jq_borderColor = UIColor(hexStr: "#ADADAD").withAlphaComponent(0.28) |
| | | } |
| | | cell.studentModel = item |
| | | return cell |
| | |
| | | cell.activityDetailPartModel = item |
| | | if self.selectStudents.contains(where: {($0 as! ActivityDetailPartModel).id == item.id}){ |
| | | cell.img_radio.image = UIImage(named: "btn_choose_s") |
| | | cell.view_container.borderColor = UIColor(hexStr: "#FD7902").withAlphaComponent(0.28) |
| | | cell.view_container.jq_borderColor = UIColor(hexStr: "#FD7902").withAlphaComponent(0.28) |
| | | cell.img_radio.isHidden = false |
| | | }else{ |
| | | cell.img_radio.image = UIImage(named: "") |
| | | cell.view_container.borderColor = UIColor(hexStr: "#ADADAD").withAlphaComponent(0.28) |
| | | cell.view_container.jq_borderColor = UIColor(hexStr: "#ADADAD").withAlphaComponent(0.28) |
| | | cell.img_radio.isHidden = true |
| | | } |
| | | return cell |