From a1ac0f1634ff0bd8f04259fc4cf7ebabd8c8c82d Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期二, 10 十月 2023 16:40:52 +0800
Subject: [PATCH] 修复BUG

---
 WanPai/Root/Course/TCell/CourseTCell.swift |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/WanPai/Root/Course/TCell/CourseTCell.swift b/WanPai/Root/Course/TCell/CourseTCell.swift
index 01c558f..d821d24 100644
--- a/WanPai/Root/Course/TCell/CourseTCell.swift
+++ b/WanPai/Root/Course/TCell/CourseTCell.swift
@@ -25,19 +25,13 @@
         didSet{
             label_originPrice.isHidden = courseItemModel.originalPrice == nil
             label_vipPrice.text = "会员价:\(courseItemModel.vipPrice.currency())"
-
+			stackView_vipPrice.isHidden = courseItemModel.vipPrice == 0
             img_cover.sd_setImage(with: URL(string: courseItemModel.coverDrawing),placeholderImage: UIImage(named: "placeholder_1"))
             label_title.text = String(format: "%@(%@)", courseItemModel.name,courseItemModel.storeName)
 			label_teachTime.text = String(format: "上课时间:%@", courseItemModel.classStartTime.jq_max(size: 2).joined(separator: "|"))
             label_enrollNumber.text = String(format: "已报名:%ld人", courseItemModel.applicantsNumber)
             label_distance.text = String(format: "%.2lfkm", courseItemModel.distance)
 			stack_teachTime.isHidden = courseItemModel.classStartTime.count == 0
-
-//            if courseItemModel.payType == .cash{
-//                label_price.text = courseItemModel.paymentPrice.currency()
-//            }else if courseItemModel.payType == .coin{
-//                label_price.text = "玩湃币 " + "\(courseItemModel.playPaiCoin)"
-//            }
 
 			if courseItemModel.paymentPrice != 0{
 				label_price.text = courseItemModel.paymentPrice.currency()

--
Gitblit v1.7.1