| | |
| | | super.viewDidLoad() |
| | | title = "运动营详情" |
| | | |
| | | if signUpCourseModel?.payStatus == 1{ |
| | | if signUpCourseModel?.payStatus == .unPayment{ |
| | | btn_enroll.setTitle("待支付", for: .normal) |
| | | }else if signUpCourseModel?.payStatus == 2{ |
| | | }else if signUpCourseModel?.payStatus == .paymented{ |
| | | btn_enroll.setTitle("续课", for: .normal) |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @IBAction func applyAction(_ sender: UIButton) { |
| | | |
| | | //待支付订单 |
| | | if let m = signUpCourseModel,m.payStatus == 1{ |
| | | |
| | | |
| | | return |
| | | } |
| | | |
| | | |
| | | if let m = detailModel{ |
| | | let vc = CourseDetailApplyVC(detailModel: m,isExtend: signUpCourseModel?.payStatus == 2) |
| | | let vc = CourseDetailApplyVC(detailModel: m,signUpModel: signUpCourseModel) |
| | | push(vc: vc) |
| | | } |
| | | } |