From 0fb7413df54760ac6bd15b90b738e0706de1629e Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期二, 05 十一月 2024 19:03:09 +0800
Subject: [PATCH] fix bug

---
 XQMuse/Root/Course/VC/CourseDetialVC.swift |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/XQMuse/Root/Course/VC/CourseDetialVC.swift b/XQMuse/Root/Course/VC/CourseDetialVC.swift
index 637f0d1..6c5f016 100644
--- a/XQMuse/Root/Course/VC/CourseDetialVC.swift
+++ b/XQMuse/Root/Course/VC/CourseDetialVC.swift
@@ -152,7 +152,7 @@
                     }
 
                     if needPayment{
-                        let attribute    = AttributedStringbuilder.build().add(string: "    疗愈币", withFont: .systemFont(ofSize: 12,weight: .bold), withColor: UIColor(hexString: "#F6F6F6")!).add(string: "\(m.generalPrice.jq_formatFloat)", withFont: .systemFont(ofSize: 21.71, weight: .bold), withColor: UIColor(hexString: "#F6F6F6")!).add(string: "  立即购买     ", withFont: .systemFont(ofSize: 16, weight: .bold), withColor: UIColor(hexString: "#F6F6F6")!).mutableAttributedString
+                        let attribute    = AttributedStringbuilder.build().add(string: "    疗愈币", withFont: .systemFont(ofSize: 12,weight: .bold), withColor: UIColor(hexString: "#F6F6F6")!).add(string: "\(m.iosPrice.jq_formatFloat)", withFont: .systemFont(ofSize: 21.71, weight: .bold), withColor: UIColor(hexString: "#F6F6F6")!).add(string: "  立即购买     ", withFont: .systemFont(ofSize: 16, weight: .bold), withColor: UIColor(hexString: "#F6F6F6")!).mutableAttributedString
                         weakSelf.studyBtn.setAttributedTitle(attribute, for: .normal)
                     }else{
                         let attribute = AttributedStringbuilder.build().add(string: "    立即学习    ", withFont: .systemFont(ofSize: 16, weight: .bold), withColor: UIColor(hexString: "#F6F6F6")!).mutableAttributedString
@@ -164,7 +164,7 @@
 																}else{
                     weakSelf.style = .style2
                     DispatchQueue.main.asyncAfter(delay: 0.5) {
-                        weakSelf.headerView.setVideo(url: m.detailUrl, coverImageUrl: m.coverUrl, delegate: self!)
+                        weakSelf.headerView.setVideo(url: m.detailUrl, coverImageUrl: m.coverUrl.jq_urlEncoded(), delegate: self!)
                     }
                     weakSelf.pageMenu.setItems(["简介"], selectedItemIndex: 0)
 																}
@@ -268,15 +268,15 @@
 																push(vc: vc);return
 												}
 
-												let vc = PaymentOrderVC(id: m.id, type: .course)
+            let vc = PaymentOrderVC(courseItemModel: m, type: .course)
 												push(vc: vc)
 								}
 				}
 
 				@objc func sendGift(_ btn:QMUIButton){
-								if let price = courseDetailModel?.generalPrice{
+        if let price = courseDetailModel?.iosPrice{
 												CourseSendGiftView.show(price:price) {
-                let vc = PaymentOrderVC(id: self.courseDetailModel!.id,type: .course,giftToOther: true)
+                let vc = PaymentOrderVC(courseItemModel: self.courseDetailModel!,type: .course,giftToOther: true)
 																self.push(vc: vc)
 												}
 								}

--
Gitblit v1.7.1