| | |
| | | modelId = datas?.courseList[indexPath.row].id |
| | | } |
| | | |
| | | if indexPath.section == 0{ |
| | | if indexPath.section == 1{ |
| | | guard datas?.freeCourseList.count != 0 else{return} |
| | | modelId = datas?.freeCourseList[indexPath.row].id |
| | | } |
| | |
| | | }else{ |
| | | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "_HomeRelaxBanner_2_1_CCell", for: indexPath) as! HomeRelaxBanner_2_1_CCell |
| | | cell.setCourseModel(datas!.courseList[indexPath.row]) |
| | | cell.view_price.isHidden = true |
| | | cell.view_waitPay.isHidden = true |
| | | cell.image_free.isHidden = true |
| | | cell.img_vip.isHidden = true |
| | | return cell |
| | | } |
| | | }else{ |
| | | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "_HomeRelaxBanner_2_1_CCell", for: indexPath) as! HomeRelaxBanner_2_1_CCell |
| | | cell.setCourseModel(datas!.freeCourseList[indexPath.row]) |
| | | cell.view_price.isHidden = true |
| | | cell.view_waitPay.isHidden = true |
| | | cell.image_free.isHidden = true |
| | | cell.img_vip.isHidden = true |
| | | return cell |
| | | } |
| | | } |