From 5415b6659e542b21058428bbc0d38e7f5783815b Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期六, 09 十一月 2024 21:05:29 +0800
Subject: [PATCH] fix bug

---
 XQMuse/Root/Course/VC/CourseDetialOfflineVC.swift |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/XQMuse/Root/Course/VC/CourseDetialOfflineVC.swift b/XQMuse/Root/Course/VC/CourseDetialOfflineVC.swift
index 3952aec..b850200 100644
--- a/XQMuse/Root/Course/VC/CourseDetialOfflineVC.swift
+++ b/XQMuse/Root/Course/VC/CourseDetialOfflineVC.swift
@@ -105,10 +105,10 @@
                 weakSelf.label_title.text = m.courseTitle
                 weakSelf.label_tutor.text = "导师 " + m.tutor
                 weakSelf.label_address.text = m.address + m.addressDetail
-                weakSelf.img_cover.sd_setImage(with: URL(string: m.coverUrl))
-                weakSelf.webView.loadHTMLString(m.briefIntroduction.jq_wrapHtml(edge: UIEdgeInsets(top: 0, left: 5, bottom: 0, right: 5)), baseURL: nil)
+                weakSelf.img_cover.sd_setImage(with: URL(string: m.coverUrl.jq_urlEncoded()))
+                weakSelf.webView.loadHTMLString(m.briefIntroduction.jq_wrapHtml(edge: UIEdgeInsets(top: 0, left: 8, bottom: 0, right: 8)), baseURL: nil)
 
-                weakSelf.img_cusomter.sd_setImage(with: URL(string: m.wxQrCode))
+                weakSelf.img_cusomter.sd_setImage(with: URL(string: m.wxQrCode.jq_urlEncoded()))
 
                 if m.detailUrl.jq_isVideo{
                     weakSelf.videoView = VideoView(url: m.detailUrl.jq_urlEncoded(),autoPlay: false,needFirstImage: true, delegate: self!)
@@ -118,8 +118,17 @@
                     weakSelf.videoView!.snp.makeConstraints { make in
                         make.edges.equalToSuperview()
                     }
+
+                    if #available(iOS 15.0, *) {
+                        weakSelf.navigationController!.navigationBar.standardAppearance.titleTextAttributes  = [.foregroundColor:UIColor.white,.font:Def_NavFont]
+                        weakSelf.navigationController!.navigationBar.scrollEdgeAppearance?.titleTextAttributes  = [.foregroundColor:UIColor.white,.font:Def_NavFont]
+                    }else{
+                        weakSelf.navigationController!.navigationBar.setBackgroundImage(UIImage(), for: .default)
+                        weakSelf.navigationController!.navigationBar.shadowImage = UIImage()
+                    }
+
                 }else{
-                    weakSelf.scrollView.contentInset = UIEdgeInsets(top: JQ_NavBarHeight, left: 0, bottom: 0, right: 0)
+                    weakSelf.scrollView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
                     weakSelf.navigationController?.navigationBar.standardAppearance.backgroundColor = .white
                     weakSelf.navigationController?.navigationBar.titleTextAttributes = [.foregroundColor:Def_NavFontColor,.font:Def_NavFont]
                     weakSelf.barStyle = .darkContent

--
Gitblit v1.7.1