| | |
| | | private var couponModels = [CouponInfoModel]() |
| | | private var selectCouponModel:CouponInfoModel? |
| | | private var classHours:Int? |
| | | private var signUpCourseModel:SignUpCourseItemModel? |
| | | |
| | | override func viewDidLoad() { |
| | | super.viewDidLoad() |
| | |
| | | btn_handleBtn.setTitle("立即报名", for: .normal) |
| | | } |
| | | |
| | | |
| | | if signUpCourseModel?.payStatus == .unPayment{ |
| | | btn_handleBtn.setTitle("待支付", for: .normal) |
| | | btn_addStudent.isHidden = true |
| | | } |
| | | } |
| | | |
| | | override func setUI() { |
| | |
| | | btn_addStudent.spacingBetweenImageAndTitle = 3 |
| | | } |
| | | |
| | | init(detailModel:CourseDetailModel,isExtend:Bool = false,classHours:Int? = nil) { |
| | | init(detailModel:CourseDetailModel,isExtend:Bool = false,classHours:Int? = nil,signUpCourseModel:SignUpCourseItemModel? = nil) { |
| | | super.init(nibName: nil, bundle: nil) |
| | | self.detailModel = detailModel |
| | | self.isExtend = isExtend |
| | | self.classHours = classHours |
| | | self.signUpCourseModel = signUpCourseModel |
| | | } |
| | | |
| | | required init?(coder: NSCoder) { |