From e821bea13d9f20905bba3972c4e9c4964994db5d Mon Sep 17 00:00:00 2001 From: 杨锴 <841720330@qq.com> Date: 星期四, 24 十月 2024 21:04:22 +0800 Subject: [PATCH] fix API TEST --- XQMuse/Root/Home/View/PaymentOrderResultTopView.swift | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/XQMuse/Root/Home/View/PaymentOrderResultTopView.swift b/XQMuse/Root/Home/View/PaymentOrderResultTopView.swift index 0cfff23..bfad3e9 100644 --- a/XQMuse/Root/Home/View/PaymentOrderResultTopView.swift +++ b/XQMuse/Root/Home/View/PaymentOrderResultTopView.swift @@ -12,12 +12,14 @@ @IBOutlet weak var label_price: UILabel! @IBOutlet weak var btn_lookCourse: UIButton! + private var courseId:Int! override func awakeFromNib() { super.awakeFromNib() } - func setPrice(_ price:Double){ + func setPrice(courseId:Int,price:Double){ + self.courseId = courseId label_price.text = "\(price.jq_formatFloat)" } @@ -26,8 +28,8 @@ } @IBAction func lookCourseAction(_ sender: UIButton) { -// let vc = HomeItemDetailVC() -// JQ_currentViewController().jq_push(vc: vc) + let vc = CourseDetialVC(courseId: courseId) + JQ_currentViewController().jq_push(vc: vc) } -- Gitblit v1.7.1