| | |
| | | } |
| | | |
| | | if let endDate = model.registrationClosingTime{ |
| | | let endDateTimeInterval = Date.jq_StringToTimeInterval(endDate, "yyyy-MM-dd HH:mm") |
| | | let endDateTimeInterval = Date.jq_StringToTimeInterval(model.startTime, "yyyy-MM-dd HH:mm") |
| | | |
| | | if Date.jq_CalByDays(startDate: Date(), endDate: Date(timeIntervalSince1970: endDateTimeInterval)) <= 1{ |
| | | self?.btn_enroll.setTitle("取消", for: .normal) |
| | |
| | | } |
| | | |
| | | extension WorldCupContentDetailVC:UITableViewDelegate{ |
| | | |
| | | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { |
| | | let model = detailModel!.participants[indexPath.row] |
| | | if let qrCode = WorldCupUserInfoQRCodel(id: model.id, isStudent: model.isStudent).toJSONString(){ |
| | | QRPreview.show(qrCode,title: model.name) |
| | | } |
| | | } |
| | | } |
| | | |
| | | extension WorldCupContentDetailVC:UITableViewDataSource{ |