杨锴
2024-11-09 5415b6659e542b21058428bbc0d38e7f5783815b
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