| | |
| | | |
| | | @IBOutlet weak var label_price: UILabel! |
| | | @IBOutlet weak var btn_lookCourse: UIButton! |
| | | private var courseId:Int! |
| | | private var id:Int! |
| | | private var type:PaymentOrderVC.PaymentOrderType! |
| | | |
| | | override func awakeFromNib() { |
| | | super.awakeFromNib() |
| | | } |
| | | |
| | | func setPrice(courseId:Int,price:Double){ |
| | | self.courseId = courseId |
| | | func setPrice(type:PaymentOrderVC.PaymentOrderType,id:Int,price:Double){ |
| | | self.id = id |
| | | self.type = type |
| | | label_price.text = "\(price.jq_formatFloat)" |
| | | |
| | | switch type { |
| | | case .course:btn_lookCourse.setTitle("查看课程", for: .normal) |
| | | case .muse:btn_lookCourse.setTitle("查看疗愈", for: .normal) |
| | | } |
| | | } |
| | | |
| | | @IBAction func backRootAction(_ sender: UIButton) { |
| | |
| | | } |
| | | |
| | | @IBAction func lookCourseAction(_ sender: UIButton) { |
| | | let vc = CourseDetialVC(courseId: courseId) |
| | | JQ_currentViewController().jq_push(vc: vc) |
| | | |
| | | if type == .course{ |
| | | let vc = CourseDetialVC(courseId: id) |
| | | JQ_currentViewController().jq_push(vc: vc) |
| | | } |
| | | |
| | | if type == .muse{ |
| | | let vc = HomeItemDetailVC(id: id) |
| | | JQ_currentViewController().jq_push(vc: vc) |
| | | } |
| | | } |
| | | |
| | | |