From b3269976c84d03208f633cd0136a6f78e8dd53f7 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期三, 01 十一月 2023 18:40:47 +0800
Subject: [PATCH] 瀑布流优化

---
 WanPai/Root/Course/VC/CourseDetailApplyVC.swift |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/WanPai/Root/Course/VC/CourseDetailApplyVC.swift b/WanPai/Root/Course/VC/CourseDetailApplyVC.swift
index f64376a..0c2ed26 100644
--- a/WanPai/Root/Course/VC/CourseDetailApplyVC.swift
+++ b/WanPai/Root/Course/VC/CourseDetailApplyVC.swift
@@ -283,6 +283,7 @@
 					label_coin.isHidden = true;fallthrough
 				case .cashCoin:
 					if subM.originalPrice == 0{label_originPrice.isHidden = true}
+					label_originPrice.isHidden = (subM.paymentPrice == subM.originalPrice && subM.paymentPrice != 0 && subM.originalPrice != 0)
 
 						//玩湃币
 					label_coin.attributedText = AttributedStringbuilder.build()
@@ -298,8 +299,10 @@
 						label_vipPrice.isHidden = true
 						if subM.paymentPrice < subM.vipPrice && subM.paymentPrice != 0{
 							label_price.text = (subM.paymentPrice * studentCount - (selectCouponModel?.favorable ?? 0)).currency()
-						}else{
+						}else if subM.vipPrice != 0{
 							label_price.text = (subM.vipPrice * studentCount - (selectCouponModel?.favorable ?? 0)).currency()
+						}else{
+							label_price.text = (subM.paymentPrice * studentCount - (selectCouponModel?.favorable ?? 0)).currency()
 						}
 					}else{
 							//非会员

--
Gitblit v1.7.1