无故事王国
2023-11-14 2a7b12af07d814030c1326f56fec6ebf0d11619f
WanPai/Root/Course/VC/CourseDetailApplyVC.swift
@@ -278,10 +278,10 @@
               label_price.isHidden = true
               label_originPrice.isHidden = true
               label_vipPrice.isHidden = true
               label_coin.isHidden = false
               //纯玩湃币没有优惠券项
               btn_hasCoupon.isHidden = true
               label_coin.isHidden = false
                  //玩湃币
               label_coin.attributedText = AttributedStringbuilder.build()
                  .add(string: "玩湃币:", withFont: UIFont.systemFont(ofSize: 14, weight: .semibold), withColor: UIColor(hexStr: "#3F3F3F"))
@@ -296,7 +296,7 @@
                  label_originPrice.isHidden = false
               }
//               label_originPrice.isHidden = (subM.paymentPrice == subM.originalPrice && subM.paymentPrice != 0 && subM.originalPrice != 0)
               label_coin.isHidden = false
                  //玩湃币
               label_coin.attributedText = AttributedStringbuilder.build()
                  .add(string: "玩湃币:", withFont: UIFont.systemFont(ofSize: 14, weight: .semibold), withColor: UIColor(hexStr: "#3F3F3F"))
@@ -307,6 +307,8 @@
               label_originPrice.attributedText = attribute.mutableAttributedString
               if UserInfoModel.get()?.isVip == 1{
                  if subM.payType != .coin{
                     //会员
                  label_vipPrice.isHidden = true
                  if subM.paymentPrice < subM.vipPrice && subM.paymentPrice != 0{
@@ -319,7 +321,10 @@
                  }else{
                     label_price.text = (subM.paymentPrice * studentCount - (selectCouponModel?.favorable ?? 0)).currency()
                  }
                  }
               }else{
                  if subM.payType != .coin{
                     //非会员
                  label_vipPrice.isHidden = subM.vipPrice == 0 || subM.vipPrice == subM.paymentPrice
                  let vipAttribute = AttributedStringbuilder.build()
@@ -341,17 +346,23 @@
                  }
               }
         }
         }
         if detailModel?.type == .experience{
            if subM.paymentPrice != 0{
            label_price.text = subM.paymentPrice.currency()
               label_price.isHidden = false
            }
            view_teach.isHidden = true
            label_originPrice.isHidden = true
            label_vipPrice.isHidden = true
         }
         if label_originPrice.isHidden && label_vipPrice.isHidden && label_coin.isHidden{
            label_coin.alpha = 0
         }
            //         if label_originPrice.isHidden && label_vipPrice.isHidden && label_coin.isHidden{
            //            label_coin.alpha = 0
            //         }
        }
    }