From 77041c81c325c0bc88c94dc28d732f656cc4c885 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期二, 17 十月 2023 18:28:29 +0800
Subject: [PATCH] 修复BUG

---
 WanPai/Root/Course/VC/CourseDetailVC.swift |   27 ++++++---------------------
 1 files changed, 6 insertions(+), 21 deletions(-)

diff --git a/WanPai/Root/Course/VC/CourseDetailVC.swift b/WanPai/Root/Course/VC/CourseDetailVC.swift
index a0efdd9..c4adcd6 100644
--- a/WanPai/Root/Course/VC/CourseDetailVC.swift
+++ b/WanPai/Root/Course/VC/CourseDetailVC.swift
@@ -11,7 +11,8 @@
 
 class CourseDetailVC: BaseVC {
 
-    @IBOutlet weak var img_cover: UIImageView!
+	@IBOutlet weak var view_banner: CommonBannerView!
+		//    @IBOutlet weak var img_cover: UIImageView!
     @IBOutlet weak var label_title: UILabel!
     @IBOutlet weak var label_local: UILabel!
     @IBOutlet weak var label_distance: UILabel!
@@ -42,7 +43,6 @@
         didSet{
 
 			if let m = detailModel{
-				img_cover.sd_setImage(with: URL(string: m.detailDrawing))
 				label_title.text = m.name
 				label_distance.text = String(format: "距离我%.2lfkm", m.distance)
 				label_local.text = String(format: "%@(%@)", m.storeName,m.storeAddress)
@@ -61,13 +61,11 @@
 				img_1.sd_setImage(with: URL(string: m.introduceDrawing)) { image, error, type, url in
 					let radio = image!.size.width / image!.size.height
 					self.cons_img1Height.constant = JQ_ScreenW / radio
-
 				}
 
-//				img_2.sd_setImage(with: URL(string: m.storeCoverDrawing)) { image, error, type, url in
-//					let radio = image!.size.width / image!.size.height
-//					self.cons_img2Height.constant = JQ_ScreenW / radio
-//				}
+				view_banner.setImages(images: m.detailDrawing.components(separatedBy: ","), type: .URL) { index in
+
+				}
 
 				label_price.text = m.list.first!.paymentPrice.currency()
 				if let subM = m.list.first {
@@ -80,7 +78,6 @@
 						let attribute = AttributedStringbuilder.build().add(string: originPrice.currency(), withFont: UIFont.systemFont(ofSize: 16, weight: .semibold), withColor: UIColor(hexStr: "#3F3F3F").withAlphaComponent(0.58)).delLine(color: UIColor(hexStr: "#3F3F3F").withAlphaComponent(0.58))
 						label_originPrice.attributedText = attribute.mutableAttributedString
 					}
-
 
 						//玩湃币
 					if let paiCoin = subM.playPaiCoin{
@@ -113,18 +110,6 @@
 					view_handle.isHidden = true
 					cons_handleHei.constant = 0
 				}
-
-//				if let m = signUpCourseModel{
-//					label_originPrice.isHidden = true
-////					label_vipPrice.isHidden = true
-//
-//					let coinAttribute = AttributedStringbuilder.build()
-//						.add(string: "玩湃币:", withFont: UIFont.systemFont(ofSize: 14, weight: .semibold), withColor: UIColor(hexStr: "#3F3F3F"))
-//						.add(string: "\(m.wpGold)币", withFont: UIFont.systemFont(ofSize: 14, weight: .semibold), withColor: UIColor(hexStr: "#F21313"))
-//					label_coin.attributedText = coinAttribute.mutableAttributedString
-//					label_price.text = m.paymentPrice.currency()
-//					label_coin.alpha = m.wpGold == 0 ? 0:1
-//				}
 			}
         }
     }
@@ -177,7 +162,7 @@
 
 
 		if let m = detailModel{
-            let vc = CourseDetailApplyVC(detailModel: m)
+            let vc = CourseDetailApplyVC(detailModel: m,isExtend: true)
            push(vc: vc)
         }
     }

--
Gitblit v1.7.1