无故事王国
2023-11-29 93783809cfb18ae273bd3a78c8dbca91facd10d9
WanPai/Root/Course/VC/CourseDetailApplyVC.swift
@@ -66,12 +66,17 @@
         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:
@@ -109,15 +114,9 @@
         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)