| | |
| | | label_vaild.text = m.time |
| | | label_courseType.text = m.type.strTitle |
| | | |
| | | //默认选择传递过来的课时数 |
| | | for (index,clas) in m.list.enumerated(){ |
| | | if clas.classHours == classHours{ |
| | | selectClassIndex = index;break |
| | | } |
| | | if classHours != nil{ |
| | | let temp = detailModel?.list.filter({$0.classHours == classHours!}) ?? [] |
| | | detailModel?.list = temp |
| | | } |
| | | |
| | | // //默认选择传递过来的课时数 |
| | | // for (index,clas) in m.list.enumerated(){ |
| | | // if clas.classHours == classHours{ |
| | | // selectClassIndex = index;break |
| | | // } |
| | | // } |
| | | |
| | | switch m.type { |
| | | case .vocation: |
| | |
| | | view_banner.setItems(items: items) |
| | | } |
| | | |
| | | if let m = signUpModel{ |
| | | if var m = signUpModel{ |
| | | classHours = m.chooseHours |
| | | |
| | | //默认选择传递过来的课时数 |
| | | for (index,clas) in m.list.enumerated(){ |
| | | if clas.classHours == classHours{ |
| | | selectClassIndex = index;break |
| | | } |
| | | } |
| | | detailModel?.list = m.list.filter({$0.classHours == classHours}) |
| | | |
| | | if m.payStatus == .unPayment{ |
| | | btn_handleBtn.setTitle("待支付", for: .normal) |